A bypass forwarding-based mail management method and system
By introducing bypass forwarding and word segmentation indexing technologies into the email management system, the problem of low retrieval efficiency in existing email management systems has been solved, enabling fast and accurate email retrieval and extensive email data coverage, thereby improving email management efficiency and security.
Patent Information
- Application Number
- CN202411738857.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2044-11-29
AI Technical Summary
Existing email management systems rely on exact or fuzzy matching for retrieval, resulting in low retrieval efficiency and an inability to quickly and accurately retrieve target emails. This is especially problematic when faced with complex retrieval needs, and they also cannot retrieve email content that is not stored in the original file.
The email management method based on bypass forwarding is adopted. The email retrieval system performs word segmentation on the search content, establishes word segmentation indexes of original text, pinyin, radicals and components, and uses these indexes to quickly and accurately retrieve target emails, covering the email data of all users.
It improves the retrieval hit rate and efficiency of the email management system, enabling quick and accurate retrieval of target emails, covering retrieval functions for non-original stored data, and reducing transformation costs.
Smart Images

Figure CN119652860B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, in particular to a mail management method and system based on bypass forwarding. BACKGROUND
[0002] The mail management system plays an indispensable role in the process of enterprise informatization, mainly used for providing electronic mail communication services for employees and external customers, etc., and many enterprises have built their own mail management systems.
[0003] The normal operation of an enterprise cannot be separated from communication with the outside world, so even the internal mail management system of an enterprise will face the challenge of an insecure Internet environment in the use process, such as risk mail containing phishing content, and identifying and timely disposing of such risk mail is beneficial to avoid unnecessary losses.
[0004] However, the current mail management system searches by complete matching or fuzzy matching, and the rules of complete matching or fuzzy matching are relatively strict, such as the rule "jianzheng" can be successfully fuzzy matched with "mail body", but cannot be successfully matched with "mail body", which cannot quickly and accurately search out the target mail, resulting in low mail management efficiency. SUMMARY
[0005] The present application provides a mail management method and system based on bypass forwarding, which can quickly and accurately search out the target mail and improve the efficiency of mail management.
[0006] In a first aspect, the present application provides a mail management method based on bypass forwarding, applied to a mail management system, the mail management system comprising a server, a management end and a mail search system, the server comprising a mail background and a mail management background, the method comprising:
[0007] The mail search system receives a search request sent by the management end;
[0008] The mail search system performs word segmentation processing on the search content of the search request to obtain a target word segmentation result; the target word segmentation result comprises the original text, pinyin, radicals and components of the Chinese text after word segmentation processing of the search content; at least one word segmentation index corresponding to the mail bypass forwarded by the mail background is stored in the mail search system, and the value of at least one word segmentation index is a mail identifier ID; at least one word segmentation index comprises an original text index, a pinyin index, a radical index and a component index;
[0009] The mail search system queries the target mail ID corresponding to the target word segmentation index matched with the target word segmentation result, so that the management end calls the mail management background to process the target mail corresponding to the target mail ID.
[0010] Optionally, the mail retrieval system performs word segmentation processing on the retrieval content of the retrieval request to obtain a target word segmentation result, comprising:
[0011] The mail retrieval system performs word segmentation processing on the retrieval content to obtain an initial word segmentation result.
[0012] The mail retrieval system obtains Chinese text in the initial word segmentation result.
[0013] The mail retrieval system obtains original text, pinyin, radicals, and components of the Chinese text.
[0014] The mail retrieval system obtains the target word segmentation result including the original text, pinyin, radicals, and components of the Chinese text.
[0015] Optionally, the mail retrieval system queries a target mail identifier ID corresponding to a target word segmentation index matching the target word segmentation result, comprising:
[0016] The mail retrieval system queries the target word segmentation index matching the target word segmentation result.
[0017] The mail retrieval system obtains a value corresponding to the target word segmentation index as the target mail ID.
[0018] Optionally, the server further comprises a mail database, and the method further comprises:
[0019] The mail management background receives a first query request sent by the management end.
[0020] The mail management background retrieves a first mail corresponding to the first query request in the mail database.
[0021] The mail management background sends the first mail to the management end.
[0022] Optionally, the mail management system further comprises a client, the server further comprises a mail database, and the method further comprises:
[0023] The mail background receives a second query request sent by the client.
[0024] The mail background retrieves a second mail corresponding to the second query request in the mail database.
[0025] The mail background sends the second mail to the client.
[0026] Optionally, the server further comprises a mail database, and the method further comprises:
[0027] The mail background generates a mail ID corresponding to the initial mail; the initial mail is compressed and encrypted to obtain a to-be-stored mail; the initial mail is sent to the mail background after security check by the gateway system;
[0028] The mail background stores the to-be-stored mail and the mail ID of the initial mail into the mail database;
[0029] The mail background bypasses and forwards the initial mail and the mail ID of the initial mail to the mail retrieval system based on a simple mail transfer protocol (SMTP).
[0030] Optionally, the mail management system further comprises a gateway system, and before the mail background generates a mail ID corresponding to the initial mail and compresses and encrypts the initial mail to obtain a to-be-stored mail, the method further comprises:
[0031] The gateway system checks the initial mail to obtain a check result;
[0032] When the check result indicates that the initial mail is not spam, the gateway system sends the initial mail to the mail background.
[0033] Optionally, the method further comprises:
[0034] The mail retrieval system obtains the initial mail and the mail ID of the initial mail;
[0035] The mail retrieval system performs word segmentation processing on the text content of the initial mail to obtain an initial word segmentation result;
[0036] The mail retrieval system establishes at least one word segmentation index for the initial word segmentation result; the value of at least one word segmentation index is the mail ID of the initial mail; at least one word segmentation index comprises an original text index, a pinyin index, a component index, or a radical index;
[0037] The mail retrieval system stores at least one word segmentation index.
[0038] Optionally, the mail retrieval system establishes at least one word segmentation index for the initial word segmentation result, comprising:
[0039] The mail retrieval system obtains an initial Chinese text in the initial word segmentation result;
[0040] The mail retrieval system obtains an original text, pinyin, component, and radical of the initial Chinese text;
[0041] The mail retrieval system respectively constructs an original text index, a pinyin index, a component index and a radical index; the key of the original text index is the original text, and the value of the original text index is the mail ID of the initial mail; the key of the pinyin index is the pinyin, and the value of the pinyin index is the mail ID of the initial mail; the key of the component index is the component, and the value of the component index is the mail ID of the initial mail; the key of the radical index is the radical, and the value of the radical index is the mail ID of the initial mail.
[0042] In a second aspect, the application further provides a mail management system based on bypass forwarding, which comprises a service end, a management end and a mail retrieval system, the service end comprises a mail background and a mail management background;
[0043] The mail retrieval system is configured to receive a retrieval request sent by the management end.
[0044] The mail retrieval system is further configured to perform word segmentation processing on the retrieval content of the retrieval request to obtain a target word segmentation result, the target word segmentation result comprising original text, pinyin, component and radical of the Chinese text after word segmentation processing of the retrieval content; the mail retrieval system stores at least one word segmentation index corresponding to the mail bypass forwarded by the mail background, the value of at least one word segmentation index being a mail identifier ID; at least one word segmentation index comprising an original text index, a pinyin index, a component index and a radical index.
[0045] The mail retrieval system is further configured to query a target mail ID corresponding to a target word segmentation index matched with the target word segmentation result, so that the management end calls the mail management background to process a target mail corresponding to the target mail ID.
[0046] Therefore, the application has the following beneficial effects:
[0047] This application provides a bypass-forwarding-based email management method and system, applied to an email management system. The email management system includes a server, a management terminal, and an email retrieval system. The server includes an email backend and an email management backend. In this method, the email retrieval system receives a retrieval request sent by the management terminal; the email retrieval system performs word segmentation processing on the retrieval content of the retrieval request to obtain target word segmentation results; the target word segmentation results include the original text, pinyin, radicals, and components of the Chinese text after word segmentation processing of the retrieval content; the email retrieval system stores at least one word segmentation index corresponding to the email forwarded by the email backend via bypass, and the value of at least one word segmentation index is an email identifier ID; at least one word segmentation index includes an original text index, a pinyin index, a radical index, and a component index; the email retrieval system queries the target email ID corresponding to the target word segmentation index that matches the target word segmentation result, so that the management terminal can call the email management backend to process the target email corresponding to the target email ID. Thus, by segmenting the search content of the retrieval request through the email retrieval system, and searching in at least one segmentation index based on the target segmentation result, a target segmentation index matching the target segmentation result is obtained. Because at least one segmentation index includes a pinyin index, a radical index, and a component index, compared with the exact match or fuzzy match in the prior art, it can adapt to complex retrieval needs, improve the retrieval hit rate, and to a certain extent avoid bypassing retrieval methods, quickly and accurately retrieve the target email, thereby improving email management efficiency. In addition, the email retrieval system in this embodiment includes at least one segmentation index corresponding to the email content in the bypassed forwarded email, covering retrieval functions including non-original text stored data, improving the retrieval hit rate, and thus improving email management efficiency. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings.
[0049] Figure 1 This is a schematic diagram of the structure of a prior art email management system provided in the embodiments of this application;
[0050] Figure 2 A schematic diagram of the structure of an email management system based on bypass forwarding provided in an embodiment of this application;
[0051] Figure 3 This is a flowchart illustrating an email management method based on bypass forwarding, provided as an embodiment of this application. Detailed Implementation
[0052] The multiple referred to in the embodiments of the present application refers to greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first", "second", etc. are only used for the purpose of distinguishing the description and cannot be understood as indicating or implying relative importance, nor can it be understood as indicating or implying order.
[0053] In order to make the above objectives, characteristics and advantages of the present application more apparent, easy to understand, the embodiments of the present application are further described in detail below in combination with the drawings and specific embodiments. It can be understood that the specific embodiments described herein are only used to explain the present application, and not to limit the present application. In addition, it should be noted that, for the convenience of description, only the parts related to the present application are shown in the drawings, not all structures.
[0054] First, the part of the proper nouns involved in the embodiments of the present application is explained:
[0055] 1) Client / Server (C / S) architecture, the server is responsible for data management, and the client completes the interaction with the user.
[0056] 2) Exact match, which means that the searched field and the search rule field are exactly the same.
[0057] 3) Fuzzy match, which means that the searched field contains the search rule field and may also contain other content. For example, the rule "mail body" can be successfully fuzzy matched with "* mail body *", where "*" means wildcard and can represent any value.
[0058] 4) Lexical segmentation, simply called word segmentation, which divides a certain text into several words, such as "mail body", one of the word segmentation results is: "mail", "body", "text", "four words", which can also be divided into "mail" and "text" two words. The division result depends on the specific rule.
[0059] The normal operation of an enterprise cannot be separated from communication with the outside world, therefore, even the internal mail management system of an enterprise will face the challenge of an insecure Internet environment in the process of use, such as risk mail containing phishing content, identifying and timely disposing of such risk mail is beneficial to avoid unnecessary losses.
[0060] When an enterprise solves the problem of risk mail prevention, it generally considers building a gateway system, which identifies and filters risk mail using the gateway system when the risk mail arrives at the Internet entrance of the enterprise network, and timely prevents such mail from entering the internal agency. However, the gateway system cannot guarantee 100% correct identification and interception of risk mail, and it is inevitable that some fish will slip through the net.
[0061] Consider the following scenario: if the risk mail is not intercepted correctly by the gateway system, it has entered the enterprise internal mail management system. The user reviews the mail and identifies the risk content, and reports to the administrator. The administrator plans to conduct a comprehensive investigation within the enterprise to determine whether there are similar risk emails to avoid other users receiving similar risk emails from suffering losses. How to locate the risky email in a large number of emails has become an inevitable problem in the construction of enterprise information security.
[0062] See Figure 1 , a prior art mail management system structure schematic diagram provided for the embodiments of the present application. In the process of querying the data in the mail database by the administrator management end through the mail management background, the mail system generally saves the sender mail address, mail subject, and even part of the mail body and other key information of the mail in the database when receiving the Internet mail. The database system provides complete matching or fuzzy matching search capability, and the administrator can query all the above data within a specified time through the database, and check one by one whether other mails have the same or similar above-mentioned content as the risk mail. If the matching is successful, it means that the risk mail is retrieved. In the process of obtaining the mail of the logged-in user from the mail background by the user client, after obtaining the user mail, the text data in the mail is processed by word segmentation, and an index is established according to the word segmentation result, so as to provide better search capability than complete matching or fuzzy matching.
[0063] Applicants have found that the prior art mail management system has the following problems:
[0064] First, the search function of the existing mail management system is searched by complete matching or fuzzy matching, and the rules of complete matching or fuzzy matching are relatively strict, such as the rule "mail body" can be successfully fuzzy matched with "mail body", but cannot be successfully matched with "mail body", which makes the mail management efficiency low.
[0065] Second, the existing mail management system usually only stores the sender address, mail subject and other data in the original text. In order to reduce the running cost of the mail management system and improve the security of the mail management system, the mail body is generally compressed and encrypted when storing the mail, that is, the mail body which occupies the most storage space and is the most sensitive needs to be compressed and encrypted before storage. However, compression and encryption processing will change the format of the data, and the data after compression and encryption processing is completely inconsistent with the original text, so the key information matching based on the database cannot realize the search of the data in the mail body.
[0066] Third, risk mail in order to avoid the gateway system interception and other security defense means, will also be confused to the data of risk mail processing. For example: a risk mail contains the title of "subsidy" phishing link, may use homophonic, radical or similar radicals, will link title to "post" and other changes, in order to avoid the interception of gateway system, but still can play a certain role in attracting users. In this example, the rule "subsidy" also can't match "post" successfully, can't succeed. Therefore, the function of full match or fuzzy match provided by the database can't meet the more complex retrieval requirements.
[0067] Fourth, based on the user data of the word segmentation retrieval function is the user client in the acquisition of the user has logged in the mail data, in the user equipment on the word segmentation index, the word segmentation index only contains the current user data, only can retrieve the current user mail, can't retrieve other user mail.
[0068] Based on this, the embodiment of the application provides a kind of based on bypass forwarding mail management method and system, it is applied to mail management system, mail management system includes server, management end and mail retrieval system, server includes mail background and mail management background, in the method, mail retrieval system receives the retrieval request sent by management end;Mail retrieval system carries out word segmentation processing to the retrieval content of retrieval request, obtains target word segmentation result;Target word segmentation result includes the original text of Chinese text after retrieval content word segmentation processing, pinyin, partial and head;At least one word segmentation index corresponding to the mail of mail retrieval system storage by mail background bypass forwarding is stored, and the value of at least one word segmentation index is mail identifier ID;At least one word segmentation index includes original text index, pinyin index, partial index and head index;Mail retrieval system queries target mail ID corresponding to target word segmentation index matched with target word segmentation result, so that management end calls mail management background and processes target mail ID corresponding target mail.
[0069] Thus, the mail retrieval system performs word segmentation processing on the retrieval content of the retrieval request, retrieves in at least one word segmentation index according to the target word segmentation result, and obtains a target word segmentation index matched with the target word segmentation result. Since the at least one word segmentation index includes a pinyin index, a partial character index, and a component head index, compared with the full match or fuzzy match in the prior art, the complex retrieval requirement can be adapted, the hit rate of retrieval is improved, and the bypass retrieval method can be avoided to some extent, thereby improving the mail management efficiency. In addition, in the mail retrieval system in the embodiment of the present application, at least one word segmentation index corresponding to the mail content in the bypass forwarded mail is included, the retrieval function of non-original text storage data is covered, the hit rate of retrieval is improved, the target mail is quickly and accurately retrieved, and the mail management efficiency is improved. Moreover, the mail retrieval system in the embodiment of the present application can provide a retrieval function covering all mail data of users, and the management end can retrieve the mail of all other users through the mail retrieval system. Compared with the prior art, in the embodiment of the present application, the index content is generally the ID of a mail, and the presence of a mail ID in the index of a certain word indicates that the content of the mail contains the word. The user can retrieve whether the risk content exists in the mail of the user according to the key word in the risk mail.
[0070] To facilitate understanding of the specific implementation of the mail management method based on bypass forwarding provided by the embodiment of the present application, the following will be described with reference to the accompanying drawings.
[0071] It should be noted that the main body implementing the mail management method based on bypass forwarding can be carried in an electronic device or a functional module of an electronic device. The electronic device in the embodiment of the present application can be any device capable of implementing the mail management method based on bypass forwarding in the embodiment of the present application, for example, a mail management system based on bypass forwarding.
[0072] For example, the mail management system based on bypass forwarding can be a mail management system based on bypass forwarding, please refer to Figure 2 A structural schematic diagram of a mail management system based on bypass forwarding provided by the embodiment of the present application.
[0073] The mail management system based on bypass forwarding includes a server end 11, a management end 12, and a mail retrieval system 13. The server end includes a mail background 111 and a mail management background 112.
[0074] The mail retrieval system 13 is configured to receive a retrieval request sent by the management end 12.
[0075] The mail retrieval system 13 is further configured to perform word segmentation processing on the retrieval content of the retrieval request to obtain a target word segmentation result; the target word segmentation result includes original text, pinyin, radicals and components of the Chinese text after word segmentation processing; the mail retrieval system 13 stores at least one word segmentation index corresponding to the mail bypassed and forwarded by the mail background 111, and a value of the at least one word segmentation index is a mail identifier ID; the at least one word segmentation index includes an original text index, a pinyin index, a radical index and a component index;
[0076] The mail retrieval system 13 is further configured to query a target mail ID corresponding to a target word segmentation index matched with the target word segmentation result.
[0077] The management terminal 12 is configured to call the mail management background 112 to process a target mail corresponding to the target mail ID.
[0078] In a possible implementation, the management terminal 12 is further configured to send a retrieval request to the mail retrieval system 13.
[0079] In a possible implementation, the mail retrieval system 13 is specifically configured to:
[0080] perform word segmentation processing on the retrieval content to obtain an initial word segmentation result;
[0081] obtain Chinese text in the initial word segmentation result;
[0082] obtain original text, pinyin, radicals and components of the Chinese text;
[0083] obtain the target word segmentation result including the original text, the pinyin, the radicals and the components of the Chinese text.
[0084] In a possible implementation, the mail retrieval system 13 is specifically configured to:
[0085] query the target word segmentation index matched with the target word segmentation result;
[0086] obtain a value of the target word segmentation index as the target mail ID.
[0087] In a possible implementation, the service terminal 11 further includes a mail database 113;
[0088] The mail management background 112 is configured to receive a first query request sent by the management terminal 12;
[0089] The mail management background 112 is further configured to retrieve a first mail corresponding to the first query request from the mail database 113;
[0090] The mail management background 112 is further configured to send the first mail to the management terminal.
[0091] In a possible implementation, the mail management system further comprises a client 14, and the server 11 further comprises a mail database 113;
[0092] The mail background 111 is configured to receive a second query request sent by the client 14;
[0093] The mail background 111 is further configured to retrieve a second mail corresponding to the second query request from the mail database 113;
[0094] The mail background 111 is further configured to send the second mail to the client 14.
[0095] In a possible implementation, the server 11 further comprises a gateway system 114 and a mail database 113;
[0096] The mail background 111 is further configured to generate a mail ID corresponding to an initial mail, and to compress and encrypt the initial mail to obtain a to-be-stored mail; the initial mail is sent to the mail background after security inspection by the gateway system 114;
[0097] The mail background 111 is further configured to store the to-be-stored mail and the mail ID of the initial mail in the mail database;
[0098] The mail background 111 is further configured to bypass forward the initial mail and the mail ID of the initial mail to the mail retrieval system 13 based on a simple mail transfer protocol (SMTP).
[0099] In a possible implementation, the mail management system further comprises a gateway system 114;
[0100] The gateway system 114 is configured to inspect the initial mail to obtain an inspection result;
[0101] The gateway system 114 is further configured to send the initial mail to the mail background 111 when the inspection result indicates that the initial mail is not a junk mail.
[0102] In a possible implementation,
[0103] The mail retrieval system 13 is further configured to obtain the initial mail and the mail ID of the initial mail;
[0104] The mail retrieval system 13 is further configured to perform word segmentation processing on the text content of the initial mail to obtain a to-be-segmented result;
[0105] The mail retrieval system 13 is further configured to establish at least one word segmentation index for the initial word segmentation result; a value of the at least one word segmentation index is a mail ID of the initial mail; and the at least one word segmentation index includes an original text index, a pinyin index, a partial character index, or a component index.
[0106] The mail retrieval system 13 is further configured to store the at least one word segmentation index.
[0107] In a possible implementation, the mail retrieval system 13 is specifically configured to:
[0108] obtain an initial Chinese text in the initial word segmentation result;
[0109] obtain an original text, a pinyin, a partial character, and a component of the initial Chinese text;
[0110] respectively establish an original text index, a pinyin index, a partial character index, and a component index; a key of the original text index is the original text, and a value of the original text index is a mail ID of the initial mail; a key of the pinyin index is the pinyin, and a value of the pinyin index is the mail ID of the initial mail; a key of the partial character index is the partial character, and a value of the partial character index is the mail ID of the initial mail; and a key of the component index is the component, and a value of the component index is the mail ID of the initial mail.
[0111] Thus, the mail retrieval system added in the mail management system provided in the embodiment of the present application obtains mail original data through a bypass forwarding manner, and establishes word segmentation indexes of all users in the whole mail management system, to provide a retrieval function that can cover all users and can cover non-original text storage data, so as to improve the hit rate of retrieval and improve the mail management efficiency to a certain extent. Moreover, the embodiment of the present application reuses a common architecture of an existing mail management system, without the need of large-scale reconstruction of the original mail system, thereby reducing the reconstruction cost. Moreover, the mail background only needs to bypass forward mails to the mail retrieval system, and the complexity of the mail retrieval system is lower. In addition, the functions such as bypass forwarding, establishing word segmentation indexes, and retrieving mails according to mail IDs are not limited by a gateway system, and if a mail system does not contain a gateway system, the scheme provided in the embodiment of the present application can also be implemented.
[0112] Please refer to Figure 3 , Figure 3 for a flowchart of a mail management method based on bypass forwarding provided in the embodiment of the present application.
[0113] In the embodiment of the present application, for example, the following steps can be included:
[0114] S11, the mail retrieval system receives the retrieval request sent by the management end.
[0115] S12, the mail retrieval system performs word segmentation processing on the retrieval content of the retrieval request to obtain a target word segmentation result.
[0116] The target word segmentation result includes original text, pinyin, radicals and components of the Chinese text after word segmentation processing of the retrieval content. The mail retrieval system stores at least one word segmentation index corresponding to the mail forwarded by the mail background bypass. The value of the at least one word segmentation index is a mail identifier ID. The at least one word segmentation index includes an original text index, a pinyin index, a radical index and a component index.
[0117] In a possible implementation, S12 can include:
[0118] S121, the mail retrieval system performs word segmentation processing on the retrieval content to obtain an initial word segmentation result.
[0119] S122, the mail retrieval system obtains Chinese text in the initial word segmentation result.
[0120] S123, the mail retrieval system obtains original text, pinyin, radicals and components of the Chinese text.
[0121] S124, the mail retrieval system obtains original text, pinyin, radicals and components of the Chinese text in the target word segmentation result.
[0122] It should be noted that when retrieving the mail, the retrieval content in the retrieval request is segmented by using the word segmentation method, and the pinyin, radicals and components of the Chinese text in the retrieval content are segmented. The mail ID containing the corresponding segmentation is retrieved.
[0123] S13, the mail retrieval system queries the target mail ID corresponding to the target word segmentation index matched with the target word segmentation result, so that the management end calls the target mail corresponding to the target mail ID by the mail management background.
[0124] In a possible implementation, S13 can include: the mail retrieval system queries the target word segmentation index matched with the target word segmentation result; and the mail retrieval system obtains the value corresponding to the target word segmentation index as the target mail ID.
[0125] In the embodiment of the application, after the target mail ID is retrieved, the administrator can further process the target mail through the mail management background to achieve the purpose of avoiding risks.
[0126] On the basis of the above-mentioned embodiments, the server further includes a mail database. The method provided in the embodiment of the application can further include:
[0127] S21, the mail background generates a mail ID corresponding to the initial mail; the initial mail is compressed and encrypted to obtain a to-be-stored mail; the initial mail is sent to the mail background after security check of the gateway system.
[0128] In the embodiment of the application, the mail background generates a mail ID for the initial mail after receiving the initial mail checked by the gateway system.
[0129] S22, the mail background stores the to-be-stored mail and the mail ID of the initial mail into a mail database.
[0130] In the embodiment of the application, the mail background stores the mail after encryption and compression and the mail ID into the mail database.
[0131] S23, the mail background forwards the initial mail and the mail ID of the initial mail to the mail retrieval system based on the Simple Mail Transfer Protocol (SMTP).
[0132] It should be noted that the mail background first copies a copy of the initial mail, and forwards the initial mail to the mail retrieval system based on the Simple Mail Transfer Protocol (SMTP) to establish a word segmentation index for the content of the initial mail by the mail system.
[0133] In a possible implementation, the method provided by the embodiment of the application can further include:
[0134] S24, the mail retrieval system obtains the initial mail and the mail ID of the initial mail.
[0135] S25, the mail retrieval system performs word segmentation processing on the text content of the initial mail to obtain an initial word segmentation result.
[0136] It should be noted that the text content is content without images, audio and video, etc. Non-text format, usually, the text content is processed by word segmentation to obtain at least one initial word segmentation result.
[0137] S26, the mail retrieval system establishes at least one word segmentation index for the initial word segmentation result.
[0138] It should be noted that the value of the at least one word segmentation index is the mail ID of the initial mail; the at least one word segmentation index includes an original text index, a pinyin index, a component index or a radical index.
[0139] S27, the mail retrieval system stores the at least one word segmentation index.
[0140] In a possible implementation, S26 provided by the embodiment of the application can include:
[0141] S261, the mail retrieval system acquires the initial Chinese text in the initial word segmentation result.
[0142] S262, the mail retrieval system acquires the original text, pinyin, partial character and radical of the initial Chinese text.
[0143] S263, the mail retrieval system respectively constructs the original text index, pinyin index, partial character index and radical index.
[0144] It should be noted that the key of the original text index is the original text, and the value of the original text index is the mail ID of the initial mail; the key of the pinyin index is the pinyin, and the value of the pinyin index is the mail ID of the initial mail; the key of the partial character index is the partial character, and the value of the partial character index is the mail ID of the initial mail; the key of the radical index is the radical, and the value of the radical index is the mail ID of the initial mail.
[0145] That is, the original text index {original text: mail ID}, the pinyin index {pinyin, mail ID}, the partial character index {partial character, mail ID}, and the radical index {radical, mail ID}.
[0146] In the embodiment of the application, the mail retrieval system performs word segmentation on the text content (not including image, audio and video and other non-text format content) in the initial mail, and if the Chinese text is involved, when the word segmentation index of the original text of the Chinese text is established, multiple word segmentation indexes of the pinyin, partial character and radical of the Chinese text are also established, and the keys of each word segmentation index are respectively the original text, pinyin, partial character and radical, and the value of the index is the ID of the initial mail.
[0147] As an example, the email retrieval system receives the initial email A forwarded by the email background bypass, and the email ID of the initial email A is 111. The text content in the initial email A (for example, the text content "補帖") is obtained. First, the text content is segmented to obtain multiple initial segmentation results ["補"] and ["帖"]. For each initial segmentation result, at least one segmentation index is established. Then, establishing at least one segmentation index includes the original text index {補, 111} {帖, 111}, the pinyin index {bǔ, 111} {tiē, 111}, the radical index {衤, 111} {刂, 111}, and the radical index {衤, 111} {刂, 111}. Another example is that the email retrieval system receives the initial email B forwarded by the email background bypass, and the email ID of the initial email B is 222. The text content in the initial email B (for example, the text content "补贴") is obtained. First, the text content is segmented to obtain multiple initial segmentation results ["补"] and ["贴"]. For each initial segmentation result, at least one segmentation index is established. Then, establishing at least one segmentation index includes {补, 222} {贴, 222} {bǔ, 222} {tiē, 222}, the radical index {衤, 百, 222} {贝, 222}, and the radical index {衤, 222} {贝, 222}.
[0148] Based on the above embodiments, the email retrieval system stores the obtained segmentation indexes for retrieving the retrieval requests sent by the management terminal. S27 provided by the embodiments of the present application may include: The email retrieval system stores the original text index, the pinyin index, the radical index, and the radical index.
[0149] It should be noted that the premise for the embodiments of the present application to execute is that the email background supports the bypass forwarding function, which can forward the original email to other systems. Each email has a unique email ID. The email management background supports querying email data from the email database according to the email ID and can perform further operations (such as viewing the original email, querying the recipients of the email, or deleting the email, etc.).
[0150] First, the embodiments of the present application use a retrieval method based on segmentation indexes to retrieve email content, and establish segmentation indexes for the pinyin, radicals, and radicals of Chinese texts when constructing segmentation indexes, which is beneficial to improving the retrieval hit rate, avoiding bypassing retrieval, improving email management efficiency, and improving the security of the email management system to a certain extent.
[0151] Moreover, the email retrieval system of the embodiments of the present application is established on the basis of all users and supports retrieving data within the scope of all users, including email content such as the email body. The retrieval scope is wider, which is beneficial to improving the retrieval hit rate and improving the management efficiency of the email management system to a certain extent.
[0152] Then, the SMTP-based mail bypass forwarding function is a common function of the mail management system, and most of the mail management systems have supported. According to the unique mail ID retrieval data, the basic function of the system, most of the mail management systems support the query of the specified mail according to the mail ID. The embodiment of the application reuses the original mail management system, adds a mail retrieval system on the basis of the original mail management system, and uses the existing function of the original mail management system to achieve the purpose of retrieval and processing, without the need for large-scale modification of the original associated mail system, thereby reducing the modification cost.
[0153] In a possible implementation, the mail management system further includes a gateway system, and before S21, the method provided by the embodiment of the application can further include:
[0154] S20, the gateway system checks the initial mail and obtains a checking result; when the checking result represents that the initial mail is not a junk mail, the gateway system sends the initial mail to the mail background.
[0155] In the embodiment of the application, the mail first arrives at the gateway system in the mail management system, and then arrives at the mail background after being checked by the gateway system.
[0156] In a possible implementation, the service end further includes a mail database, and the method provided by the embodiment of the application can further include:
[0157] S31, the mail management background receives the first query request sent by the management end;
[0158] S32, the mail management background retrieves the first mail corresponding to the first query request in the mail database;
[0159] S33, the mail management background sends the first mail to the management end.
[0160] In the embodiment of the application, the administrator can send a query request to the mail management background through the management end, and match the mail data of all users stored in the mail database in the mail database.
[0161] In a possible implementation, the mail management system further includes a client, and the service end further includes a mail database, and the method provided by the embodiment of the application further includes:
[0162] S41, the mail background receives the second query request sent by the client;
[0163] S42, the mail background retrieves the second mail corresponding to the second query request in the mail database;
[0164] S43, the mail background sends the second mail to the client.
[0165] In the embodiments of the present application, a user initiates a query request such as a mail viewing request to a mail background through a client, the mail background retrieves and returns mail data of the user from a mail database, and the mail data is displayed to the user through the client.
[0166] In the embodiments of the present application, the mail background supports a bypass forwarding function, can forward mails to a mail retrieval system, each mail has a unique ID, the mail management background supports querying mail data according to the mail ID to the mail database, and can further operate (such as viewing the original text of the mail, querying the recipients of the mail, or deleting the mail).
[0167] In this way, the embodiments of the present application improve the commonly used architecture of the mail management system, add a mail retrieval system, obtain the original data of the mail through the bypass forwarding mode, and establish a full-system and full-user-level word segmentation index to provide a retrieval function that can cover all users and can cover non-original storage data.
[0168] From the description of the above implementation, those skilled in the art can clearly understand that all or part of the steps in the above embodiment method can be implemented by means of software and a general hardware platform. Based on this understanding, the technical solutions of the present application can be embodied in the form of a software product. The computer software product can be stored in a storage medium such as a read-only memory (English: read-only memory, ROM) / RAM, a magnetic disk, an optical disk, etc., and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the method described in each embodiment or some parts of the embodiments of the present application.
[0169] Each embodiment in the specification is described in a progressive manner, and the same or similar parts between each embodiment can be referred to. Each embodiment focuses on the differences from other embodiments. In particular, for the device embodiments, since they are basically similar to the method embodiments, they are described more simply, and the relevant parts are described in the part of the method embodiments. The device embodiments described above are only schematic, and the modules described as separate components can or can not be physically separated, and the components shown as modules can or can not be physical modules, i.e., they can be located in one place or distributed on multiple network units. Part or all of the modules can be selected to achieve the objectives of the embodiments according to actual needs. Those skilled in the art can understand and implement without creative labor.
[0170] The above merely describes the preferred embodiments of the present application, and is not intended to limit the protection scope of the present application. It should be pointed out that, for those skilled in the art, several improvements and refinements can be made without departing from the present application, and these improvements and refinements should also be considered as the protection scope of the present application.
Claims
1. A method for managing emails based on bypass forwarding, characterized in that, Applied to an email management system, the email management system includes a server, a management interface, and an email retrieval system, the server includes an email backend and an email management backend, and the method includes: The email retrieval system receives retrieval requests sent by the management terminal; The email retrieval system performs word segmentation on the retrieval content of the retrieval request to obtain the target word segmentation result; the target word segmentation result includes the original text, pinyin, radicals, and components of the Chinese text after word segmentation of the retrieval content; the email retrieval system stores at least one word segmentation index corresponding to the email forwarded by the email backend bypass, and the value of at least one word segmentation index is the email identifier ID; at least one word segmentation index includes an original text index, a pinyin index, a radical index, and a component index; The email retrieval system queries the target email ID corresponding to the target word index that matches the target word segmentation result, so that the management terminal can call the email management backend to process the target email corresponding to the target email ID; The server-side component further includes an email database, and the method further includes: The email backend generates an email ID corresponding to the initial email; the initial email is compressed and encrypted to obtain the email to be stored; the initial email is sent to the email backend after a security check by the gateway system. The email backend stores the email IDs of the email to be stored and the initial email in the email database; The email backend forwards the initial email and its email ID to the email retrieval system via a bypass based on the Simple Mail Transfer Protocol (SMTP).
2. The method according to claim 1, characterized in that, The email retrieval system performs word segmentation on the retrieval content of the retrieval request to obtain the target word segmentation result, including: The email retrieval system performs word segmentation on the retrieval content to obtain initial word segmentation results; The email retrieval system retrieves the Chinese text from the initial word segmentation results; The email retrieval system obtains the original text, pinyin, radicals, and components of the Chinese text. The email retrieval system obtains the target word segmentation results, including the original Chinese text, pinyin, radicals, and components.
3. The method according to claim 2, characterized in that, The email retrieval system queries the target email identifier ID corresponding to the target word segmentation index that matches the target word segmentation result, including: The email retrieval system queries the target word segmentation index that matches the target word segmentation result; The email retrieval system obtains the target email ID as the value corresponding to the target word segmentation index.
4. The method according to claim 1, characterized in that, The server also includes an email database, and the method further includes: The email management backend receives the first query request sent by the management terminal; The email management backend retrieves the first email corresponding to the first query request from the email database; The email management backend sends the first email to the management terminal.
5. The method according to claim 1, characterized in that, The email management system further includes a client, the server further includes an email database, and the method further includes: The email backend receives the second query request sent by the client. The email backend retrieves the second email corresponding to the second query request from the email database; The email backend sends the second email to the client.
6. The method according to claim 1, characterized in that, The email management system also includes a gateway system, which generates the email ID corresponding to the initial email in the email backend. Before compressing and encrypting the initial email to obtain the email to be stored, the method further includes: The gateway system checks the initial email and obtains the check results; When the check result indicates that the initial email is not spam, the gateway system sends the initial email to the email backend.
7. The method according to claim 1, characterized in that, The method further includes: The email retrieval system obtains the initial email and the email ID of the initial email; The email retrieval system performs word segmentation based on the text content of the initial email to obtain the initial word segmentation result; The email retrieval system establishes at least one word segmentation index for the initial word segmentation result; the value of at least one word segmentation index is the email ID of the initial email; at least one word segmentation index includes an original text index, a pinyin index, a radical index, or a component index. The email retrieval system stores at least one of the word segmentation indexes.
8. The method according to claim 7, characterized in that, The email retrieval system establishes at least one word segmentation index for the initial word segmentation results, including: The email retrieval system obtains the initial Chinese text from the initial word segmentation results; The email retrieval system obtains the original text, pinyin, radicals, and components of the initial Chinese text; The email retrieval system constructs a raw text index, a pinyin index, a radical index, and a component index, respectively. The key of the raw text index is the raw text, and the value of the raw text index is the email ID of the initial email. The key of the pinyin index is the pinyin, and the value of the pinyin index is the email ID of the initial email. The key of the radical index is the radical, and the value of the radical index is the email ID of the initial email. The key of the component index is the component, and the value of the component index is the email ID of the initial email.
9. A mail management system based on bypass forwarding, characterized in that, The email management system includes a server, a management terminal, and an email retrieval system. The server includes an email backend and an email management backend. The email retrieval system is used to receive retrieval requests sent by the management terminal; The email retrieval system is also used to perform word segmentation on the retrieval content of the retrieval request to obtain the target word segmentation result; the target word segmentation result includes the original text, pinyin, radicals and components of the Chinese text after word segmentation of the retrieval content. The email retrieval system stores at least one word segmentation index corresponding to emails forwarded by the email backend bypass, and the value of at least one word segmentation index is an email identifier ID; at least one word segmentation index includes a raw text index, a pinyin index, a radical index, and a component index. The email retrieval system is also used to query the target email ID corresponding to the target word index that matches the target word segmentation result, so that the management terminal can call the email management backend to process the target email corresponding to the target email ID; The server also includes an email database; The email backend is used to generate the email ID corresponding to the initial email; The initial email is compressed and encrypted to obtain the email to be stored; the initial email is sent to the email backend after a security check by the gateway system. The email backend is also used to store the email IDs of the email to be stored and the initial email in the email database; The email backend is also used to bypass and forward the initial email and its email ID to the email retrieval system based on the Simple Mail Transfer Protocol (SMTP).
Citation Information
Patent Citations
Design of mail retrieval system on basis of mobile intelligent platform
CN108132938A
Vertical search method and device, computer system and readable storage medium
CN111177532A