CN115860707A - Method, device, electronic device, and storage medium for correlating work orders with received emails - Google Patents

Method, device, electronic device, and storage medium for correlating work orders with received emails Download PDF

Info

Publication number
CN115860707A
CN115860707A CN202310107610.0A CN202310107610A CN115860707A CN 115860707 A CN115860707 A CN 115860707A CN 202310107610 A CN202310107610 A CN 202310107610A CN 115860707 A CN115860707 A CN 115860707A
Authority
CN
China
Prior art keywords
mail
email
processed
mailbox
work order
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310107610.0A
Other languages
Chinese (zh)
Other versions
CN115860707B (en
Inventor
刘益怀
李彦斌
杨若群
梁啟恒
吕承韬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom International Co ltd
Original Assignee
China Telecom International Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom International Co ltd filed Critical China Telecom International Co ltd
Priority to CN202310107610.0A priority Critical patent/CN115860707B/en
Publication of CN115860707A publication Critical patent/CN115860707A/en
Application granted granted Critical
Publication of CN115860707B publication Critical patent/CN115860707B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

本公开提供了一种已收邮件关联工单方法、装置、电子设备及存储介质,该方法包括:获取待处理已收邮件;确定待处理已收邮件的收件人邮箱是否包括报障邮箱;在收件人邮箱包括报障邮箱的情况下,确定工单邮件关联表包括的至少一个收件人邮箱是否包括待处理已收邮件的发件人邮箱;在至少一个收件人邮箱包括发件人邮箱的情况下,确定待处理已收邮件的邮件主题是否包括至少一个邮件主题中的一个或多个邮件主题;在待处理已收邮件的邮件主题包括至少一个邮件主题中的一个或多个邮件主题的情况下,将待处理已收邮件的邮件相关内容及第一工单号添加至工单邮件关联表。此种方式,可以自动建立工单与邮件之间的关联关系,有利于提高工单处理效率。

Figure 202310107610

The present disclosure provides a method, device, electronic device and storage medium for associated work orders of received mails. The method includes: obtaining received mails to be processed; determining whether the recipient mailboxes of the received mails to be processed include failure reporting mailboxes; In the case that the recipient mailbox includes the report mailbox, determine whether at least one recipient mailbox included in the work order mail association table includes the sender mailbox of the received mail to be processed; at least one recipient mailbox includes the sender mailbox In the case of a personal mailbox, determine whether the email subject of the received email to be processed includes one or more email subjects in at least one email subject; In the case of the subject of the email, add the email related content of the received email to be processed and the first work order number to the work order email association table. In this way, the association relationship between work orders and emails can be automatically established, which is conducive to improving the efficiency of work order processing.

Figure 202310107610

Description

已收邮件关联工单方法、装置、电子设备及存储介质Method, device, electronic device, and storage medium for correlating work orders with received emails

技术领域technical field

本公开涉及运营技术领域,尤其涉及一种已收邮件关联工单方法、装置、电子设备及存储介质。The present disclosure relates to the field of operational technology, and in particular to a method, device, electronic device and storage medium for associating work orders with received emails.

背景技术Background technique

售后故障处理是运营技术领域的重要组成部分,通常客户发现产品发生故障后根据该故障生成相应的工单,并向产品涉及的供应商发送报障邮件,以便于取得供应商的帮助。After-sales troubleshooting is an important part of the operational technology field. Usually, when a customer discovers a product failure, a corresponding work order is generated based on the failure, and a failure report email is sent to the supplier involved in the product, so as to obtain help from the supplier.

相关技术中,客户发现产品发生故障后,生成该故障对应的工单,并将该工单交由人工处理。工单处理人员收到工单后,向产品的供应商发送报障邮件并监控与供应商的邮件往来,以便于及时获取供应商反馈的邮件,进而根据邮件中的帮助处理工单。In related technologies, after a customer finds that a product is faulty, a work order corresponding to the fault is generated, and the work order is handed over to manual processing. After receiving the work order, the work order handler will send a failure report email to the supplier of the product and monitor the email exchange with the supplier, so as to obtain the supplier's feedback email in time, and then process the work order according to the help in the email.

工单处理人员在处理工单的过程中实时监控与供应商的邮件往来的方式,需要工单处理人员频繁地从已收邮件中寻找供应商回复的邮件,浪费了工单处理人员的时间及精力,工单处理效率低。In the process of processing the work order, the work order processing personnel monitor the email exchange with the supplier in real time, which requires the work order processing personnel to frequently search for the supplier's reply mail from the received mail, which wastes the time and resources of the work order processing personnel. Energy, work order processing efficiency is low.

需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above background section is only for enhancing the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art.

发明内容Contents of the invention

本公开提供一种已收邮件关联工单方法、装置、电子设备及存储介质,至少在一定程度上克服了相关技术中需要工单处理人员频繁地关注邮箱而造成的工单处理效率低的问题。The present disclosure provides a method, device, electronic device and storage medium for associating work orders with received mails, at least to a certain extent, overcoming the problem of low work order processing efficiency caused by work order processing personnel frequently paying attention to mailboxes in related technologies .

本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will become apparent from the following detailed description, or in part, be learned by practice of the present disclosure.

根据本公开的一个方面,提供一种已收邮件关联工单方法,包括:获取待处理已收邮件;确定待处理已收邮件的收件人邮箱是否包括报障邮箱;在所述收件人邮箱包括报障邮箱的情况下,确定工单邮件关联表包括的至少一个收件人邮箱是否包括待处理已收邮件的发件人邮箱;在所述至少一个收件人邮箱包括所述发件人邮箱的情况下,确定待处理已收邮件的邮件主题是否包括至少一个邮件主题中的一个或多个邮件主题,所述至少一个邮件主题包括工单邮件关联表中与目标收件人邮箱对应的邮件主题,目标收件人邮箱是所述至少一个收件人邮箱中与所述发件人邮箱相同的收件人邮箱;在所述待处理已收邮件的邮件主题包括所述至少一个邮件主题中的一个或多个邮件主题的情况下,将待处理已收邮件的邮件相关内容及第一工单号添加至工单邮件关联表,所述第一工单号是所述一个或多个邮件主题对应的工单号。According to one aspect of the present disclosure, there is provided a method for associating work orders with received mails, including: obtaining received mails to be processed; determining whether the recipient mailboxes of the received mails to be processed include a fault reporting mailbox; In the case that the mailbox includes a report mailbox, it is determined whether at least one recipient mailbox included in the work order mail association table includes the sender mailbox of the received mail to be processed; the at least one recipient mailbox includes the sender mailbox In the case of personal mailboxes, determine whether the email subject of the received email to be processed includes one or more email subjects in at least one email subject, and the at least one email subject includes the work order email association table corresponding to the target recipient mailbox The subject of the email, the target recipient mailbox is the same recipient mailbox as the sender mailbox in the at least one recipient mailbox; the email subject of the pending received email includes the at least one email In the case of one or more email subjects in the subject, add the email-related content of the received email to be processed and the first work order number to the work order mail association table, and the first work order number is the one or more The ticket number corresponding to the email subject.

在本公开的一个实施例中,还包括:在待处理已收邮件的邮件主题不包括所述至少一个邮件主题中的邮件主题的情况下,确定待处理已收邮件的邮件内容是否包括至少一个邮件内容中的一个或多个邮件内容,所述至少一个邮件内容包括工单邮件关联表中与目标收件人邮箱对应的邮件内容;在待处理已收邮件的邮件内容包括所述至少一个邮件内容中的一个或多个邮件内容的情况下,将待处理已收邮件的邮件相关内容及第二工单号添加至工单邮件关联表,所述第二工单号是所述一个或多个邮件内容对应的工单号。In an embodiment of the present disclosure, it further includes: in the case that the email subject of the received email to be processed does not include the email subject in the at least one email subject, determining whether the email content of the received email to be processed includes at least one One or more email contents in the email content, the at least one email content includes the email content corresponding to the target recipient mailbox in the work order email association table; the email content of the received email to be processed includes the at least one email In the case of one or more mail contents in the content, add the mail-related content of the received mail to be processed and the second work order number to the work order mail association table, and the second work order number is the one or more The work order number corresponding to the email content.

在本公开的一个实施例中,所述确定待处理已收邮件的邮件内容是否包括至少一个邮件内容中的一个或多个邮件内容,包括:将待处理已收邮件的邮件内容进行格式化,得到待处理邮件文本;将所述至少一个邮件内容中的每一邮件内容进行格式化,得到每一邮件内容对应的邮件文本;确定待处理邮件文本是否包括至少一个邮件文本中的一个或多个邮件文本。In an embodiment of the present disclosure, the determining whether the email content of the received email to be processed includes one or more email contents in at least one email content includes: formatting the email content of the received email to be processed, Obtain the email text to be processed; format each email content in the at least one email content to obtain the email text corresponding to each email content; determine whether the email text to be processed includes one or more of the at least one email text message text.

在本公开的一个实施例中,还包括:在待处理邮件文本不包括至少一个邮件文本中的邮件文本的情况下,确定每一邮件文本与待处理邮件文本之间的相似度,得到至少一个相似度值;确定所述至少一个相似度值中的最大相似度值是否大于相似度阈值;在最大相似度值大于相似度阈值的情况下,将待处理已收邮件的邮件相关内容及第三工单号添加至工单邮件关联表,所述第三工单号是最大相似度值对应的工单号。In an embodiment of the present disclosure, it further includes: when the email text to be processed does not include at least one email text in the email text, determining the similarity between each email text and the email text to be processed, and obtaining at least one Similarity value; determine whether the maximum similarity value in the at least one similarity value is greater than the similarity threshold; in the case that the maximum similarity value is greater than the similarity threshold, the mail related content of the received mail to be processed and the third The work order number is added to the work order email association table, and the third work order number is the work order number corresponding to the maximum similarity value.

在本公开的一个实施例中,所述确定每一邮件文本与待处理邮件文本之间的相似度,得到至少一个相似度值,包括:根据Python的difflib模块中的序列匹配器SequenceMatcher,计算每一邮件文本与待处理邮件文本之间的相似度,得到所述至少一个相似度值;或者,根据编辑距离算法,计算每一邮件文本与待处理邮件文本之间的距离,得到所述至少一个相似度值。In one embodiment of the present disclosure, said determining the similarity between each mail text and the mail text to be processed to obtain at least one similarity value includes: calculating each A similarity between the email text and the email text to be processed to obtain the at least one similarity value; or, according to the edit distance algorithm, calculate the distance between each email text and the email text to be processed to obtain the at least one similarity value.

在本公开的一个实施例中,所述获取待处理已收邮件,包括:从报障邮箱中获取邮件标识ID大于ID阈值的已收邮件,得到待处理已收邮件;将待处理已收邮件的邮件ID中的最大邮件ID作为新的ID阈值。In an embodiment of the present disclosure, the obtaining the received mails to be processed includes: obtaining the received mails whose mail identification ID is greater than the ID threshold from the trouble-reporting mailbox, and obtaining the received mails to be processed; The largest mail ID among the mail IDs in the set is used as the new ID threshold.

在本公开的一个实施例中,还包括:获取待处理工单;确定待处理工单对应的待报障邮箱;以报障邮箱为发件人邮箱,生成并向待报障邮箱发送待处理工单对应的报障邮件;将待处理工单的工单号和报障邮件的邮件相关内容添加至工单邮件关联表。In an embodiment of the present disclosure, it also includes: obtaining a work order to be processed; determining the mailbox to be reported corresponding to the work order to be processed; The fault report email corresponding to the work order; add the work order number of the pending work order and the email related content of the fault report email to the work order mail association table.

根据本公开的另一个方面,提供一种已收邮件关联工单装置,包括:获取模块,用于获取待处理已收邮件;确定模块,用于确定待处理已收邮件的收件人邮箱是否包括报障邮箱;所述确定模块,还用于在所述收件人邮箱包括报障邮箱的情况下,确定工单邮件关联表包括的至少一个收件人邮箱是否包括待处理已收邮件的发件人邮箱;所述确定模块,还用于在所述至少一个收件人邮箱包括所述发件人邮箱的情况下,确定待处理已收邮件的邮件主题是否包括至少一个邮件主题中的一个或多个邮件主题,所述至少一个邮件主题包括工单邮件关联表中与目标收件人邮箱对应的邮件主题,目标收件人邮箱是所述至少一个收件人邮箱中与所述发件人邮箱相同的收件人邮箱;添加模块,用于在所述待处理已收邮件的邮件主题包括所述至少一个邮件主题中的一个或多个邮件主题的情况下,将待处理已收邮件的邮件相关内容及第一工单号添加至工单邮件关联表,所述第一工单号是所述一个或多个邮件主题对应的工单号。According to another aspect of the present disclosure, there is provided a work order device associated with received emails, including: an acquisition module, used to acquire received emails to be processed; a determination module, used to determine whether the recipient mailbox of the received emails to be processed is Including the trouble reporting mailbox; the determination module is also used to determine whether at least one recipient mailbox included in the work order mail association table includes the address of the received mail to be processed when the recipient mailbox includes the trouble reporting mailbox. The sender's mailbox; the determination module is also used to determine whether the email subject of the received email to be processed includes at least one of the email subject in the case that the at least one recipient mailbox includes the sender's mailbox One or more email subjects, the at least one email subject includes the email subject corresponding to the target recipient mailbox in the work order email association table, and the target recipient mailbox is the address in the at least one recipient mailbox corresponding to the sender The recipient's mailbox with the same mailbox as the sender; add a module, for when the subject of the received mail to be processed includes one or more subject of the mail in the at least one subject of the mail, send the subject of the pending received mail to The mail-related content of the mail and the first work order number are added to the work order mail association table, and the first work order number is the work order number corresponding to the subject of the one or more mails.

在本公开的一个实施例中,所述确定模块,还用于在待处理已收邮件的邮件主题不包括所述至少一个邮件主题中的邮件主题的情况下,确定待处理已收邮件的邮件内容是否包括至少一个邮件内容中的一个或多个邮件内容,所述至少一个邮件内容包括工单邮件关联表中与目标收件人邮箱对应的邮件内容;所述添加模块,还用于在待处理已收邮件的邮件内容包括所述至少一个邮件内容中的一个或多个邮件内容的情况下,将待处理已收邮件的邮件相关内容及第二工单号添加至工单邮件关联表,所述第二工单号是所述一个或多个邮件内容对应的工单号。In an embodiment of the present disclosure, the determining module is further configured to determine the mail of the received mail to be processed when the mail subject of the received mail to be processed does not include the mail subject in the at least one mail subject Whether the content includes one or more mail contents in at least one mail content, and the at least one mail content includes the mail content corresponding to the target recipient mailbox in the work order mail association table; the adding module is also used to When processing the email content of the received email includes one or more email contents in the at least one email content, adding the email-related content and the second work order number of the received email to be processed to the work order email association table, The second work order number is a work order number corresponding to the one or more email contents.

在本公开的一个实施例中,所述确定模块,用于将待处理已收邮件的邮件内容进行格式化,得到待处理邮件文本;将所述至少一个邮件内容中的每一邮件内容进行格式化,得到每一邮件内容对应的邮件文本;确定待处理邮件文本是否包括至少一个邮件文本中的一个或多个邮件文本。In an embodiment of the present disclosure, the determining module is configured to format the email content of the received email to be processed to obtain the text of the email to be processed; to format each email content in the at least one email content to obtain the mail text corresponding to each mail content; determine whether the mail text to be processed includes one or more mail texts in at least one mail text.

在本公开的一个实施例中,所述确定模块,还用于在待处理邮件文本不包括至少一个邮件文本中的邮件文本的情况下,确定每一邮件文本与待处理邮件文本之间的相似度,得到至少一个相似度值;所述确定模块,还用于确定所述至少一个相似度值中的最大相似度值是否大于相似度阈值;所述添加模块,还用于在最大相似度值大于相似度阈值的情况下,将待处理已收邮件的邮件相关内容及第三工单号添加至工单邮件关联表,所述第三工单号是最大相似度值对应的工单号。In an embodiment of the present disclosure, the determination module is further configured to determine the similarity between each email text and the email text to be processed when the email text to be processed does not include at least one email text in the email text degree, to obtain at least one similarity value; the determination module is also used to determine whether the maximum similarity value in the at least one similarity value is greater than the similarity threshold; the adding module is also used to determine whether the maximum similarity value If it is greater than the similarity threshold, add the email-related content of the received email to be processed and the third work order number to the work order email association table, and the third work order number is the work order number corresponding to the maximum similarity value.

在本公开的一个实施例中,所述确定模块,用于根据Python的difflib模块中的序列匹配器SequenceMatcher,计算每一邮件文本与待处理邮件文本之间的相似度,得到所述至少一个相似度值;或者,根据编辑距离算法,计算每一邮件文本与待处理邮件文本之间的距离,得到所述至少一个相似度值。In an embodiment of the present disclosure, the determination module is configured to calculate the similarity between each email text and the email text to be processed according to the sequence matcher SequenceMatcher in the difflib module of Python, and obtain the at least one similarity or, according to the edit distance algorithm, calculate the distance between each email text and the email text to be processed to obtain the at least one similarity value.

在本公开的一个实施例中,所述获取模块,用于从报障邮箱中获取邮件标识ID大于ID阈值的已收邮件,得到待处理已收邮件;将待处理已收邮件的邮件ID中的最大邮件ID作为新的ID阈值。In an embodiment of the present disclosure, the obtaining module is configured to obtain received mails whose mail identification ID is greater than the ID threshold from the trouble-reporting mailbox, and obtain received mails to be processed; The maximum message ID of is used as the new ID threshold.

在本公开的一个实施例中,所述获取模块,还用于获取待处理工单;所述确定模块,还用于确定待处理工单对应的待报障邮箱;所述装置还包括:生成及发送模块,用于以报障邮箱为发件人邮箱,生成并向待报障邮箱发送待处理工单对应的报障邮件;所述添加模块,还用于将待处理工单的工单号和报障邮件的邮件相关内容添加至工单邮件关联表。In an embodiment of the present disclosure, the obtaining module is also used to obtain the work order to be processed; the determination module is also used to determine the mailbox to be reported corresponding to the work order to be processed; the device also includes: generating and a sending module, which is used to generate and send the fault report email corresponding to the work order to be processed to the fault report mailbox with the fault report mailbox as the sender mailbox; the adding module is also used to send the work order of the work order to be processed Add the email related content of the account number and the failure report email to the work order email association table.

根据本公开的再一个方面,提供一种电子设备,包括:处理器;以及存储器,用于存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行上述任一所述的已收邮件关联工单方法。According to still another aspect of the present disclosure, there is provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the executable instructions to Execute the method of associating work orders with received emails described above.

根据本公开的又一个方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一所述的已收邮件关联工单方法。According to yet another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any one of the methods for associating work orders with received emails described above is implemented.

根据本公开的又一个方面,提供一种计算机程序产品,所述计算机程序产品包括计算机程序或计算机指令,所述计算机程序或所述计算机指令由处理器加载并执行,以使计算机实现上述任一所述的已收邮件关联工单方法。According to still another aspect of the present disclosure, a computer program product is provided, the computer program product includes a computer program or a computer instruction, the computer program or the computer instruction is loaded and executed by a processor, so that the computer implements any of the above The method of linking the received emails to the work order described above.

本公开的实施例所提供的技术方案至少包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure at least include the following beneficial effects:

本公开的实施例所提供的技术方案,通过确定待处理已收邮件的收件人邮箱是否包括报障邮箱,以及确定工单邮件关联表包括的至少一个收件人邮箱是否包括待处理已收邮件的发件人邮箱,以及确定待处理已收邮件的邮件主题是否包括至少一个邮件主题中的一个或多个邮件主题的方式,来确定待处理已收邮件是否为供应商对报障邮件的回复邮件。在确定待处理已收邮件的收件人邮箱包括报障邮箱、至少一个收件人邮箱包括待处理已收邮件的发件人邮箱、待处理已收邮件的邮件主题包括至少一个邮件主题中的一个或多个邮件主题的情况下,确定待处理已收邮件是供应商对报障邮件的回复邮件。之后将待处理已收邮件的邮件相关内容和该一个或多个邮件主题对应的第一工单号添加至工单邮件关联表。此种方式,可以自动建立工单与邮件之间的关联关系,从而能够通过工单号查获供应商的回复邮件,避免了工单处理人员需要频繁地从多个已收邮件中寻找供应商的回复邮件,有利于提高工单处理效率。In the technical solution provided by the embodiments of the present disclosure, by determining whether the recipient mailboxes of the received mails to be processed include the failure reporting mailboxes, and determining whether at least one recipient mailbox included in the work order mail association table includes the pending received mails The sender email address of the email, and the method of determining whether the email subject of the pending received email includes at least one or more of the email subjects in the email subject, to determine whether the pending received email is the supplier's response to the failure email Reply Mail. When it is determined that the recipient mailboxes of the received mails to be processed include the fault reporting mailboxes, at least one recipient mailbox includes the sender mailboxes of the received mails to be processed, and the subject of the received mails to be processed includes at least one of the mail subject In the case of one or more email subjects, it is determined that the pending received email is the supplier's reply email to the failure report email. Afterwards, the email-related content of the received emails to be processed and the first work order number corresponding to the subject of the one or more emails are added to the work order email association table. In this way, the relationship between the work order and the email can be automatically established, so that the supplier's reply email can be found through the work order number, and the work order handler needs to frequently find the supplier from multiple received emails Replying emails will help improve work order processing efficiency.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Apparently, the drawings in the following description are only some embodiments of the present disclosure, and those skilled in the art can obtain other drawings according to these drawings without creative efforts.

图1示出本公开一个实施例中的已收邮件关联工单系统的示意图;FIG. 1 shows a schematic diagram of a received mail associated work order system in an embodiment of the present disclosure;

图2示出本公开一个实施例中的已收邮件关联工单方法流程图;FIG. 2 shows a flowchart of a method for associating received emails with a work order in an embodiment of the present disclosure;

图3示出本公开一个实施例中的已收邮件关联工单方法流程图;FIG. 3 shows a flowchart of a method for associating work orders with received emails in one embodiment of the present disclosure;

图4示出本公开一个实施例中的已收邮件关联工单方法流程图;FIG. 4 shows a flow chart of a method for associating received emails with a work order in an embodiment of the present disclosure;

图5示出本公开一个实施例中的已收邮件关联工单方法流程图;FIG. 5 shows a flowchart of a method for associating received emails with a work order in an embodiment of the present disclosure;

图6示出本公开一个实施例中的已收邮件关联工单装置示意图;FIG. 6 shows a schematic diagram of an apparatus for associating work orders with received emails in an embodiment of the present disclosure;

图7示出本公开一个实施例中的电子设备的结构框图。Fig. 7 shows a structural block diagram of an electronic device in an embodiment of the present disclosure.

具体实施方式Detailed ways

现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different network and/or processor means and/or microcontroller means.

应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method implementations of the present disclosure may be executed in different orders, and/or executed in parallel. Additionally, method embodiments may include additional steps and/or omit performing illustrated steps. The scope of the present disclosure is not limited in this regard.

需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the sequence of functions performed by these devices, modules or units or interdependence.

需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative and not restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, it should be understood as "one or more" multiple".

图1示出本公开实施例中一种已收邮件关联工单系统的示意图,该系统可以应用本公开各种实施例中的已收邮件关联工单方法或已收邮件关联工单装置。FIG. 1 shows a schematic diagram of a system for associating work orders with received emails in an embodiment of the present disclosure, and the system can apply the method for associating work orders with received mails or the device for associating received mails with work orders in various embodiments of the present disclosure.

如图1所示,该已收邮件关联工单系统可以包括:客户设备101和供应商设备102。As shown in FIG. 1 , the received email associated work order system may include: a client device 101 and a supplier device 102 .

其中,客户设备101可以通过报障邮箱向供应商设备102的供应商邮箱发送邮件,以及客户设备101还可以通过报障邮箱接收供应商设备102通过供应商邮箱发送的邮件。Wherein, the client device 101 can send an email to the supplier mailbox of the supplier device 102 through the failure report mailbox, and the client device 101 can also receive the email sent by the supplier device 102 through the supplier mailbox through the failure report mailbox.

客户设备101可以获取待处理工单,以及根据待处理工单自动生成报障邮件,并向待处理工单对应的待报障邮箱(供应商邮箱)发送报障邮件。之后,客户设备101可以将该报障邮件的邮件相关内容及待处理工单的工单号添加至工单邮件关联表。The client device 101 can obtain the pending work order, automatically generate a failure report email according to the pending work order, and send the failure report email to the failure report mailbox (supplier mailbox) corresponding to the pending work order. Afterwards, the client device 101 may add the email-related content of the failure report email and the work order number of the work order to be processed to the work order email association table.

客户设备101可以每间隔设定时长登录报障邮箱,读取新收到的待处理已收邮件,并判断待处理已收邮件是否为供应商对报障邮件或相关邮件(报障邮件对应的往来邮件)的回复邮件,客户设备101还可以在确定待处理已收邮件是供应商对报障邮件或相关邮件的回复邮件时,将待处理已收邮件的邮件相关内容及相应的工单号添加至工单邮件关联表。其中,该工单邮件关联表中记录有工单号及对应的报障邮件的邮件相关内容,以及工单号和相关邮件的邮件相关内容。The client device 101 can log in to the fault reporting mailbox at intervals of set time, read the newly received received mails to be processed, and judge whether the pending received mails are the supplier's fault reporting mails or related mails (corresponding to the fault reporting mails). e-mail), the client device 101 can also send the relevant content of the e-mail to be processed and the corresponding work order number Added to ticket mail association table. Wherein, the work order email association table records the work order number and the email-related content of the corresponding failure report email, as well as the work order number and the email-related content of the related email.

在一个实施例中,客户设备101可以根据待处理已收邮件的收件人、发件人和邮件主题,确定待处理已收邮件是否为报障邮件的回复邮件或相关邮件的回复邮件。In one embodiment, the client device 101 may determine whether the pending received email is a reply email to a failure report email or a reply email to related emails according to the recipient, sender, and subject of the email to be processed.

在另一个实施例中,客户设备101可以根据待处理已收邮件的收件人、发件人、邮件主题和邮件内容,确定待处理已收邮件是否为报障邮件的回复邮件或相关邮件的回复邮件。In another embodiment, the client device 101 may determine whether the received mail to be processed is a reply mail to a fault report mail or a related mail according to the recipient, sender, subject and content of the mail to be processed. Reply Mail.

客户设备101和供应商设备102之间通过网络实现通信连接,该网络可以是有线网络,也可以是无线网络。The communication connection between the client device 101 and the provider device 102 is realized through a network, and the network may be a wired network or a wireless network.

可选地,上述的无线网络或有线网络使用标准通信技术和/或协议。网络通常为因特网、但也可以是任何网络,包括但不限于局域网(Local Area Network,LAN)、城域网(Metropolitan Area Network,MAN)、广域网(Wide Area Network,WAN)、移动、有线或者无线网络、专用网络或者虚拟专用网络的任何组合)。在一些实施例中,使用包括超文本标记语言(Hyper Text Mark-up Language,HTML)、可扩展标记语言(ExtensibleMarkupLanguage,XML)等的技术和/或格式来代表通过网络交换的数据。此外还可以使用诸如安全套接字层(Secure Socket Layer,SSL)、传输层安全(Transport Layer Security,TLS)、虚拟专用网络(Virtual Private Network,VPN)、网际协议安全(InternetProtocolSecurity,IPsec)等常规加密技术来加密所有或者一些链路。在另一些实施例中,还可以使用定制和/或专用数据通信技术取代或者补充上述数据通信技术。Optionally, the aforementioned wireless network or wired network uses standard communication technologies and/or protocols. The network is usually the Internet, but can be any network, including but not limited to Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (WAN), mobile, wired or wireless network, private network, or any combination of virtual private networks). In some embodiments, data exchanged over a network is represented using technologies and/or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), and the like. In addition, conventional methods such as Secure Socket Layer (Secure Socket Layer, SSL), Transport Layer Security (Transport Layer Security, TLS), Virtual Private Network (Virtual Private Network, VPN), Internet Protocol Security (Internet Protocol Security, IPsec) can also be used. Encryption technology to encrypt all or some links. In some other embodiments, customized and/or dedicated data communication technologies may also be used to replace or supplement the above data communication technologies.

客户设备101和供应商设备102均可以是各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机、台式计算机、可穿戴设备等。Both client device 101 and provider device 102 may be various electronic devices, including but not limited to smartphones, tablet computers, laptop computers, desktop computers, wearable devices, and the like.

客户设备101和供应商设备102均可以是提供各种服务的服务器,该服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)、以及大数据和人工智能平台等基础云计算服务的云服务器。Both the client device 101 and the provider device 102 can be servers that provide various services. The server can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a server that provides cloud services, Basic cloud computing such as cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN (Content Delivery Network, content distribution network), and big data and artificial intelligence platform Cloud server for the service.

本领域技术人员可以知晓,图1中的供应商设备102的数量仅仅是示意性的,根据实际需要,可以具有任意数目的供应商设备。本公开实施例对此不作限定。Those skilled in the art may know that the number of provider devices 102 in FIG. 1 is only illustrative, and there may be any number of provider devices according to actual needs. The embodiment of the present disclosure does not limit this.

下面结合附图及实施例对本示例实施方式进行详细说明。The exemplary implementation manner will be described in detail below in conjunction with the accompanying drawings and embodiments.

本公开实施例中提供了一种已收邮件关联工单方法,该方法可以由任意具备计算处理能力的电子设备执行。例如,该电子设备为客户设备。Embodiments of the present disclosure provide a method for associating received emails with work orders, and the method can be executed by any electronic device capable of computing and processing. For example, the electronic device is a client device.

图2示出本公开一个实施例中的已收邮件关联工单方法流程图,如图2所示,本公开实施例中提供的已收邮件关联工单方法包括如下S201至S205。Fig. 2 shows a flowchart of a method for associating work orders with received emails in an embodiment of the present disclosure. As shown in Fig. 2 , the method for associating work orders with received mails provided in the embodiment of the present disclosure includes the following steps S201 to S205.

S201,获取待处理已收邮件。S201. Acquire received emails to be processed.

其中,待处理已收邮件是报障邮箱收到的邮件,且该邮件未经过是否为报障邮件或相关邮件的回复邮件的识别。其中,报障邮件是通过报障邮箱向供应商邮箱发送的、用于报告产品故障的邮件。相关邮件是报障邮箱和供应商邮箱之间,在报障邮件的基础上进行一次或多次回复的邮件。Wherein, the received email to be processed is an email received by the failure reporting mailbox, and the email has not been identified whether it is a failure reporting email or a reply email of a related email. Among them, the failure report email is an email sent to the supplier mailbox through the failure report mailbox to report product failure. Relevant emails are emails that are replied one or more times on the basis of the failure reporting emails between the failure reporting mailbox and the supplier mailbox.

在一个实施例中,每一个已收邮件对应一个邮件ID(标识)。例如,某一邮件的邮件ID为65535。在一个实施例中,获取待处理已收邮件,可以包括:从报障邮箱中获取邮件ID大于ID阈值的已收邮件,得到待处理已收邮件;将待处理已收邮件的邮件ID中的最大邮件ID作为新的ID阈值。利用上一次获取到的待处理已收邮件对应的邮件ID中的最大邮件ID作为ID阈值,在本次获取待处理已收邮件时,获取邮件ID大于ID阈值的已收邮件作为待处理已收邮件的方式,可以避免重复获取已收邮件,进而避免根据重复获取的已收邮件进行后续的处理而浪费计算资源。In one embodiment, each received mail corresponds to a mail ID (identification). For example, the mail ID of a certain mail is 65535. In one embodiment, obtaining the received mails to be processed may include: obtaining received mails whose mail IDs are greater than the ID threshold from the trouble-reporting mailbox to obtain received mails to be processed; Maximum message ID as the new ID threshold. Use the largest email ID among the email IDs corresponding to the pending received emails obtained last time as the ID threshold, and when acquiring the pending received emails this time, obtain the received emails whose email ID is greater than the ID threshold as the pending received emails The method of email can avoid repeated acquisition of received emails, thereby avoiding waste of computing resources for subsequent processing based on repeatedly acquired received emails.

在另一个实施例中,还可以获取收件时间晚于最晚收件时间的已收邮件,该最晚收件时间是上一次获取到的待处理已收邮件对应的收件时间中的最晚收件时间,进而避免重复获取同一个已收邮件。In another embodiment, it is also possible to obtain received emails whose receipt time is later than the latest receipt time, and the latest receipt time is the latest receipt time among the received emails to be processed that were obtained last time. Late receipt time, so as to avoid getting the same received email repeatedly.

在一个实施例中,客户设备每间隔设定时长从报障邮箱中获取一次待处理已收邮件,并根据获取到的待处理已收邮件进行后续的处理。关于设定时长具体为何值,本公开实施例不做限制。例如,设定时长为5分钟。In one embodiment, the client device acquires the pending received emails from the failure reporting mailbox at a set time interval, and performs subsequent processing according to the acquired pending received emails. The embodiment of the present disclosure does not limit the specific value of the set duration. For example, set the duration to 5 minutes.

其中,对于如何实现每间隔设定时长从报障邮箱中获取一次待处理已收邮件,本公开实施例不做限制。例如,可以通过Spring Boot(一种应用开发的框架)的Scheduled(Spring Boot下的定时项目)实现每间隔设定时长从报障邮箱中获取一次待处理已收邮件。Wherein, the embodiment of the present disclosure does not limit how to acquire the pending received emails from the failure reporting mailbox every set time interval. For example, it is possible to use Scheduled (a timing project under Spring Boot) of Spring Boot (a framework for application development) to obtain pending received emails from the failure reporting mailbox at set intervals.

其中,待处理已收邮件可以是报障邮件或相关邮件的回复邮件,还可以是与报障邮件或相关邮件无关的邮件。Wherein, the received email to be processed may be a reply email of a failure report email or a related email, or an email unrelated to a failure report email or a related email.

S202,确定待处理已收邮件的收件人邮箱是否包括报障邮箱。S202. Determine whether the recipient's mailbox of the received mail to be processed includes a failure reporting mailbox.

待处理已收邮件的收件人邮箱可以包括多个邮箱,也可以包括一个邮箱,本公开的实施例对此不做限制。The recipient mailboxes of the received emails to be processed may include multiple mailboxes, or may include one mailbox, which is not limited in this embodiment of the present disclosure.

若S201获取的待处理已收邮件的数量是一个或多个的情况下,客户设备可以通过Spring Boot的Async(Spring Boot下的异步项目)实现异步多线程同时处理多个待处理已收邮件,从而提高对待处理已收邮件的处理效率。If the number of received emails to be processed obtained by S201 is one or more, the client device can use Spring Boot's Async (an asynchronous project under Spring Boot) to implement asynchronous multi-threading and simultaneously process multiple pending received emails. Thereby, the processing efficiency of the received mails to be processed is improved.

其中,客户设备存储有报障邮箱,并且客户设备可以直接利用报障邮箱进行判断操作或其他操作。例如,利用报障邮箱识别某一邮件的收件人邮箱中是否包括报障邮箱。关于如何确定待处理已收邮件的收件人邮箱是否包括报障邮箱,本公开实施例不做限制。例如,可以通过Java(一种计算机语言)的StringUtils(一种字符串工具)判断待处理已收邮件的收件人邮箱是否包括报障邮箱。Wherein, the client device stores a fault report mailbox, and the client device can directly use the fault report mailbox to perform judgment or other operations. For example, the fault reporting mailbox is used to identify whether the recipient mailbox of a certain email includes the fault reporting mailbox. The embodiments of the present disclosure do not limit how to determine whether the mailboxes of the recipients of the received mails to be processed include the failure reporting mailboxes. For example, it can be judged whether the recipient's mailbox of the received mail to be processed includes a failure reporting mailbox through StringUtils (a kind of string tool) of Java (a kind of computer language).

通过确定待处理已收邮件的收件人是否为报障邮箱,可以初步筛除待处理已收邮件中不是报障邮件或相关邮件的回复邮件,在待处理已收邮件的收件人不包括报障的邮箱的情况下,可以确定待处理已收邮件不是供应商邮箱对报障邮件或相关邮件的回复邮件。在待处理已收邮件不是供应商邮箱对报障邮件或相关邮件的回复邮件的情况下,可以停止对待处理已收邮件的处理,等待获取到新的待处理已收邮件时,对新的待处理已收邮件进行处理。获取到待处理已收邮件后,首先确定待处理已收邮件的收件人邮箱是否包括报障邮箱的方式,可以在一定程度上避免计算资源的浪费。By determining whether the recipient of the pending received email is a report mailbox, it is possible to preliminarily filter out the reply emails that are not the report email or related emails among the pending received emails, and the recipients of the pending received emails do not include In the case of a mailbox reporting a failure, it can be determined that the received email to be processed is not a reply email to the failure reporting email or related emails from the supplier mailbox. In the case that the pending received email is not the supplier mailbox’s reply email to the failure report email or related emails, the processing of the pending received email can be stopped, and when the new pending received email is waiting to be obtained, the new pending email Process received mail for processing. After obtaining the received emails to be processed, firstly determine whether the recipient mailboxes of the received emails to be processed include the failure reporting mailbox, which can avoid the waste of computing resources to a certain extent.

S203,在收件人邮箱包括报障邮箱的情况下,确定工单邮件关联表包括的至少一个收件人邮箱是否包括待处理已收邮件的发件人邮箱。S203. In the case that the recipient's mailbox includes a failure reporting mailbox, determine whether at least one recipient's mailbox included in the work order email association table includes a sender's mailbox of a pending received email.

其中,收件人邮箱是指待处理已收邮件的收件人邮箱;工单邮件关联表是预先在客户设备/数据库中创建的表,工单邮件关联表的列包括:工单号、发件人邮箱、收件人邮箱、邮件主题和邮件内容,或者,工单邮件关联表的列包括:工单号、发件人邮箱、收件人邮箱、邮件主题、邮件内容和时间(用于记录添加邮件相关内容的时间,邮件相关内容包括邮件的发件人邮箱、收件人邮箱、邮件主题和邮件内容)。Among them, the recipient's mailbox refers to the recipient's mailbox of the received mail to be processed; the work order mail association table is a table created in the customer device/database in advance, and the columns of the work order mail association table include: work order number, sender The sender's email address, recipient's email address, email subject and email content, or, the columns of the work order email association table include: work order number, sender email address, recipient email address, email subject, email content and time (for Record the time of adding email-related content, including the sender's email address, recipient email address, email subject, and email content).

以工单邮件关联表的列包括:工单号、发件人邮箱、收件人邮箱、邮件主题、邮件内容和时间为例,一个工单邮件关联表可以如表1所示。Taking the columns of the work order email association table including: work order number, sender email address, recipient email address, email subject, email content and time as an example, a work order email association table can be shown in Table 1.

表1Table 1

工单号Work order number 发件人邮箱sender email 收件人邮箱recipient email 邮件主题Email Subject 邮件内容content of email 时间time 工单号1Work order number 1 报障邮箱Report failure email 供应商邮箱1Supplier mailbox 1 主题1Topic 1 正文1Text 1 T1T1 工单号2Work order number 2 报障邮箱Report failure email 供应商邮箱2Supplier mailbox 2 主题2Topic 2 正文2Text 2 T2T2

在一个实施例中,在利用工单邮件关联表进行S203之前,还包括:获取待处理工单;确定待处理工单对应的待报障邮箱;以报障邮箱为发件人邮箱,生成并向待报障邮箱发送待处理工单对应的报障邮件;将待处理工单的工单号和报障邮件的邮件相关内容添加至工单邮件关联表。In one embodiment, before performing S203 using the work order email association table, it also includes: obtaining the work order to be processed; determining the mailbox to be reported for the work order corresponding to the work order; Send the fault report email corresponding to the pending work order to the mailbox to be reported; add the work order number of the pending work order and the email related content of the fault report email to the work order email association table.

在产品发生故障后,客户设备可以获取到该故障对应的待处理工单,然后根据待处理工单中涉及的产品信息,查找产品与供应商信息的对应关系,确定出待报障邮箱(供应商邮箱)。查询到待报障邮箱后,客户设备以报障邮箱为发件人邮箱,生成并向该待报障邮箱发送待处理工单对应的报障邮件,之后客户设备将待处理工单的工单号和报障邮件的邮件相关内容添加至工单邮件关联表。因而,若待处理已收邮件是供应商邮箱针对报障邮件或相关邮件,向报障邮箱反馈的回复邮件,则工单邮件关联表中的至少一个收件人邮箱包括待处理已收邮件的发件人邮箱。若该至少一个收件人邮箱不包括待处理已收邮件的发件人邮箱,则表示待处理已收邮件不是供应商邮箱针对报障邮件或相关邮件,向报障邮箱反馈的回复邮件。After a product fails, the client device can obtain the pending work order corresponding to the fault, and then find the corresponding relationship between the product and the supplier information based on the product information involved in the pending work order, and determine the email address to be reported (supplier) business mailbox). After querying the mailbox to be reported, the client device will use the mailbox to be reported as the sender’s mailbox to generate and send a trouble report email corresponding to the pending work order to the mailbox to be processed, and then the client device will send the work order of the pending work order Add the email related content of the account number and the failure report email to the work order email association table. Therefore, if the received email to be processed is a reply email sent by the supplier mailbox to the reported email address for the reported email or related emails, at least one recipient mailbox in the work order email association table includes the email address of the pending received email Sender's email address. If the at least one recipient mailbox does not include the sender mailbox of the pending received email, it means that the pending received email is not a reply email from the supplier email to the malfunction reporting mailbox for reporting malfunction emails or related emails.

关于如何确定工单邮件关联表包括的至少一个收件人邮箱是否包括待处理已收邮件的发件人邮箱,本公开实施例不做限制。例如,可以利用SQL(Structured QueryLanguage,结构化查询语言)模糊查询的方法,确定工单邮件关联表包括的至少一个收件人邮箱是否包括待处理已收邮件的发件人邮箱。Embodiments of the present disclosure do not make limitations on how to determine whether at least one recipient mailbox included in the work order email association table includes the sender mailbox of the received email to be processed. For example, a SQL (Structured Query Language, Structured Query Language) fuzzy query method may be used to determine whether at least one recipient mailbox included in the work order mail association table includes the sender mailbox of the received mail to be processed.

在待处理已收邮件的收件人包括报障的邮箱的情况下,进一步通过确定工单邮件关联表包括的至少一个收件人邮箱是否包括待处理已收邮件的发件人邮箱的方式,可以在至少一个收件人邮箱不包括待处理已收邮件的发件人邮箱时,确定待处理已收邮件不是供应商邮箱针对报障邮件或相关邮件反馈的回复邮件,进而无需对待处理已收邮件进行后续处理,避免了计算资源的浪费,提高了计算资源的利用率。通过S202和S203两个步骤的配个,可以筛除大量与报障邮件无关的邮件,大大避免了计算资源的浪费。In the case that the recipients of the received emails to be processed include the email address of the fault report, further by determining whether at least one recipient email address included in the work order email association table includes the sender email address of the received emails to be processed, When at least one recipient mailbox does not include the sender mailbox of the pending received mail, it can be determined that the pending received mail is not the reply mail of the supplier mailbox for the fault report mail or related mail feedback, so that the pending received mail is not required Subsequent processing of emails avoids the waste of computing resources and improves the utilization of computing resources. Through the matching of the two steps of S202 and S203, a large number of emails irrelevant to the failure reporting emails can be screened out, greatly avoiding the waste of computing resources.

S204,在至少一个收件人邮箱包括该发件人邮箱的情况下,确定待处理已收邮件的邮件主题是否包括至少一个邮件主题中的一个或多个邮件主题,至少一个邮件主题包括工单邮件关联表中与目标收件人邮箱对应的邮件主题,目标收件人邮箱是至少一个收件人邮箱中与该发件人邮箱相同的收件人邮箱。S204, in the case that at least one recipient mailbox includes the sender mailbox, determine whether the email subject of the received email to be processed includes one or more email subjects in at least one email subject, and at least one email subject includes a work order The email subject in the email association table corresponding to the mailbox of the target recipient, where the mailbox of the target recipient is the same recipient mailbox as the mailbox of the sender among at least one recipient mailbox.

其中,至少一个收件人邮箱是工单邮件关联表包括的收件人邮箱,发件人邮箱是待处理已收邮件的发件人邮箱。Wherein, at least one recipient's mailbox is the recipient's mailbox included in the work order mail association table, and the sender's mailbox is the sender's mailbox of the received mail to be processed.

例如,一个工单邮件关联表可以如表2所示。For example, a work order email association table may be shown in Table 2.

表2Table 2

工单号Work order number 发件人邮箱sender email 收件人邮箱recipient email 邮件主题Email Subject 邮件内容content of email 时间time 工单号1Work order number 1 报障邮箱Report failure email 供应商邮箱1Supplier mailbox 1 主题1Topic 1 正文1Text 1 T1T1 工单号2Work order number 2 报障邮箱Report failure email 供应商邮箱2Supplier mailbox 2 主题2Topic 2 正文2Text 2 T2T2 工单号2Work order number 2 供应商邮箱2Supplier mailbox 2 报障邮箱Report failure email 主题3Topic 3 正文3Text 3 T3T3 工单号2Work order number 2 报障邮箱Report failure email 供应商邮箱2Supplier mailbox 2 主题4Topic 4 正文4Text 4 T4T4 工单号1Work order number 1 供应商邮箱1Supplier mailbox 1 报障邮箱Report failure email 主题5Topic 5 正文5Text 5 T5T5 工单号2Work order number 2 供应商邮箱2Supplier mailbox 2 报障邮箱Report failure email 主题6Topic 6 正文6Text 6 T6T6

以待处理已收邮件的发件人邮箱是表2中的供应商邮箱2为例,则目标收件人邮箱是工单邮件关联表的收件人邮箱一列中,与供应商邮箱2相同的邮箱。相应地,目标收件人邮箱对应的至少一个邮件主题包括:主题2和主题4。Take the sender mailbox of the received mail to be processed as the supplier mailbox 2 in Table 2 as an example, then the target recipient mailbox is the same as the supplier mailbox 2 in the recipient mailbox column of the work order email association table Mail. Correspondingly, at least one email subject corresponding to the mailbox of the target recipient includes: subject 2 and subject 4 .

在一些实施例中,客户设备自动将报障邮箱向供应商邮箱反馈的相关邮件的邮箱相关内容及对应的工单号,添加至工单邮件关联表。例如,表2中,主题2对应的邮件是客户设备通过报障邮箱向供应商邮箱2发送的报障邮件,主题3对应的邮件是供应商邮箱2针对报障邮件的回复邮件。主题4对应的邮件是报障邮箱针对主题3对应的相关邮件的回复邮件,也就是说,主题4对应的邮件是报障邮箱向供应商邮箱2发送的相关邮件,客户设备能够自动将该主题4对应的邮件相关内容及工单号添加至工单邮件关联表。In some embodiments, the client device automatically adds the mailbox-related content and the corresponding work order number of the relevant emails fed back from the failure report mailbox to the supplier mailbox to the work order email association table. For example, in Table 2, the email corresponding to subject 2 is a failure reporting email sent by the client device to supplier mailbox 2 through the failure reporting mailbox, and the email corresponding to subject 3 is the reply email sent by supplier mailbox 2 to the failure reporting email. The email corresponding to subject 4 is the reply email to the related email corresponding to subject 3 by the trouble reporting mailbox. 4 The corresponding email content and work order number are added to the work order email association table.

通常回复邮件的主题格式为“RE:XXX”,或者为“回复:XXX”。其中,“XXX”为被回复邮件的主题。因而,回复邮件的邮件主题通常包括被回复邮件的邮件主题。若待处理已收邮件是报障邮件或相关邮件的回复邮件,则待处理已收邮件的邮件主题包括报障邮件或相关邮件的邮件主题。在待处理已收邮件的邮件主题包括至少一个邮件主题中的一个或多个邮件主题的情况下,可以确定待处理已收邮件是针对报障邮件或相关邮件的回复邮件。例如,表2中主题3对应的邮件是对主题2对应的邮件的回复邮件,主题3的样式可以为“RE:主题2”或“回复:主题2”,相应地,主题3包括主题2,进而可以确定主题3对应的邮件是对报障邮件或相关邮件的回复邮件。再例如,表2中主题6对应的邮件是对主题4对应的邮件的回复邮件,而主题4对应的邮件是对主题3对应的邮件的回复邮件,主题3对应的邮件是对主题2对应的邮件的回复邮件,相应地,主题6可以包括多个邮件主题(主题2-4),进而可以确定主题6对应的邮件是对报障邮件或相关邮件的回复邮件。Usually the subject format of the reply email is "RE: XXX", or "Reply: XXX". Among them, "XXX" is the subject of the replied email. Therefore, the email subject of the reply email usually includes the email subject of the replied email. If the received email to be processed is a reply email of a fault report email or a related email, the email subject of the pending received email includes the email subject of the fault report email or related email. When the email subject of the received email to be processed includes at least one email subject in one or more email subjects, it may be determined that the received email to be processed is a reply email to a fault report email or a related email. For example, the email corresponding to subject 3 in Table 2 is a reply email to the email corresponding to subject 2, and the style of subject 3 can be "RE: subject 2" or "reply: subject 2". Correspondingly, subject 3 includes subject 2, Furthermore, it can be determined that the email corresponding to the topic 3 is a reply email to the failure reporting email or related emails. For another example, the email corresponding to subject 6 in Table 2 is the reply email to the email corresponding to subject 4, and the email corresponding to subject 4 is the reply email to the email corresponding to subject 3, and the email corresponding to subject 3 is the reply email corresponding to subject 2 Correspondingly, the topic 6 may include multiple email topics (topics 2-4), and then it may be determined that the email corresponding to the topic 6 is a reply email to the failure report email or related emails.

关于如何确定待处理已收邮件的邮件主题是否包括至少一个邮件主题中的一个或多个邮件主题,本公开实施例不做限制。例如,可以通过Java的StringUtils,判断待处理已收邮件的邮件主题是否包括至少一个邮件主题中的一个或多个邮件主题。Embodiments of the present disclosure make no limitation on how to determine whether the email subject of the received email to be processed includes one or more email subjects in at least one email subject. For example, Java's StringUtils can be used to determine whether the mail subject of the received mail to be processed includes one or more mail subjects in at least one mail subject.

S205,在待处理已收邮件的邮件主题包括至少一个邮件主题中的一个或多个邮件主题的情况下,将待处理已收邮件的邮件相关内容及第一工单号添加至工单邮件关联表,第一工单号是一个或多个邮件主题对应的工单号。S205. In the case that the email subject of the received email to be processed includes one or more email subjects in at least one email subject, add the email related content and the first work order number of the received email to be processed to the work order email association The first work order number is the work order number corresponding to one or more email subjects.

其中,一个或多个邮件主题的工单号相同。Among them, one or more email subjects have the same ticket number.

本公开的实施例所提供的技术方案,通过确定待处理已收邮件的收件人邮箱是否包括报障邮箱,以及确定工单邮件关联表包括的至少一个收件人邮箱是否包括待处理已收邮件的发件人邮箱,以及确定待处理已收邮件的邮件主题是否包括至少一个邮件主题中的一个或多个邮件主题的方式,来确定待处理已收邮件是否为供应商对报障邮件的回复邮件。在确定待处理已收邮件的收件人邮箱包括报障邮箱、至少一个收件人邮箱包括待处理已收邮件的发件人邮箱、待处理已收邮件的邮件主题包括至少一个邮件主题中的一个或多个邮件主题的情况下,确定待处理已收邮件是供应商对报障邮件的回复邮件。之后将待处理已收邮件的邮件相关内容和该一个或多个邮件主题对应的第一工单号添加至工单邮件关联表。此种方式,可以自动建立工单与邮件之间的关联关系,从而能够通过工单号查获供应商的回复邮件,避免了工单处理人员需要频繁地从多个已收邮件中寻找供应商的回复邮件,有利于提高工单处理效率。In the technical solution provided by the embodiments of the present disclosure, by determining whether the recipient mailboxes of the received mails to be processed include the failure reporting mailboxes, and determining whether at least one recipient mailbox included in the work order mail association table includes the pending received mails The sender email address of the email, and the method of determining whether the email subject of the pending received email includes at least one or more of the email subjects in the email subject, to determine whether the pending received email is the supplier's response to the failure email Reply Mail. When it is determined that the recipient mailboxes of the received mails to be processed include the fault reporting mailboxes, at least one recipient mailbox includes the sender mailboxes of the received mails to be processed, and the subject of the received mails to be processed includes at least one of the mail subject In the case of one or more email subjects, it is determined that the pending received email is the supplier's reply email to the failure report email. Afterwards, the email-related content of the received emails to be processed and the first work order number corresponding to the subject of the one or more emails are added to the work order email association table. In this way, the relationship between the work order and the email can be automatically established, so that the supplier's reply email can be found through the work order number, and the work order handler needs to frequently find the supplier from multiple received emails Replying emails will help improve work order processing efficiency.

在另一个实施例中,待处理已收邮件的邮件主题存在被修改的可能,因而确定出待处理已收邮件的邮件主题不包括至少一个邮件主题中的邮件主题后,还需要对待处理已收邮件做进一步处理,以确定待处理已收邮件是否为报障邮件或相关邮件的回复邮件。In another embodiment, the email subject of the received email to be processed may be modified, so after it is determined that the email subject of the received email to be processed does not include at least one email subject in the email subject, the email subject of the received email to be processed still needs to be modified. The mail is further processed to determine whether the received mail to be processed is a fault reporting mail or a reply mail of a related mail.

如图3所示,本公开实施例中提供的已收邮件关联工单方法还包括如下S301至S302。As shown in FIG. 3 , the method for associating work orders with received emails provided in the embodiment of the present disclosure further includes the following steps S301 to S302 .

S301,在待处理已收邮件的邮件主题不包括至少一个邮件主题中的邮件主题的情况下,确定待处理已收邮件的邮件内容是否包括至少一个邮件内容中的一个或多个邮件内容,至少一个邮件内容包括工单邮件关联表中与目标收件人邮箱对应的邮件内容。S301. In the case that the email subject of the received email to be processed does not include the email subject in at least one email subject, determine whether the email content of the received email to be processed includes one or more email contents in at least one email content, at least An email content includes the email content corresponding to the target recipient mailbox in the ticket email association table.

其中,目标收件人邮箱与图2对应的实施例中的目标收件人邮箱相同,此处不再赘述。Wherein, the mailbox of the target recipient is the same as the mailbox of the target recipient in the embodiment corresponding to FIG. 2 , and will not be repeated here.

回复邮件通常包括被回复邮件的内容,若待处理已收邮件是报障邮件或相关邮件的回复邮件,则待处理已收邮件的邮件内容包括报障邮件或相关邮件的邮件内容。在待处理已收邮件的邮件内容包括该至少一个邮件内容中的一个或多个邮件内容的情况下,可以确定待处理已收邮件是针对报障邮件或相关邮件的回复邮件。The reply email usually includes the content of the email to be replied. If the received email to be processed is a reply email of a failure report email or a related email, the email content of the pending received email includes the email content of the failure report email or related email. In a case where the email content of the received email to be processed includes one or more email contents in the at least one email content, it may be determined that the received email to be processed is a reply email to a fault report email or a related email.

在一个实施例中,确定待处理已收邮件的邮件内容是否包括至少一个邮件内容中的一个或多个邮件内容,可以包括:将待处理已收邮件的邮件内容进行格式化,得到待处理邮件文本;将至少一个邮件内容中的每一邮件内容进行格式化,得到每一邮件内容对应的邮件文本;确定待处理邮件文本是否包括至少一个邮件文本中的一个或多个邮件文本。In one embodiment, determining whether the email content of the received email to be processed includes one or more email contents in at least one email content may include: formatting the email content of the received email to be processed to obtain the email to be processed Text; formatting each email content in the at least one email content to obtain email text corresponding to each email content; determining whether the email text to be processed includes one or more email texts in the at least one email text.

关于如何将邮件内容进行格式化得到邮件文本,本公开实施例不做限制。例如,可以通过通过Java字符串的的replace(替换)操作将待处理已收邮件的邮件内容中的样式等非文本内容剔除,从而完成格式化,得到待处理邮件文本,以及将至少一个邮件内容中的每一邮件内容中的样式等非文本内容剔除,从而完成格式化,得到每一邮件内容对应的邮件文本。The embodiment of the present disclosure does not limit how to format the email content to obtain the email text. For example, non-text content such as styles in the mail content of the received mail to be processed can be removed through the replace (replacement) operation of the Java string, thereby completing formatting, obtaining the text of the mail to be processed, and at least one mail content The non-text content such as styles in each email content in the email is eliminated, so as to complete the formatting and obtain the email text corresponding to each email content.

之后,再利用Java字符串工具StringUtils逐个比较待处理邮件文本与每一邮件文本之间是否存在包含关系。After that, use the Java string tool StringUtils to compare whether there is an inclusion relationship between the text of the mail to be processed and each text of the mail.

通过将邮件内容进行格式化得到邮件文本,再根据邮件文本判断待处理邮件文本是否包括至少一个邮件文本中的一个或多个邮件文本的方式,可以避免邮件内容中邮件自带的样式等非文本内容的干扰,有利于提高判断结果的准确性。其中,样式等非文本内容可以包括:html(超文本标记语言)标签,css样式(Cascading Style Sheets,层叠样式表),js(javascript,一种脚本语言)脚本和空格等。By formatting the email content to obtain the email text, and then judging whether the email text to be processed includes at least one or more email texts in the email text according to the email text, it is possible to avoid non-text content such as the style that comes with the email in the email content. The interference of the content is conducive to improving the accuracy of the judgment result. Wherein, non-text content such as styles may include: html (Hypertext Markup Language) tags, css styles (Cascading Style Sheets, Cascading Style Sheets), js (javascript, a scripting language) scripts and spaces, etc.

S302,在待处理已收邮件的邮件内容包括至少一个邮件内容中的一个或多个邮件内容的情况下,将待处理已收邮件的邮件相关内容及第二工单号添加至工单邮件关联表,第二工单号是一个或多个邮件内容对应的工单号。S302. In the case that the email content of the received email to be processed includes one or more email contents in at least one email content, add the email-related content and the second work order number of the received email to be processed to the work order email association Table, the second work order number is the work order number corresponding to one or more email contents.

其中,一个或多个邮件内容对应的工单号是同一个工单号。Among them, the work order numbers corresponding to one or more email contents are the same work order number.

本公开的实施例提供的技术方案,考虑到待处理已收邮件的邮件主题存在被修改的可能,因而确定出待处理已收邮件的邮件主题不包括至少一个邮件主题中的邮件主题后,进一步确定待处理已收邮件的邮件内容是否包括至少一个邮件内容中的一个或多个邮件内容,并在待处理已收邮件的邮件内容包括至少一个邮件内容中的一个或多个邮件内容的情况下,将待处理已收邮件的邮件相关内容及第二工单号添加至工单邮件关联表。此种方式,降低了待处理已收邮件被错误认定为不是报障邮件或相关邮件的回复邮件的可能。In the technical solution provided by the embodiments of the present disclosure, considering that the subject of the received mail to be processed may be modified, after determining that the subject of the received mail to be processed does not include at least one subject of the mail subject, further determining whether the mail content of the pending received mail includes one or more of the at least one mail content, and if the mail content of the pending received mail includes one or more of the at least one mail content , add the mail-related content of the received mail to be processed and the second work order number to the work order mail association table. This method reduces the possibility that the pending received emails are mistakenly identified as reply emails that are not failure reporting emails or related emails.

在一个实施例中,通过确定待处理已收邮件的邮件内容是否包括至少一个邮件内容中的一个或多个邮件内容的方式,来确定待处理已收邮件是否为报障邮件或相关邮件的回复邮件的过程,可以代替图2对应的实施例中,通过确定待处理已收邮件的邮件主题是否包括至少一个邮件主题中的一个或多个邮件主题的方式,来确定待处理已收邮件是否为报障邮件或相关邮件的回复邮件的过程。In one embodiment, by determining whether the mail content of the received mail to be processed includes one or more mail contents in at least one mail content, it is determined whether the received mail to be processed is a reply to a fault mail or a related mail The process of the mail can replace the embodiment corresponding to FIG. 2 , by determining whether the subject of the received mail to be processed includes one or more mail subjects in at least one subject of the mail, to determine whether the received mail to be processed is The process of replying emails to report failure emails or related emails.

在另一个实施例中,待处理已收邮件的邮件内容同样存在被修改的可能,因而确定出待处理邮件文本不包括至少一个邮件文本中的邮件文本的情况下,还需要对待处理已收邮件做进一步处理,以确定待处理已收邮件是否为报障邮件或相关邮件的回复邮件。In another embodiment, the email content of the received email to be processed may also be modified, so if it is determined that the email text to be processed does not include at least one email text in the email text, it is also necessary to Further processing is performed to determine whether the pending received email is a failure report email or a reply email of a related email.

如图4所示,本公开实施例中提供的已收邮件关联工单方法还包括如下S401至S403。As shown in FIG. 4 , the method for associating work orders with received emails provided in the embodiment of the present disclosure further includes the following steps S401 to S403 .

S401,在待处理邮件文本不包括至少一个邮件文本中的邮件文本的情况下,确定每一邮件文本与待处理邮件文本之间的相似度,得到至少一个相似度值。S401. When the email text to be processed does not include the email text in at least one email text, determine the similarity between each email text and the email text to be processed to obtain at least one similarity value.

关于具体采用何种方式确定每一邮件文本与待处理邮件文本之间的相似度,本公开实施例不做限制。例如,可以根据编辑距离算法,计算每一邮件文本与待处理邮件文本之间的距离,得到至少一个相似度值。再例如,可以根据Python的difflib模块中的SequenceMatcher(序列匹配器,一种计算文本相似度的方法),计算每一邮件文本与待处理邮件文本之间的相似度,得到至少一个相似度值。The embodiment of the present disclosure does not limit the specific method for determining the similarity between each email text and the email text to be processed. For example, the distance between each email text and the email text to be processed may be calculated according to an edit distance algorithm to obtain at least one similarity value. For another example, according to the SequenceMatcher (sequence matcher, a method for calculating text similarity) in the difflib module of Python, the similarity between each email text and the email text to be processed can be calculated to obtain at least one similarity value.

S402,确定至少一个相似度值中的最大相似度值是否大于相似度阈值。S402. Determine whether a maximum similarity value among at least one similarity value is greater than a similarity threshold.

关于相似度阈值的具体大小,本公开实施例不做限制,可根据经验设定。Regarding the specific size of the similarity threshold, this embodiment of the present disclosure does not make a limitation, and it can be set according to experience.

在最大相似度值大于相似度阈值的情况下,可以认为待处理已收邮件是报障邮件或相关邮件的回复邮件。In the case where the maximum similarity value is greater than the similarity threshold, it may be considered that the received email to be processed is a reply email of a fault reporting email or a related email.

S403,在最大相似度值大于相似度阈值的情况下,将待处理已收邮件的邮件相关内容及第三工单号添加至工单邮件关联表,第三工单号是最大相似度值对应的工单号。S403. When the maximum similarity value is greater than the similarity threshold, add the email-related content of the received email to be processed and the third work order number to the work order email association table, where the third work order number corresponds to the maximum similarity value The work order number.

其中,最大相似度值对应的工单号是指,得到该最大相似度值的邮件内容在工单邮件关联表中对应的工单号。Wherein, the work order number corresponding to the maximum similarity value refers to the work order number corresponding to the content of the email with the maximum similarity value in the work order email association table.

本公开的实施例所提供的技术方案,在确定出待处理邮件文本不包括至少一个邮件文本中的邮件文本的情况下,进一步确定待处理邮件文本与至少一个邮件文本中每一邮件文本之间的相似度,得到至少一个相似度值,以及根据该至少一个相似度值中的最大相似度值来判断待处理已收邮件是否为报障邮件或相关邮件的回复邮件。此种方式,进一步降低了将待处理已收邮件错误认定为不是报障邮件或相关邮件的回复邮件的可能。In the technical solution provided by the embodiments of the present disclosure, when it is determined that the email text to be processed does not include the email text in at least one email text, further determine the distance between the email text to be processed and each email text in the at least one email text to obtain at least one similarity value, and judge whether the received mail to be processed is a fault report mail or a reply mail of a related mail according to the maximum similarity value among the at least one similarity value. This method further reduces the possibility of mistakenly identifying the pending received mail as a reply mail that is not a failure report mail or a related mail.

为便于理解本公开实施例提供的技术方案,下面将综合上述图2、图3和图4对应的实施例,以及结合图5来说明本公开实施例提供的技术方案。In order to facilitate understanding of the technical solutions provided by the embodiments of the present disclosure, the technical solutions provided by the embodiments of the present disclosure will be described below by synthesizing the above embodiments corresponding to FIG. 2 , FIG. 3 , and FIG. 4 , and in conjunction with FIG. 5 .

S501,监控报障邮箱。S501, monitoring a failure report mailbox.

S502,读取待处理已收邮件。S502. Read the pending received emails.

S503,确定待处理已收邮件的收件人是否包括报障邮箱,在待处理已收邮件的收件人包括报障邮箱的情况下,进行S504;在待处理已收邮件的收件人不包括报障邮箱的情况下,进行S502。S503, determine whether the recipients of the received mails to be processed include the fault reporting mailboxes, and if the recipients of the received mails to be processed include the fault reporting mailboxes, perform S504; if the recipients of the received mails to be processed do not In the case of including the failure reporting mailbox, go to S502.

S504,确定工单邮件关联表包括的至少一个收件人邮箱是否包括待处理已收邮件的发件人邮箱,在至少一个收件人邮箱包括待处理已收邮件的发件人邮箱的情况下,进行S505;在至少一个收件人邮箱不包括待处理已收邮件的发件人邮箱的情况下,进行S502。S504. Determine whether at least one recipient mailbox included in the work order email association table includes the sender mailbox of the received email to be processed, in the case that at least one recipient mailbox includes the sender mailbox of the received email to be processed , go to S505; go to S502 when at least one recipient mailbox does not include the sender mailbox of the received mail to be processed.

S505,确定待处理已收邮件的邮件主题是否包括至少一个邮件主题中的一个或多个邮件主题,在待处理已收邮件的邮件主题包括至少一个邮件主题中的一个或多个邮件主题的情况下,进行S508;在待处理已收邮件的邮件主题不包括至少一个邮件主题中的邮件主题的情况下,进行S506。S505, determine whether the mail subject of the received mail to be processed includes one or more mail subjects in at least one mail subject, in the case that the mail subject of the received mail to be processed includes at least one or more mail subjects in the mail subject Next, go to S508; in the case that the subject of the received mail to be processed does not include at least one subject in the subject of the mail, go to S506.

S506,确定待处理已收邮件的邮件内容是否包括至少一个邮件内容中的一个或多个邮件内容,在待处理已收邮件的邮件内容包括至少一个邮件内容中的一个或多个邮件内容的情况下,进行S508;在确定待处理已收邮件的邮件内容不包括至少一个邮件内容中的邮件内容的情况下,进行S507。S506, determine whether the email content of the received email to be processed includes one or more email contents in at least one email content, in the case that the email content of the received email to be processed includes one or more email contents in at least one email content Next, go to S508; if it is determined that the mail content of the received mail to be processed does not include at least one mail content in the mail content, go to S507.

S507,确定每一邮件文本与待处理邮件文本之间的相似度,得到至少一个相似度值,并确定至少一个相似度值中的最大相似度值是否大于相似度阈值,在最大相似度值大于相似度阈值的情况下,进行S508;在最大相似度值不大于相似度阈值的情况下,进行S502。S507. Determine the similarity between each email text and the email text to be processed, obtain at least one similarity value, and determine whether the maximum similarity value in the at least one similarity value is greater than the similarity threshold. When the maximum similarity value is greater than In the case of the similarity threshold, go to S508; in the case of the maximum similarity value not greater than the similarity threshold, go to S502.

S508,将待处理已收邮件的邮件相关内容及相应的工单号添加至工单邮件关联表,进行S502。S508. Add the email-related content of the received email to be processed and the corresponding work order number to the work order email association table, and proceed to S502.

在一个实施例中,S503与S504的执行顺序,以及S505与S506的执行顺序均可以灵活互换。In one embodiment, the execution order of S503 and S504, and the execution order of S505 and S506 can be interchanged flexibly.

其中,S501-S508的具体实现及涉及的名词所代表的意义,可以参见图2、图3和图4对应的实施例中的说明,此处不再赘述。Wherein, for the specific implementation of S501-S508 and the meanings represented by the terms involved, refer to the descriptions in the embodiments corresponding to FIG. 2 , FIG. 3 and FIG. 4 , and details are not repeated here.

基于同一发明构思,本公开实施例中还提供了一种已收邮件关联工单装置,如下面的实施例所述。由于该装置实施例解决问题的原理与上述方法实施例相似,因此该装置实施例的实施可以参见上述方法实施例的实施,重复之处不再赘述。Based on the same inventive concept, embodiments of the present disclosure also provide a device for associating work orders with received emails, as described in the following embodiments. Since the problem-solving principle of this device embodiment is similar to that of the above-mentioned method embodiment, the implementation of this device embodiment can refer to the implementation of the above-mentioned method embodiment, and repeated descriptions will not be repeated.

图6示出本公开一个实施例中的已收邮件关联工单装置示意图,如图6所示,该装置包括:获取模块601,用于获取待处理已收邮件;确定模块602,用于确定待处理已收邮件的收件人邮箱是否包括报障邮箱;确定模块602,还用于在收件人邮箱包括报障邮箱的情况下,确定工单邮件关联表包括的至少一个收件人邮箱是否包括待处理已收邮件的发件人邮箱;确定模块602,还用于在至少一个收件人邮箱包括发件人邮箱的情况下,确定待处理已收邮件的邮件主题是否包括至少一个邮件主题中的一个或多个邮件主题,至少一个邮件主题包括工单邮件关联表中与目标收件人邮箱对应的邮件主题,目标收件人邮箱是至少一个收件人邮箱中与发件人邮箱相同的收件人邮箱;添加模块603,用于在待处理已收邮件的邮件主题包括至少一个邮件主题中的一个或多个邮件主题的情况下,将待处理已收邮件的邮件相关内容及第一工单号添加至工单邮件关联表,第一工单号是一个或多个邮件主题对应的工单号。FIG. 6 shows a schematic diagram of an apparatus for correlating work orders with received emails in an embodiment of the present disclosure. As shown in FIG. 6 , the apparatus includes: an acquisition module 601 for acquiring received emails to be processed; Whether the recipient's mailbox of the received mail to be processed includes a fault reporting mailbox; the determination module 602 is also used to determine at least one recipient mailbox included in the work order mail association table when the recipient's mailbox includes a fault reporting mailbox Whether to include the sender's mailbox of the received mail to be processed; the determination module 602 is also used to determine whether the subject of the received mail to be processed includes at least one mail when at least one recipient's mailbox includes the sender's mailbox One or more email subjects in the subject, at least one email subject includes the email subject corresponding to the target recipient mailbox in the work order email association table, and the target recipient mailbox is the same as the sender mailbox in at least one recipient mailbox The same recipient's mailbox; adding module 603, for when the mail subject of the received mail to be processed includes one or more mail subjects in at least one mail subject, the mail related content of the received mail to be processed and The first work order number is added to the work order email association table, and the first work order number is the work order number corresponding to one or more email subjects.

在本公开的一个实施例中,确定模块602,还用于在待处理已收邮件的邮件主题不包括至少一个邮件主题中的邮件主题的情况下,确定待处理已收邮件的邮件内容是否包括至少一个邮件内容中的一个或多个邮件内容,至少一个邮件内容包括工单邮件关联表中与目标收件人邮箱对应的邮件内容;添加模块603,还用于在待处理已收邮件的邮件内容包括至少一个邮件内容中的一个或多个邮件内容的情况下,将待处理已收邮件的邮件相关内容及第二工单号添加至工单邮件关联表,第二工单号是一个或多个邮件内容对应的工单号。In an embodiment of the present disclosure, the determining module 602 is further configured to determine whether the email content of the pending received email includes at least one email subject in the subject of the email when the subject of the email to be processed does not include One or more email contents in at least one email content, at least one email content includes the email content corresponding to the target recipient mailbox in the work order email association table; the adding module 603 is also used to process the received email When the content includes at least one or more email contents in one email content, add the email-related content of the received email to be processed and the second work order number to the work order email association table, and the second work order number is one or The work order number corresponding to multiple email contents.

在本公开的一个实施例中,确定模块602,用于将待处理已收邮件的邮件内容进行格式化,得到待处理邮件文本;将至少一个邮件内容中的每一邮件内容进行格式化,得到每一邮件内容对应的邮件文本;确定待处理邮件文本是否包括至少一个邮件文本中的一个或多个邮件文本。In one embodiment of the present disclosure, the determining module 602 is configured to format the email content of the received email to be processed to obtain the text of the email to be processed; to format each email content in at least one email content to obtain Email text corresponding to each email content; determining whether the email text to be processed includes one or more email texts in at least one email text.

在本公开的一个实施例中,确定模块602,还用于在待处理邮件文本不包括至少一个邮件文本中的邮件文本的情况下,确定每一邮件文本与待处理邮件文本之间的相似度,得到至少一个相似度值;确定模块602,还用于确定至少一个相似度值中的最大相似度值是否大于相似度阈值;添加模块603,还用于在最大相似度值大于相似度阈值的情况下,将待处理已收邮件的邮件相关内容及第三工单号添加至工单邮件关联表,第三工单号是最大相似度值对应的工单号。In an embodiment of the present disclosure, the determination module 602 is further configured to determine the similarity between each email text and the email text to be processed when the email text to be processed does not include at least one email text in the email text , to obtain at least one similarity value; the determining module 602 is also used to determine whether the maximum similarity value in at least one similarity value is greater than the similarity threshold; the adding module 603 is also used to determine when the maximum similarity value is greater than the similarity threshold In this case, the email-related content of the received email to be processed and the third work order number are added to the work order email association table, and the third work order number is the work order number corresponding to the maximum similarity value.

在本公开的一个实施例中,确定模块602,用于根据Python的difflib模块中的序列匹配器SequenceMatcher,计算每一邮件文本与待处理邮件文本之间的相似度,得到至少一个相似度值;或者,根据编辑距离算法,计算每一邮件文本与待处理邮件文本之间的距离,得到至少一个相似度值。In one embodiment of the present disclosure, the determination module 602 is configured to calculate the similarity between each email text and the email text to be processed according to the sequence matcher SequenceMatcher in the difflib module of Python, to obtain at least one similarity value; Alternatively, according to the edit distance algorithm, the distance between each email text and the email text to be processed is calculated to obtain at least one similarity value.

在本公开的一个实施例中,获取模块601,用于从报障邮箱中获取邮件标识ID大于ID阈值的已收邮件,得到待处理已收邮件;将待处理已收邮件的邮件ID中的最大邮件ID作为新的ID阈值。In one embodiment of the present disclosure, the obtaining module 601 is configured to obtain received mails whose mail identification IDs are greater than the ID threshold from the trouble-reporting mailbox, and obtain received mails to be processed; Maximum message ID as the new ID threshold.

在本公开的一个实施例中,获取模块601,还用于获取待处理工单;确定模块,还用于确定待处理工单对应的待报障邮箱;装置还包括:生成及发送模块604,用于以报障邮箱为发件人邮箱,生成并向待报障邮箱发送待处理工单对应的报障邮件;添加模块603,还用于将待处理工单的工单号和报障邮件的邮件相关内容添加至工单邮件关联表。In an embodiment of the present disclosure, the obtaining module 601 is also used to obtain the work order to be processed; the determination module is also used to determine the email address to be reported corresponding to the work order to be processed; the device also includes: a generating and sending module 604, It is used to generate and send the fault report email corresponding to the pending work order to the mailbox to be reported by using the fault report mailbox as the sender mailbox; add the module 603, and also use the work order number of the pending work order and the fault report email Add the email related content of the ticket to the ticket email association table.

本公开的实施例所提供的技术方案,通过确定待处理已收邮件的收件人邮箱是否包括报障邮箱,以及确定工单邮件关联表包括的至少一个收件人邮箱是否包括待处理已收邮件的发件人邮箱,以及确定待处理已收邮件的邮件主题是否包括至少一个邮件主题中的一个或多个邮件主题的方式,来确定待处理已收邮件是否为供应商对报障邮件的回复邮件。在确定待处理已收邮件的收件人邮箱包括报障邮箱、至少一个收件人邮箱包括待处理已收邮件的发件人邮箱、待处理已收邮件的邮件主题包括至少一个邮件主题中的一个或多个邮件主题的情况下,确定待处理已收邮件是供应商对报障邮件的回复邮件。之后将待处理已收邮件的邮件相关内容和该一个或多个邮件主题对应的第一工单号添加至工单邮件关联表。此种方式,可以自动建立工单与邮件之间的关联关系,从而能够通过工单号查获供应商的回复邮件,避免了工单处理人员需要频繁地从多个已收邮件中寻找供应商的回复邮件,有利于提高工单处理效率。In the technical solution provided by the embodiments of the present disclosure, by determining whether the recipient mailboxes of the received mails to be processed include the failure reporting mailboxes, and determining whether at least one recipient mailbox included in the work order mail association table includes the pending received mails The sender email address of the email, and the method of determining whether the email subject of the pending received email includes at least one or more of the email subjects in the email subject, to determine whether the pending received email is the supplier's response to the failure email Reply Mail. When it is determined that the recipient mailboxes of the received mails to be processed include the fault reporting mailboxes, at least one recipient mailbox includes the sender mailboxes of the received mails to be processed, and the subject of the received mails to be processed includes at least one of the mail subject In the case of one or more email subjects, it is determined that the pending received email is the supplier's reply email to the failure report email. Afterwards, the email-related content of the received emails to be processed and the first work order number corresponding to the subject of the one or more emails are added to the work order email association table. In this way, the relationship between the work order and the email can be automatically established, so that the supplier's reply email can be found through the work order number, and the work order handler needs to frequently find the supplier from multiple received emails Replying emails will help improve work order processing efficiency.

所属技术领域的技术人员能够理解,本公开的各个方面可以实现为系统、方法或程序产品。因此,本公开的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。Those skilled in the art can understand that various aspects of the present disclosure can be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be embodied in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which can be collectively referred to herein as "circuit", "module" or "system".

下面参照图7来描述根据本公开的这种实施方式的电子设备700。图7显示的电子设备700仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。An electronic device 700 according to this embodiment of the present disclosure is described below with reference to FIG. 7 . The electronic device 700 shown in FIG. 7 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.

如图7所示,电子设备700以通用计算设备的形式表现。电子设备700的组件可以包括但不限于:上述至少一个处理单元710、上述至少一个存储单元720、连接不同系统组件(包括存储单元720和处理单元710)的总线730。As shown in FIG. 7, electronic device 700 takes the form of a general-purpose computing device. Components of the electronic device 700 may include but not limited to: at least one processing unit 710 , at least one storage unit 720 , and a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710 ).

其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元710执行,使得所述处理单元710执行本说明书上述“具体实施方式”部分中描述的根据本公开各种示例性实施方式的步骤。Wherein, the storage unit stores program codes, and the program codes can be executed by the processing unit 710, so that the processing unit 710 executes various exemplary embodiments according to the present disclosure described in the above "Detailed Embodiments" section of this specification. Implementation steps.

存储单元720可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)7201和/或高速缓存存储单元7202,还可以进一步包括只读存储单元(ROM)7203。The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 7201 and/or a cache storage unit 7202 , and may further include a read-only storage unit (ROM) 7203 .

存储单元720还可以包括具有一组(至少一个)程序模块7205的程序/实用工具7204,这样的程序模块7205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, Implementations of networked environments may be included in each or some combination of these examples.

总线730可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。Bus 730 may represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local area using any of a variety of bus structures. bus.

电子设备700也可以与一个或多个外部设备740(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备700交互的设备通信,和/或与使得该电子设备700能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口750进行。并且,电子设备700还可以通过网络适配器760与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图7所示,网络适配器760通过总线730与电子设备700的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备700使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 700 can also communicate with one or more external devices 740 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 700, and/or communicate with Any device (eg, router, modem, etc.) that enables the electronic device 700 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 750 . Moreover, the electronic device 700 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and/or a public network such as the Internet) through the network adapter 760 . As shown in FIG. 7 , the network adapter 760 communicates with other modules of the electronic device 700 through the bus 730 . It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.

通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法。Through the description of the above implementations, those skilled in the art can easily understand that the example implementations described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of software products, and the software products can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to make a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) execute the method according to the embodiments of the present disclosure.

在本公开的示例性实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质可以是可读信号介质或者可读存储介质。其上存储有能够实现本公开上述方法的程序产品。在一些可能的实施方式中,本公开的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“具体实施方式”部分中描述的根据本公开各种示例性实施方式的步骤。In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, and the computer-readable storage medium may be a readable signal medium or a readable storage medium. A program product capable of realizing the above-mentioned methods of the present disclosure is stored thereon. In some possible implementation manners, various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code, and when the program product is run on a terminal device, the program code is used to make the The terminal device executes the steps according to various exemplary embodiments of the present disclosure described in the above "Detailed Embodiments" section of this specification.

本公开中的计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。More specific examples of computer-readable storage media in this disclosure may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.

在本公开中,计算机可读存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。In the present disclosure, a computer-readable storage medium may include a data signal carrying readable program code in baseband or as part of a carrier wave traveling as a data signal. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

可选地,计算机可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Alternatively, program code contained on a computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, cable, optical cable, RF, etc., or any suitable combination of the above.

在具体实施时,可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。During specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, and the programming language includes an object-oriented programming language—such as Java, C++, etc., or Includes conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server to execute. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider). business to connect via the Internet).

在本公开的示例性实施例中,还提供了一种计算机程序产品,计算机程序产品包括计算机程序或计算机指令,计算机程序或计算机指令由处理器加载并执行,以使计算机实现本说明书上述“具体实施方式”部分中描述的根据本公开各种示例性实施方式的步骤。In an exemplary embodiment of the present disclosure, a computer program product is also provided. The computer program product includes a computer program or a computer instruction. The computer program or computer instruction is loaded and executed by a processor, so that the computer implements the above-mentioned "specific The steps according to various exemplary embodiments of the present disclosure are described in the "EMBODIMENTS" section.

应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. Actually, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided to be embodied by a plurality of modules or units.

此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。In addition, although steps of the methods of the present disclosure are depicted in the drawings in a particular order, there is no requirement or implication that the steps must be performed in that particular order, or that all illustrated steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, etc.

通过以上实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施方式的方法。Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of software products, and the software products can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to make a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) execute the method according to the embodiments of the present disclosure.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围由所附的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any modification, use or adaptation of the present disclosure. These modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. . The specification and examples are to be considered exemplary only, with the true scope of the disclosure being indicated by the appended claims.

Claims (10)

1. A received mail associated work order method is characterized by comprising the following steps:
acquiring a received mail to be processed;
determining whether the mailbox of a receiver of the received mail to be processed comprises an error reporting mailbox;
determining whether at least one receiver mailbox included in a work order mail association table comprises a sender mailbox of a received mail to be processed or not under the condition that the receiver mailbox comprises a failure reporting mailbox;
determining whether the mail subject of the received mail to be processed comprises one or more mail subjects in at least one mail subject under the condition that the at least one receiver mailbox comprises the sender mailbox, wherein the at least one mail subject comprises the mail subject corresponding to a target receiver mailbox in a work order mail association table, and the target receiver mailbox is the same receiver mailbox as the sender mailbox in the at least one receiver mailbox;
and adding the mail related content and a first work order number of the received mails to be processed to a work order mail association table under the condition that the mail subjects of the received mails to be processed comprise one or more mail subjects in the at least one mail subject, wherein the first work order number is the work order number corresponding to the one or more mail subjects.
2. The method of claim 1, further comprising:
under the condition that the mail subject of the received mail to be processed does not include the mail subject in the at least one mail subject, determining whether the mail content of the received mail to be processed includes one or more mail contents in at least one mail content, wherein the at least one mail content includes the mail content corresponding to the target recipient mailbox in the work order mail association table;
and adding the mail related content of the received mails to be processed and a second work order number to the work order mail association table under the condition that the mail content of the received mails to be processed comprises one or more mail contents in the at least one mail content, wherein the second work order number is the work order number corresponding to the one or more mail contents.
3. The method of claim 2, wherein determining whether the mail content of the received mail to be processed includes one or more mail contents of at least one mail content comprises:
formatting the mail content of the received mail to be processed to obtain a mail text to be processed;
formatting each mail content in the at least one mail content to obtain a mail text corresponding to each mail content;
determining whether the mail text to be processed comprises one or more mail texts in at least one mail text.
4. The method of claim 3, further comprising:
under the condition that the mail text to be processed does not include the mail text in at least one mail text, determining the similarity between each mail text and the mail text to be processed to obtain at least one similarity value;
determining whether a maximum similarity value of the at least one similarity value is greater than a similarity threshold;
and under the condition that the maximum similarity value is greater than the similarity threshold value, adding the mail related content of the received mails to be processed and a third work order number to the work order mail association table, wherein the third work order number is the work order number corresponding to the maximum similarity value.
5. The method of claim 4, wherein determining the similarity between each of the mail texts and the mail text to be processed to obtain at least one similarity value comprises:
calculating the similarity between each mail text and the mail text to be processed according to a sequence matcher sequence Matcher in a difflib module of Python to obtain at least one similarity value;
or, according to an edit distance algorithm, calculating the distance between each mail text and the mail text to be processed to obtain the at least one similarity value.
6. The method of claim 1, wherein the obtaining the received mail to be processed comprises:
acquiring a received mail with a mail identification ID larger than an ID threshold value from an obstacle-reported mailbox to obtain a received mail to be processed;
and taking the maximum mail ID in the mail IDs of the received mails to be processed as a new ID threshold value.
7. The method according to any one of claims 1-6, further comprising:
acquiring a work order to be processed;
determining a mailbox to be reported corresponding to the work order to be processed;
generating and sending an obstacle-reporting mail corresponding to the work order to be processed to an obstacle-reporting mailbox by taking the obstacle-reporting mailbox as a sender mailbox;
and adding the work order number of the work order to be processed and the mail related content of the fault reporting mail to a work order mail association table.
8. A received mail associated work order apparatus, comprising:
the acquisition module is used for acquiring the received mails to be processed;
the determining module is used for determining whether the mailbox of the receiver of the received mail to be processed comprises a failure reporting mailbox;
the determining module is further configured to determine whether at least one recipient mailbox included in the work order mail association table includes a sender mailbox of a received mail to be processed, if the recipient mailbox includes a failure-reporting mailbox;
the determining module is further configured to determine, when the at least one recipient mailbox includes the sender mailbox, whether the mail topics of the received mails to be processed include one or more mail topics among at least one mail topic, where the at least one mail topic includes a mail topic corresponding to a target recipient mailbox in a work order mail association table, and the target recipient mailbox is a recipient mailbox identical to the sender mailbox in the at least one recipient mailbox;
and the adding module is used for adding the mail related content of the received mails to be processed and a first work order number to a work order mail association table under the condition that the mail subjects of the received mails to be processed comprise one or more mail subjects in the at least one mail subject, wherein the first work order number is a work order number corresponding to the one or more mail subjects.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute the received mail associated work order method of any of claims 1-7 via execution of the executable instructions.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the received mail-associated work order method of any one of claims 1 to 7.
CN202310107610.0A 2023-02-08 2023-02-08 Method, device, electronic device and storage medium for associating received emails with work orders Active CN115860707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310107610.0A CN115860707B (en) 2023-02-08 2023-02-08 Method, device, electronic device and storage medium for associating received emails with work orders

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310107610.0A CN115860707B (en) 2023-02-08 2023-02-08 Method, device, electronic device and storage medium for associating received emails with work orders

Publications (2)

Publication Number Publication Date
CN115860707A true CN115860707A (en) 2023-03-28
CN115860707B CN115860707B (en) 2025-05-13

Family

ID=85657993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310107610.0A Active CN115860707B (en) 2023-02-08 2023-02-08 Method, device, electronic device and storage medium for associating received emails with work orders

Country Status (1)

Country Link
CN (1) CN115860707B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007081955A (en) * 2005-09-15 2007-03-29 Canon Inc Information processing apparatus and method, and program
CN103457829A (en) * 2012-06-05 2013-12-18 百度在线网络技术(北京)有限公司 Mail handling method and system based on helpdesk automatic mail system
CN103701688A (en) * 2013-12-20 2014-04-02 新浪网技术(中国)有限公司 Message queue server and information treatment method of junk mails
CN110147980A (en) * 2019-04-03 2019-08-20 口碑(上海)信息技术有限公司 Worksheet method and device
CN110348009A (en) * 2019-06-19 2019-10-18 深圳壹账通智能科技有限公司 Email processing method, device, medium and electronic equipment based on machine learning
CN112199934A (en) * 2020-09-03 2021-01-08 国网湖南省电力有限公司 Mail processing method, device and storage medium
CN112232757A (en) * 2020-09-17 2021-01-15 深圳市道旅旅游科技股份有限公司 Work order processing method and device based on mail, electronic equipment and medium
CN112822168A (en) * 2020-12-30 2021-05-18 绿盟科技集团股份有限公司 Abnormal mail detection method and device
CN113343682A (en) * 2021-06-07 2021-09-03 中国工商银行股份有限公司 Mail processing method, mail processing device, electronic device, and storage medium
CN113472627A (en) * 2020-03-31 2021-10-01 阿里巴巴集团控股有限公司 E-mail processing method, device and equipment
CN113592461A (en) * 2021-08-10 2021-11-02 平安普惠企业管理有限公司 Mail processing method, device and storage medium
CN114386941A (en) * 2021-12-30 2022-04-22 中国电信股份有限公司 A work order early warning method, device and electronic device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007081955A (en) * 2005-09-15 2007-03-29 Canon Inc Information processing apparatus and method, and program
CN103457829A (en) * 2012-06-05 2013-12-18 百度在线网络技术(北京)有限公司 Mail handling method and system based on helpdesk automatic mail system
CN103701688A (en) * 2013-12-20 2014-04-02 新浪网技术(中国)有限公司 Message queue server and information treatment method of junk mails
CN110147980A (en) * 2019-04-03 2019-08-20 口碑(上海)信息技术有限公司 Worksheet method and device
CN110348009A (en) * 2019-06-19 2019-10-18 深圳壹账通智能科技有限公司 Email processing method, device, medium and electronic equipment based on machine learning
CN113472627A (en) * 2020-03-31 2021-10-01 阿里巴巴集团控股有限公司 E-mail processing method, device and equipment
CN112199934A (en) * 2020-09-03 2021-01-08 国网湖南省电力有限公司 Mail processing method, device and storage medium
CN112232757A (en) * 2020-09-17 2021-01-15 深圳市道旅旅游科技股份有限公司 Work order processing method and device based on mail, electronic equipment and medium
CN112822168A (en) * 2020-12-30 2021-05-18 绿盟科技集团股份有限公司 Abnormal mail detection method and device
CN113343682A (en) * 2021-06-07 2021-09-03 中国工商银行股份有限公司 Mail processing method, mail processing device, electronic device, and storage medium
CN113592461A (en) * 2021-08-10 2021-11-02 平安普惠企业管理有限公司 Mail processing method, device and storage medium
CN114386941A (en) * 2021-12-30 2022-04-22 中国电信股份有限公司 A work order early warning method, device and electronic device

Also Published As

Publication number Publication date
CN115860707B (en) 2025-05-13

Similar Documents

Publication Publication Date Title
CN112636957B (en) Early warning method and device based on log, server and storage medium
EP2669802B1 (en) Facilitating communication between enterprise software applications
US20140379716A1 (en) Process-Aware Code Migration
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
CN112311654B (en) Instant messaging message processing method, device, medium and electronic device
CN111385148A (en) Service alarm method, device, computer equipment and storage medium
CN103326896B (en) The system and method for the information data that a kind of user of collection produces on the internet
WO2014000974A1 (en) Tracking interactions with a shared link through a chain of forwarding
CN110851471A (en) Distributed log data processing method, device and system
CN112347165A (en) Log processing method and device, server and computer readable storage medium
CN110895472A (en) A method and device for identifying business changes
WO2021155683A1 (en) Log printing method and apparatus, electronic device, and storage medium
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN114706839A (en) Log data processing method and device, electronic equipment and storage medium
US20170102989A1 (en) Method and system for dynamically unblocking customers in critical workflows by pushing community contributed solutions just-in-time when an error is encountered
CN108170551A (en) Front and back end error handling method, server and storage medium based on crawler system
CN114327939A (en) Message distribution method, device, electronic device and storage medium
CN118802520A (en) A Nginx configuration detection method and device for network range system
CN115860707B (en) Method, device, electronic device and storage medium for associating received emails with work orders
CN115022275B (en) Distributed mail circulation method, device, system, equipment and storage medium
CN111949472B (en) A method and device for recording application logs
CN115017262A (en) Session processing method, system, device and storage medium
CN113793224A (en) Electronic policy service processing method and device, electronic equipment and storage medium
CN110674374A (en) Information classification method and device
CN111045723A (en) Method and device for notifying code change between associated systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant