CN107122949B - E-mail screening method and device - Google Patents

E-mail screening method and device Download PDF

Info

Publication number
CN107122949B
CN107122949B CN201610104120.5A CN201610104120A CN107122949B CN 107122949 B CN107122949 B CN 107122949B CN 201610104120 A CN201610104120 A CN 201610104120A CN 107122949 B CN107122949 B CN 107122949B
Authority
CN
China
Prior art keywords
title
character
mail
comparison
equal
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.)
Active
Application number
CN201610104120.5A
Other languages
Chinese (zh)
Other versions
CN107122949A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610104120.5A priority Critical patent/CN107122949B/en
Publication of CN107122949A publication Critical patent/CN107122949A/en
Application granted granted Critical
Publication of CN107122949B publication Critical patent/CN107122949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/107Computer-aided management of electronic mailing [e-mailing]

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Computer Hardware Design (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a method and a device for screening emails. The method automatically judges whether the mail is a repeated mail according to two mails selected by a user, if the mail is the repeated mail, other repeated mails are found out according to the overlapped part and are set to be in a selected state; or automatically searching the mails according to the screening keywords input by the user, and automatically setting the searched mails to be in a selected state; or automatically judging whether other mails which are overlapped with the selected mail exist according to the mail selected by the user, and if so, setting the overlapped mail in the selected state. Therefore, the user does not need to manually select and check the mails one by one, and the convenience and the efficiency of processing the e-mails are improved.

Description

E-mail screening method and device
Technical Field
The invention relates to the technical field of software, in particular to an electronic mail screening method and device.
Background
Electronic mailboxes, especially enterprise electronic mailboxes, often receive a large amount of emails with the same title (abbreviated as mails) or replies to the same mails, the contents of the mails are usually the same, and the mails are not required to be read every time, such as item celebration mails or holiday consolation mails, but because the number of the mails is large, other mails are often submerged, so that other mails are inconvenient to find and easy to miss, and therefore the mails with the same repeatability or characteristics need to be deleted or moved to other places. At present, a user needs to check an email first when deleting, moving or marking (marking as read or unread) the email, but only one email can be checked when processing a large batch of emails, so that the mode has large workload and low efficiency; or the mail on the current page is selected completely, in order to avoid misoperation, the mail which is not to be operated is searched in the selected mail, and the selection of the mail which is not to be operated is cancelled.
Disclosure of Invention
In order to solve the problem of low operation efficiency of selecting the e-mail in the related technology, the application provides a method and a device for screening the e-mail.
According to a first aspect of the embodiments of the present application, there is provided an email screening method, including:
acquiring a first title of a first selected mail and a second title of a second selected mail;
comparing the first title with the second title, and judging whether the proportion of a first overlapped part in the first title or the second title is greater than or equal to a preset threshold value, wherein the first overlapped part is the overlapped part between the first title and the second title;
if the proportion of the first overlapped part in the first title or the second title is larger than or equal to a preset threshold value, searching a mail to be searched of which the title comprises the first overlapped part;
and setting the mail to be searched with the title containing the first overlapped part to be in a selected state.
Optionally, the mails to be searched are all mails or unread mails.
Optionally, the comparing the first title with the second title, and determining whether a ratio of a first overlapped portion in the first title or the second title is greater than a preset threshold includes:
a step a1 of comparing the lengths of the first title and the second title;
a step a2 of, if the length of the first title is greater than or equal to the length of the second title, regarding the first title as a reference title and the second title as a comparison title, and if the length of the second title is greater than the length of the first title, regarding the second title as a reference title and the first title as a comparison title;
a3, sequentially comparing the ith character of the comparison title with the jth character of the reference title, and determining whether the ith character of the comparison title is the same as the jth character of the reference title, wherein j ═ k (i-1) to k (i), k (i-1) is the sequence number of the character in the reference title which is the first character same as the ith character of the comparison title, k (i-1) is less than k (i), k (i) is less than or equal to the character length m of the reference title, and recording (k i) and the kth (i) character ck (i) of the reference title;
step a4, judging whether i is less than or equal to n-1, wherein n is the character length of the comparison title;
step a5, if i is less than or equal to n-1, calculating i ═ i +1, and returning to step a3, otherwise, executing step a 6;
step a6, judging whether adjacent characters exist between Ck (i);
step a7, if there is an adjacent character between ck (i), calculating the proportion of the adjacent character between ck (i) to the first title or the second title, and judging whether the proportion is larger than a preset threshold value;
where i is 1, 2 … … n, and when i is 1, k (0) is 1.
According to a second aspect of the embodiments of the present application, there is provided another email screening method, including:
obtaining a screening keyword input by a user;
searching a mail to be searched of which the title comprises the screening keyword;
and setting the mail to be searched, the title of which contains the screening keyword, to be in a selected state.
Optionally, the mails to be searched are all mails or unread mails.
According to a third aspect of the embodiments of the present application, there is provided a further email screening method, including:
acquiring a first title of a selected mail;
comparing the first title with a third title of the mail to be searched, and judging whether the proportion of a second overlapping part in the first title is greater than or equal to a preset threshold value, wherein the second overlapping part is the overlapping part between the first title and the third title;
and if the proportion of the second overlapped part in the first title is greater than or equal to a preset threshold value, setting the mail to be searched in a selected state.
Optionally, the mails to be searched are all mails or unread mails.
Optionally, the comparing the first title with a third title of the email to be searched, and determining whether a ratio of a second overlapping part to the first title is greater than or equal to a preset threshold includes:
a step b1 of comparing the lengths of the first title and the third title;
a step b2 of, if the length of the first title is greater than or equal to the length of the third title, regarding the first title as a reference title and the third title as a comparison title, and if the length of the third title is greater than the length of the first title, regarding the third title as a reference title and the first title as a comparison title;
step b3, comparing the ith character of the comparison title with the jth character of the reference title in sequence, and determining whether the ith character of the comparison title is the same as the jth character of the reference title, wherein j ═ k (i-1) to k (i), k (i-1) is the sequence number of the character in the reference title which is the first character same as the ith character of the comparison title, k (i-1) is less than k (i), k (i) is less than or equal to the character length m of the reference title, and recording (k i) and the kth (i) character ck (i) of the reference title;
b4, judging whether i is less than or equal to n-1, wherein n is the character length of the comparison title;
step b5, if i is less than or equal to n-1, calculating i ═ i +1, and returning to step a3, otherwise, executing step b 6;
step b6, judging whether adjacent characters exist between Ck (i);
step b7, if there is an adjacent character between ck (i), calculating the proportion of the adjacent character between ck (i) in the first title, and judging whether the proportion is larger than a preset threshold value;
where i is 1, 2 … … n, and when i is 1, k (0) is 1.
Optionally, before acquiring the first title of the selected email, the email screening method further includes:
judging whether the operation of deleting, marking or moving the selected mail exists;
and if the operation of deleting, marking or moving the selected mail exists, acquiring a first title of the selected mail before deleting, marking or moving the selected mail.
Optionally, the email screening method further includes:
and displaying a dialog box for confirming that all the mails to be selected are deleted, marked or moved.
In accordance with a fourth aspect of the embodiments of the present application, corresponding to the first aspect of the embodiments of the present application, there is provided an email screening apparatus, including:
a title acquiring unit for acquiring a first title of the first selected mail and a second title of the second selected mail;
a first overlap determining unit, configured to compare the first title with the second title, and determine whether a ratio of a first overlap portion to the first title or the second title is greater than or equal to a preset threshold, where the first overlap portion is a portion that overlaps between the first title and the second title;
the first searching unit is used for searching the mail to be searched of which the title comprises the first overlapped part if the proportion of the first overlapped part in the first title or the second title is greater than or equal to a preset threshold value;
and the first setting unit is used for setting the mail to be searched of which the title comprises the first overlapped part into a selected state.
Optionally, the mails to be searched are all mails or unread mails.
Optionally, the first coincidence judging unit is specifically configured to:
a step a1 of comparing the lengths of the first title and the second title;
a step a2 of, if the length of the first title is greater than or equal to the length of the second title, regarding the first title as a reference title and the second title as a comparison title, and if the length of the second title is greater than the length of the first title, regarding the second title as a reference title and the first title as a comparison title;
a3, sequentially comparing the ith character of the comparison title with the jth character of the reference title, and determining whether the ith character of the comparison title is the same as the jth character of the reference title, wherein j ═ k (i-1) to k (i), k (i-1) is the sequence number of the character in the reference title which is the first character same as the ith character of the comparison title, k (i-1) is less than k (i), k (i) is less than or equal to the character length m of the reference title, and recording (k i) and the kth (i) character ck (i) of the reference title;
step a4, judging whether i is less than or equal to n-1, wherein n is the character length of the comparison title;
step a5, if i is less than or equal to n-1, calculating i ═ i +1, and returning to step a3, otherwise, executing step a 6;
step a6, judging whether adjacent characters exist between Ck (i);
step a7, if there is an adjacent character between ck (i), calculating the proportion of the adjacent character between ck (i) to the first title or the second title, and judging whether the proportion is larger than a preset threshold value;
where i is 1, 2 … … n, and when i is 1, k (0) is 1.
According to a fifth aspect of the embodiments of the present application, corresponding to the second aspect of the embodiments of the present application, there is provided another email screening apparatus, including:
a keyword acquisition unit for acquiring a screening keyword input by a user;
the second searching unit is used for searching the mails to be searched, the titles of which contain the screening keywords;
and the second setting unit is used for setting the mail to be searched of which the title comprises the first overlapped part into a selected state.
Optionally, the mails to be searched are all mails or unread mails.
In accordance with a sixth aspect of the embodiments of the present application, there is provided, in accordance with the third aspect of the embodiments of the present application, yet another email screening apparatus, including:
a selected mail title acquiring unit for acquiring a first title of a selected mail;
the second overlapping judgment unit is used for comparing the first title with a third title of the mail to be searched and judging whether the proportion of a second overlapping part in the first title is larger than or equal to a preset threshold value or not, wherein the second overlapping part is the overlapping part between the first title and the third title;
and the third setting unit is used for setting the mail to be searched to be in a selected state if the proportion of the second overlapped part in the first title is greater than or equal to a preset threshold value.
Optionally, the mails to be searched are all mails or unread mails.
Optionally, the second coincidence judging unit is specifically configured to:
a step b1 of comparing the lengths of the first title and the third title;
a step b2 of, if the length of the first title is greater than or equal to the length of the third title, regarding the first title as a reference title and the third title as a comparison title, and if the length of the third title is greater than the length of the first title, regarding the third title as a reference title and the first title as a comparison title;
step b3, comparing the ith character of the comparison title with the jth character of the reference title in sequence, and determining whether the ith character of the comparison title is the same as the jth character of the reference title, wherein j ═ k (i-1) to k (i), k (i-1) is the sequence number of the character in the reference title which is the first character same as the ith character of the comparison title, k (i-1) is less than k (i), k (i) is less than or equal to the character length m of the reference title, and recording (k i) and the kth (i) character ck (i) of the reference title;
b4, judging whether i is less than or equal to n-1, wherein n is the character length of the comparison title;
step b5, if i is less than or equal to n-1, calculating i ═ i +1, and returning to step a3, otherwise, executing step b 6;
step b6, judging whether adjacent characters exist between Ck (i);
step b7, if there is an adjacent character between ck (i), calculating the proportion of the adjacent character between ck (i) in the first title, and judging whether the proportion is larger than a preset threshold value;
where i is 1, 2 … … n, and when i is 1, k (0) is 1.
Optionally, the email screening apparatus further includes:
an operation judgment unit for judging whether there is deletion, marking or moving operation on the selected mail before acquiring the first title of the selected mail;
the selected mail title acquiring unit is specifically used for acquiring the first title of the selected mail before deleting, marking or moving the selected mail if the operation of deleting, marking or moving the selected mail exists.
Optionally, the email screening apparatus further includes:
and the confirmation dialog box display unit is used for displaying a dialog box for confirming that all the selected mails are subjected to deleting, marking or moving operation.
According to the technical scheme provided by the embodiment of the application, whether the mail is the repeated mail or not is automatically judged according to two mails selected by a user, if the mail is the repeated mail, other repeated mails are found out according to the overlapped part and are set to be in a selected state; or the user can automatically search the mails according to the screening keywords, the searched mails can be automatically set to be in a selected state, the user does not need to check every mail and manually select every mail, the user can conveniently operate the mails, and the mail processing efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an email screening method according to an exemplary embodiment of the present application.
Fig. 2 is a flowchart illustrating another email screening method according to an exemplary embodiment of the present application.
Fig. 3 is a flowchart illustrating another email screening method according to an exemplary embodiment of the present application.
Fig. 4 is a block diagram illustrating an email screening apparatus according to an exemplary embodiment of the present application.
Fig. 5 is a block diagram of another email screening apparatus according to an exemplary embodiment of the present application.
Fig. 6 is a block diagram of another email screening apparatus according to an exemplary embodiment of the present application.
Fig. 7 is a block diagram of another email screening apparatus according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present application, but it will be appreciated by those skilled in the art that the present application may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail as not to unnecessarily obscure aspects of the embodiments.
Fig. 1 is a schematic flowchart illustrating an email screening method according to an exemplary embodiment of the present application, where as shown in fig. 1, the method includes:
step S101, a first title of a first selected mail and a second title of a second selected mail are obtained.
When a user wants to screen e-mails with repeated titles (e-mails for short), two of the e-mails are selected first, and then the e-mail screening device of the mail processing system acquires the titles of the two e-mails selected by the user, which are the first title of the first selected e-mail and the second title of the second selected e-mail respectively.
Step S102, comparing the first title with the second title, and determining whether a ratio of a first overlapping portion to the first title or the second title is greater than or equal to a preset threshold, where the first overlapping portion is an overlapping portion between the first title and the second title.
After the first title and the second title are obtained, whether the proportion of the first overlapped part in the first title or the second title is greater than or equal to a preset threshold value or not is judged, that is, whether the overlapped part exists between the first title and the second title and whether the proportion of the overlapped part in the first title is greater than or equal to the preset threshold value or not is judged, or whether the proportion of the overlapped part in the second title is greater than or equal to the preset threshold value or not is judged. The ratio of the first overlapped part occupying the first title or the ratio of the first overlapped part occupying the second title can be set by self, and the title with longer length is used for judging the occupation ratio of the first overlapped part, so that the judgment accuracy can be improved, and the method is a better mode.
In one embodiment, step S102 may include:
a step a1 of comparing the lengths of the first title and the second title;
step a2, if the length of the first title is greater than or equal to the length of the second title, using the first title as a reference title and the second title as a comparison title, and if the length of the second title is greater than the length of the first title, using the second title as a reference title and the first title as a comparison title.
For the comparison of the first title and the second title, it is also possible to randomly designate which one is the reference title and then the other is the comparison title. However, when the comparison is made by comparing one title with another title word by word, the shorter length (i.e., the number of characters) of the title used for word by word decomposition improves the comparison efficiency, and therefore, it is preferable that the title with the shorter length is used as the title for word by word decomposition, that is, the comparison title, and the other title with the longer length is used as the reference title. When the lengths of the two titles are equal, any one of the two titles may be selected as a reference title, and in this embodiment, when the lengths of the two titles are equal, the first title is taken as the reference title.
After comparing the lengths of the first title and the second title, the longer title is used as a reference title, and the shorter title is used as a comparison title, that is, if the length of the first title is greater than or equal to the length of the second title, the first title is used as the reference title, the second title is used as the comparison title, and if the length of the second title is greater than the length of the first title, the second title is used as the reference title, and the first title is used as the comparison title.
Step a3, comparing the ith character of the comparison title with the jth character of the reference title in sequence, and determining whether the ith character of the comparison title is the same as the jth character of the reference title, wherein j is k (i-1) to k (i), k (i-1) is the serial number of the character in the reference title which is the first character same as the ith character of the comparison title, k (i-1) is less than k (i), and k (i) is less than k (i)Or equal to the length m of the reference header, record k (i) and the k (i) th character C of the reference headerk(i)
Step a4, judging whether i is less than or equal to n-1, wherein n is the character length of the comparison title;
step a5, if i is less than or equal to n-1, calculate i ═ i +1 and return to step a3, otherwise, execute step a 6.
Where i is 1, 2 … … n, and when i is 1, k (0) is 1. For the comparison title, each character of the comparison title is compared with the reference title according to the character sequence (namely the conventional character string character arrangement sequence) of the reference title, and whether the character is the same as a certain character in the reference title is judged. When the first character of the comparison title is compared according to the character sequence of the reference title, if the character currently compared in the comparison title is the same as the character when a certain character of the reference title is reached, the comparison of the whole reference title does not need to be continued, the character, namely the character which is the first character in the reference title and is the same as the first character of the comparison title, at this time, the character which is the same as the character currently compared in the comparison title is recorded, and the serial number (such as the subscript of the character string array) of the character in the reference title is recorded. This is because the titles themselves are continuous character strings, and the portions of one title that overlap another title cannot be scattered out of order. Similarly, when the second character of the comparison title is the same as the certain character of the reference title, the character of the reference title is the starting character of the third comparison, that is, the second character of the comparison title is compared with the reference title, starting from the starting character of the reference title for the third comparison, and so on.
The above-described execution logic may be expressed as the following program steps: for i-1, 2 … … n, the ith character of the comparison title is sequentially added to the reference titleIs compared with the jth character of the reference title, and whether the ith character of the reference title and the jth character of the reference title are the same or not is judged, wherein j is k (i-1) to ki, k (i-1) is the sequence number of the character which is firstly the same as the ith character of the reference title, k (i-1) is less than k (i), k (i) is less than or equal to the character length m of the reference title, and the k (i) and the kth (i) character C of the reference title are recordedk(i)
Specifically, the 1 st character of the comparison title is sequentially compared with the jth character of the reference title, whether the 1 st character of the comparison title is the same as the jth character of the reference title is judged, if the kth character (1) of the reference title is the same as the 1 st character of the comparison title during comparison, the comparison is carried out until the pair is compared, wherein j is k (0) to k (1), k (0) is 1, and k (1) is less than or equal to the character length m of the reference title, and then the kth character (1) of the reference title and the kth character (1) C of the reference title are recordedk(1)(ii) a Then, judging whether i is less than or equal to n-1, wherein n is the character length of the comparison title, and here, judging whether 1 is less than or equal to n-1, for example, n is 10, namely judging whether 1 is less than or equal to 9, and undoubtedly, the round 1 is less than 9; then let i be i +1, then i be 2, and return to step a3, that is, compare the 2 nd character of the comparison title with the j th character of the reference title in turn, determine whether the 2 nd character of the comparison title is the same as the j th character of the reference title, and compare the k (2) th character of the reference title with the 2 nd character of the comparison title in the comparison process, where j is k (1) to k (2), k (2) is less than or equal to the character length m of the reference title, and then record k (2) and the k (2) th character C of the reference titlek(1)(ii) a And so on. In the above step, if i is greater than n-1, it indicates that each character of the comparison title has been compared, so the process goes to step a6 to perform the following steps.
In the above procedure steps, it is possible that when the characters of the comparison title have not been compared, k (i) is already equal to the character length m of the reference title, then in the next comparison, starting from the last character of the reference title, but in this case, none of the characters in the reference title will be the same as the characters in the comparison title, and therefore the execution logic will not be affected.
Step a6, judgment Ck(i)Whether there is an adjacent character in between;
step a7, if Ck(i)Whether there is an adjacent character between them, calculate Ck(i)Whether the proportion of adjacent characters in the first title or the second title is larger than a preset threshold value or not.
Wherein for all recorded Ck(i)Judgment of Ck(i)If there is no adjacent character, the character with the same comparison title and the reference title is a discrete character and cannot be used as a superposition part. If the adjacent characters exist, the adjacent characters are used as a first overlapped part, the number of the adjacent characters is calculated, and the number is divided by the length of the first title or the length of the second title to obtain the proportion of the first overlapped part in the first title or the second title. The calculation ratio of the length of the first title and the length of the second title may be set by itself, and both of them may be calculated by the title with a longer length, which is beneficial to improving the accuracy, so that the calculation ratio of the title with a longer length may be selected according to the result of step a 1. Ck(i)In between, a character adjacent to another but not adjacent to another character may occur, that is, a plurality of adjacent characters may occur, each adjacent character is viewed at a first overlapping portion, a ratio is calculated for each first overlapping portion, and each calculated ratio is determined.
Step S103, if the proportion of the first overlapped part in the first title or the second title is larger than or equal to a preset threshold value, searching a mail to be selected of which the title comprises the first overlapped part in the mail to be searched;
and step S104, setting the mail to be selected as a selected state.
If the proportion of the first overlapped part in the first title or the second title is greater than or equal to a preset threshold value, determining that the mails corresponding to the two titles are repeated mails. The first title and the second title are overlapped in a segmented mode, and as long as the proportion of a first overlapped part in the first title or the second title is larger than or equal to a preset threshold value, the mails (the first selected mail and the second selected mail) corresponding to the two titles can be determined to be the repeated mails. And then searching a mail to be selected with a title containing a first overlapped part in the mail to be searched according to the first overlapped part accounting for the first title or the second title, wherein the mail to be searched can be all mails or unread mails (some unread mails in an electronic mailbox system are marked as new mails), and when the mail to be searched is all mails, the searching of repeated mails is not limited to the unread mails or the new mails, which is favorable for operating historical repeated mails. The search may use a conventional method of searching for mail by title. The searched title comprises the mail to be selected of the first overlapped part, namely, the mail which is overlapped with the first selected mail and the second selected mail. And then setting the searched mail as the selected state. If the proportion of the first overlapped part in the first title or the second title is smaller than the preset threshold value, determining that the mails corresponding to the two titles are not the repeated mails, ending the execution process, and displaying a prompt of the two mails which are not the repeated mails, so that the user can conveniently select again.
In addition, for step S102, the execution logic may also use fractional segmentation search formula comparison, specifically: randomly assigning one of the first title and the second title as a reference title and the other as a comparison title, or comparing the lengths of the two titles as in step a1, and then selecting the shorter one as the comparison title and the other as the reference title; then in the first comparison, whether an integral comparison title exists in the reference title is searched, the search can use a conventional character string search algorithm, if yes, step S103 is executed to judge whether the ratio of the length of the comparison title to the reference title is larger than or equal to a preset threshold value, if yes, the mails corresponding to the first title and the second title are determined to be repeated mails, and if not, the mails corresponding to the two titles are not repeated mails; if no integral comparison title exists in the reference title, segmenting the comparison title according to a preset length, wherein the preset length is determined by a preset threshold value, the segmentation is to take the first character of the comparison title as a first character length to obtain a first segment, take the second character of the comparison title as a second character length to obtain a second segment, and so on to obtain t segments, then searching whether the first segment exists in the reference title, if so, indicating that the first overlapped part of the first title and the second title is equal to the preset threshold value, and no other segments exist in the reference title, if not, searching whether the second segment exists in the reference title, and so on, as long as any one of the t segments exists in the reference title, it can be determined that the first overlapped part of the first header and the second header is equal to the preset threshold value, so as to determine that the mails corresponding to the two headers are repeated mails, and the first overlapped part is the segment existing in the reference header. The above implementation has fewer steps than the implementation of step a1 to step a7, but has lower accuracy, and from the viewpoint of improving accuracy, the implementation of step a1 to step a7 is the better implementation.
After the email system sets the found email to be in the selected state, the repeated emails are displayed as checked in the mailbox interface. The e-mail system can also display an operation dialog box for the selected repeated mails, inquire whether the user performs operations of deleting, marking as read, marking as unread or moving to other folders on the mails, and count the selected repeated mails, such as counting the number of the repeated mails, and display the counting result for the user to refer.
According to the technical scheme provided by the embodiment, whether the e-mail is the repeated e-mail or not is automatically judged according to the two e-mails selected by the user, if the e-mail is the repeated e-mail, other repeated e-mails are found out according to the overlapped part and are set to be in the selected state, so that the user does not need to manually select each repeated e-mail, and the e-mail processing efficiency is improved.
Fig. 2 is a schematic flowchart of another email screening method according to an exemplary embodiment of the present application, where as shown in fig. 2, the method includes:
step S201, obtaining a screening keyword input by a user;
step S202, searching a mail to be searched of which the title comprises the screening keyword;
step S203, the mail to be searched with the title containing the screening keyword is set to be in a selected state.
The mails to be searched may be all mails or unread (or new) mails. Displaying a screening keyword input box on an email interface, inputting screening keywords in the input box by a user, searching a to-be-searched email with a title containing the screening keywords according to the keywords after the screening keywords are obtained through the input box, and setting the to-be-searched email with the title containing the screening keywords as a selected state. The searching may be to scan the title of the mail to be searched, determine whether the mail contains the filtering keyword, and set the mail in the selected state if the mail contains the filtering keyword.
And after the searched mails are set to be in the selected state, the selected mails can be displayed as checked mails on a mailbox interface. The e-mail system may also display an operation dialog box for the selected mails, ask the user whether to delete, mark as read, mark as unread, or move to other folders for the mails, and count the selected mails, for example, count the number of the selected mails, and display the count result for the user to refer.
According to the technical scheme provided by the embodiment, the user can automatically search the mails according to the screening keywords, the searched mails can be automatically set to be in the selected state, the user does not need to check one mail and manually select the mails one by one, the user can conveniently operate the mails, and the mail processing efficiency is improved.
Fig. 3 is a flowchart illustrating another email screening method according to an exemplary embodiment of the present application, where as shown in fig. 3, the method includes:
in step S301, a first title of the selected mail is acquired.
In one embodiment, the first title of the selected email may be obtained after the user selects the email, so as to determine whether the email is duplicated with the selected email in the following. In another embodiment, after the user selects the email and performs the deleting operation or the marking operation, and before the system receives the deleting operation or the marking operation but does not perform the email deleting and marking, that is, after the user selects the email and performs the deleting operation or the marking operation, and before the email is not deleted and marked, the first title of the selected email may be obtained, specifically, the performing step may be:
(1) judging whether the operation of deleting, marking or moving the selected mail exists;
(2) and if the operation of deleting, marking or moving the selected mail exists, acquiring a first title of the selected mail before the selected mail is deleted, marked or moved.
After a user selects a mail, whether the selected mail is deleted, marked or moved or not can be judged by judging whether the mail box system receives the operation of deleting, marking or moving the selected mail or by reading the value of an operation starting module, wherein the operation starting module is a functional module for starting the operation of deleting, marking or moving, and the value of the operation starting module is used for indicating whether the operation of deleting, marking or moving is started or not. If there are deletion, marking or moving operations on the selected mail, the first title of the selected mail is acquired before these operations are performed. The mailbox system may perform a deleting, marking or moving operation after acquiring the first header of the selected mail, so as to delete, mark or move the selected mail, or may perform a deleting, marking or moving operation after step 303, or may perform a deleting, marking or moving operation after displaying a dialog box for deleting, marking or moving all the selected mails after step 303, so as to delete, mark or move all the selected mails. It should be noted that the marking operation includes an operation of marking the mail as read or unread, and the moving operation includes an operation of moving the mail from one folder to another folder.
Step S302, comparing the first title with a third title of the mail to be searched, and judging whether the proportion of a second overlapping part in the first title is greater than or equal to a preset threshold value, wherein the second overlapping part is the overlapping part between the first title and the third title;
step S303, if the proportion of the second overlapped part in the first title is greater than or equal to a preset threshold value, setting the mail to be searched to be in a selected state.
The mails to be searched may be all mails or unread (or new) mails.
In step S302, referring to step S102, the comparing the first title with the third title of the email to be searched, and determining whether the ratio of the second overlapping part to the first title is greater than or equal to a preset threshold value may include:
a step b1 of comparing the lengths of the first title and the third title;
a step b2 of, if the length of the first title is greater than or equal to the length of the third title, regarding the first title as a reference title and the third title as a comparison title, and if the length of the third title is greater than the length of the first title, regarding the third title as a reference title and the first title as a comparison title;
step b3, comparing the ith character of the comparison title with the jth character of the reference title in sequence, and determining whether the ith character of the comparison title is the same as the jth character of the reference title, wherein j is k (i-1) to k (i), k (i-1) is the serial number of the character which is the first character of the reference title and is the same as the ith-1 character of the comparison title, and k (i) is the first character of the reference titleThe number of the same character as the ith character of the comparison title, k (i-1) less than k (i), k (i) less than or equal to the character length m of the reference title, record k (i) and the kth (i) character C of the reference titlek(i)
B4, judging whether i is less than or equal to n-1, wherein n is the character length of the comparison title;
step b5, if i is less than or equal to n-1, calculating i ═ i +1, and returning to step a3, otherwise, executing step b 6;
step b6, judge Ck(i)Whether there is an adjacent character in between;
step b7, if Ck(i)Whether there is an adjacent character between them, calculate Ck(i)The adjacent characters account for the proportion of the first title, and whether the proportion is larger than a preset threshold value is judged;
where i is 1, 2 … … n, and when i is 1, k (0) is 1.
If the proportion of the second overlapped part of the mail to be searched in the first title is larger than or equal to a preset threshold value, the mail to be searched can be determined to be the overlapped mail with the selected mail, and therefore the mail to be searched is set to be in the selected state. And executing the operation on each mail to be searched, and setting the mail which is repeated with the selected mail in all the mails to be searched as the selected state. If the proportion of the second overlapped part of the mail to be searched in the first title is smaller than a preset threshold value, the mail to be searched and the selected mail are determined not to be repeated mails, and if the proportions of the second overlapped part of all the mails to be searched in the first title are smaller than the preset threshold value, namely the mail to be searched and the selected mail are not repeated mails, the execution process can be ended.
After the to-be-searched email that is repeated with the selected email is set to the selected state, the email system may further include, although receiving the deletion operation or the marking operation on the selected email corresponding to the first title, before deleting or marking the selected email:
a dialog box confirming the deletion, marking or moving operation for all selected mail is displayed.
The dialog box is used for inquiring whether the user deletes, marks as read, marks as unread or moves to other folders for the mails, and the electronic mail system can also count the selected mails, for example, count the number of the selected mails, and display the counting result in the dialog box for the user to refer to. Therefore, when a user selects one mail to operate, the system can automatically identify the mail which is repeated with the selected mail in all mails or unread mails (or new mails), set the mail which is repeated with the selected mail to be in a selected state, and perform the same operation as the initially selected mail, such as deletion, marking or moving operation on all the selected mails, thereby facilitating the batch operation of the user, improving the efficiency of mail processing of the user, displaying a dialog box for confirming the operation on all the selected mails, being beneficial to preventing misoperation of the user and providing the accuracy of mail processing. All the selected mails include the selected mail corresponding to the first title, which is the mail initially selected by the user, and the to-be-searched mail set to the selected state in step S303.
Through the above description of the method embodiments, those skilled in the art can clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation manner in many cases. Based on such understanding, the technical solutions of the present application, which essentially or partially contribute to the prior art, may be embodied in the form of software products and stored in a storage medium, and include instructions for causing an intelligent device to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media that can store data and program codes, such as Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
Fig. 4 is a block diagram illustrating an email screening apparatus according to an exemplary embodiment of the present application. As shown in fig. 4, the apparatus includes:
a title obtaining unit U401, configured to obtain a first title of the first selected mail and a second title of the second selected mail;
a first overlap determining unit U402, configured to compare the first title with the second title, and determine whether a ratio of a first overlap portion to the first title or the second title is greater than or equal to a preset threshold, where the first overlap portion is a portion that overlaps between the first title and the second title;
a first searching unit U403, configured to search for a to-be-searched email whose header includes the first overlapping portion if the ratio of the first overlapping portion to the first header or the second header is greater than or equal to a preset threshold;
and a first setting unit U404, configured to set the mail to be searched whose header includes the first overlapped portion to a selected state.
The mails to be searched can be all mails or unread mails.
In an embodiment, the first overlap determining unit U302 is specifically configured to:
a step a1 of comparing the lengths of the first title and the second title;
a step a2 of, if the length of the first title is greater than or equal to the length of the second title, regarding the first title as a reference title and the second title as a comparison title, and if the length of the second title is greater than the length of the first title, regarding the second title as a reference title and the first title as a comparison title;
step a3, comparing the ith character of the comparison title with the jth character of the reference title in sequence, and determining whether the ith character of the comparison title is the same as the jth character of the reference title, wherein j (k-1) to k (i), k (i-1) is the serial number of the character in the reference title which is the first character same as the ith character of the comparison title, k (i-1) is less than k (i), and k (i) is less than or equal to k (i)The character length m of the reference title, record k (i) and the k (i) th character C of the reference titlek(i)
Step a4, judging whether i is less than or equal to n-1, wherein n is the character length of the comparison title;
step a5, if i is less than or equal to n-1, calculating i ═ i +1, and returning to step a3, otherwise, executing step a 6;
step a6, judgment Ck(i)Whether there is an adjacent character in between;
step a7, if Ck(i)Whether there is an adjacent character between them, calculate Ck(i)The proportion of adjacent characters in the first title or the second title is judged, and whether the proportion is larger than a preset threshold value is judged;
where i is 1, 2 … … n, and when i is 1, k (0) is 1.
In another embodiment, the first coincidence determining unit U302 may use a fractional segmentation search comparison, specifically: randomly assigning one of the first title and the second title as a reference title and the other as a comparison title, or comparing the lengths of the two titles as in step a1, and then selecting the shorter one as the comparison title and the other as the reference title; then in the first comparison, whether an integral comparison title exists in the reference title is searched, the searching can use a conventional character string searching algorithm, if yes, the first searching unit U303 judges whether the ratio of the length of the comparison title to the reference title is larger than or equal to a preset threshold value, if yes, the mails corresponding to the first title and the second title are determined to be repeated mails, and if not, the mails corresponding to the two titles are not repeated mails; if no integral comparison title exists in the reference title, segmenting the comparison title according to a preset length, wherein the preset length is determined by a preset threshold value, the segmentation is to take the first character of the comparison title as a first character length to obtain a first segment, take the second character of the comparison title as a second character length to obtain a second segment, and so on to obtain t segments, then searching whether the first segment exists in the reference title, if so, determining that the overlapped part of the first title and the second title is equal to the preset threshold value by the first searching unit U303, and the U302 can not need to continuously search whether other segments exist, if not, searching whether the second segment exists in the reference title, and so on as long as any one of the t segments exists in the reference title, that is, the first searching unit U303 may determine that the first overlapped portion of the first header and the second header is equal to the preset threshold, so as to determine that the mails corresponding to the two headers are duplicate mails, where the first overlapped portion is the segment existing in the reference header.
The first search unit U403 may use a conventional method of searching for mails according to titles, where the searched mail header includes the mail to be searched for of the first overlapped part, that is, the mail that is overlapped with the first selected mail and the second selected mail. The first setting unit U404 then sets the found mail to be in the selected state. If the proportion of the first overlapped part in the first title or the second title is smaller than the preset threshold value, the mailbox system can determine that the mails corresponding to the two titles are not the repeated mails, can end the execution process, and can also display a prompt of the two mails which are not the repeated mails to remind the user of reselecting.
Fig. 5 is a block diagram of another email screening apparatus according to an exemplary embodiment of the present application. As shown in fig. 5, the apparatus includes:
a keyword obtaining unit U501, configured to obtain a screening keyword input by a user;
the second searching unit U502 is used for searching the mails to be searched, the titles of which contain the screening keywords;
and the second setting unit U503 is configured to set the to-be-searched mail with the title containing the filtering keyword to a selected state.
The mail to be searched can be all mails or unread mails (or new mails). The method comprises the steps that a screening keyword input box is displayed on an electronic mailbox interface, a user inputs screening keywords into the input box, after a keyword acquisition unit U401 acquires the screening keywords through the input box, a second search unit U402 searches mails of which the titles contain the screening keywords in the mails to be searched according to the keywords, the search can be to scan the titles of the mails to be searched and judge whether the mails contain the screening keywords, and then a second setting unit U403 sets the mails to be searched of which the titles contain the screening keywords to be in a selected state.
Fig. 6 is a block diagram of another email screening apparatus according to an exemplary embodiment of the present application. As shown in fig. 6, the apparatus includes:
a selected mail title acquiring unit U601 for acquiring a first title of a selected mail;
a second overlapping judgment unit U602, comparing the first title with a third title of the email to be searched, and judging whether a ratio of a second overlapping part to the first title is greater than or equal to a preset threshold, where the second overlapping part is a part overlapping between the first title and the third title;
a third setting unit U603, configured to set the mail to be searched as the selected mail if the ratio of the second overlapped part to the first header is greater than or equal to a preset threshold.
The mails to be searched can be all mails or unread mails.
The second coincidence judging unit U602 may refer to the first coincidence judging unit U402, and may specifically be configured to:
a step b1 of comparing the lengths of the first title and the third title;
a step b2 of, if the length of the first title is greater than or equal to the length of the third title, regarding the first title as a reference title and the third title as a comparison title, and if the length of the third title is greater than the length of the first title, regarding the third title as a reference title and the first title as a comparison title;
step b3, comparing the ith character of the comparison title with the jth character of the reference title in sequence, and judging the ith character of the comparison title and the jth character of the reference titleIf j is the same as the j (i-1) character, k (i-1) is the sequence number of the character which is the first character of the reference title and is the same as the i (1) character of the comparison title, k (i) is the sequence number of the character which is the first character of the reference title and is the first character of the comparison title, k (i-1) is less than k (i), k (i) is less than or equal to the character length m of the reference title, and k (i) and the k (i) character C of the reference title are recordedk(i)
B4, judging whether i is less than or equal to n-1, wherein n is the character length of the comparison title;
step b5, if i is less than or equal to n-1, calculating i ═ i +1, and returning to step a3, otherwise, executing step b 6;
step b6, judge Ck(i)Whether there is an adjacent character in between;
step b7, if Ck(i)Whether there is an adjacent character between them, calculate Ck(i)The adjacent characters account for the proportion of the first title, and whether the proportion is larger than a preset threshold value is judged;
where i is 1, 2 … … n, and when i is 1, k (0) is 1.
If the proportion of the second overlapped part in the first header is greater than or equal to a preset threshold, the third setting unit U603 sets the mail to be searched to be in the selected state, that is, sets a mail, which is overlapped with the selected mail, in the mail to be searched to be in the selected state. If the proportion of the second overlapped part of the mail to be searched in the first title is smaller than a preset threshold value, the mailbox system can determine that the mail to be searched and the selected mail are not repeated mails, and if the proportions of the second overlapped part of all the mails to be searched in the first title are smaller than the preset threshold value, namely the mail to be searched and the selected mail are not repeated mails, the execution process can be ended.
Fig. 7 is a block diagram of another email screening apparatus according to an exemplary embodiment of the present application. As shown in fig. 7, the apparatus includes:
an operation judgment unit U701, configured to judge whether there is a deletion, marking, or moving operation on a selected mail before acquiring a first title of the selected mail;
the selected mail title acquiring unit U702 is specifically configured to acquire the first title of the selected mail before deleting, marking or moving the selected mail if there is a deletion, marking or moving operation on the selected mail.
A second overlapping judgment unit U703 that compares the first title with a third title of the email to be searched, and judges whether a ratio of a second overlapping part to the first title is greater than or equal to a preset threshold, where the second overlapping part is a part overlapping between the first title and the third title;
a third setting unit U704, configured to set the mail to be searched as the selected mail if the ratio of the second overlapped part to the first header is greater than or equal to a preset threshold.
A confirmation dialog box display unit U705 for displaying a dialog box for confirming that the deletion operation or the marking operation is performed for all the selected mails.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for apparatus or system embodiments, since they are substantially similar to method embodiments, they are described in relative terms, as long as they are described in partial descriptions of method embodiments. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
It is noted that, in this document, relational terms such as "first" and "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, or device that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, apparatus, or device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, apparatus or device that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (16)

1. An email screening method, comprising:
acquiring a first title of a first selected mail and a second title of a second selected mail;
comparing the first title with the second title, comparing the lengths of the first title and the second title, sequentially comparing the characters in the first title and the second title, determining a first overlapped part according to the serial numbers and the adjacent conditions of the characters, and judging whether the proportion of the first overlapped part in the first title or the second title is greater than or equal to a preset threshold value or not, wherein the first overlapped part is the overlapped part between the first title and the second title;
if the proportion of the first overlapped part in the first title or the second title is larger than or equal to a preset threshold value, searching a mail to be searched of which the title comprises the first overlapped part;
and setting the mail to be searched with the title containing the first overlapped part to be in a selected state.
2. The email screening method as recited in claim 1, wherein the email to be searched is a whole email or an unread email.
3. The method as claimed in claim 1 or 2, wherein said comparing the first header and the second header and determining whether the ratio of the first overlapping portion to the first header or the second header is greater than a preset threshold value comprises:
a step a1 of comparing the lengths of the first title and the second title;
a step a2 of, if the length of the first title is greater than or equal to the length of the second title, regarding the first title as a reference title and the second title as a comparison title, and if the length of the second title is greater than the length of the first title, regarding the second title as a reference title and the first title as a comparison title;
step a3, comparing the ith character of the comparison title with the jth character of the reference title in sequence, and determining whether the ith character of the comparison title is the same as the jth character of the reference title, wherein j (k-1) to k (i), k (i-1) is the sequence number of the character in the reference title which is the first character same as the ith character of the comparison title, k (i-1) is less than k (i), k (i) is less than or equal to the character length m of the reference title, and recording (k i) and the kth character of the reference title, and determining whether the ith character of the comparison title is the same as the jth character of the reference title, wherein k (i) is less than or equal to the character length m of the(i) Character Ck(i)
Step a4, judging whether i is less than or equal to n-1, wherein n is the character length of the comparison title;
step a5, if i is less than or equal to n-1, calculating i ═ i +1, and returning to step a3, otherwise, executing step a 6;
step a6, judgment Ck(i)Whether there is an adjacent character in between;
step a7, if Ck(i)Whether there is an adjacent character between them, calculate Ck(i)The proportion of adjacent characters in the first title or the second title is judged, and whether the proportion is larger than a preset threshold value is judged;
where i is 1, 2 … … n, and when i is 1, k (0) is 1.
4. An email screening method, comprising:
acquiring a first title of a selected mail;
comparing the first title with a third title of the mail to be searched, comparing the lengths of the first title and the third title, sequentially comparing all characters in the first title and the third title, determining a second overlapping part according to the serial number and the adjacent condition of the characters, and judging whether the proportion of the second overlapping part in the first title is greater than or equal to a preset threshold value or not, wherein the second overlapping part is the overlapping part between the first title and the third title;
and if the proportion of the second overlapped part in the first title is greater than or equal to a preset threshold value, setting the mail to be searched in a selected state.
5. The email screening method as recited in claim 4, wherein the email to be searched is a whole email or an unread email.
6. The method as claimed in claim 4, wherein the comparing the first header with a third header of the email to be searched to determine whether the ratio of the second overlapping part to the first header is greater than or equal to a preset threshold value comprises:
a step b1 of comparing the lengths of the first title and the third title;
a step b2 of, if the length of the first title is greater than or equal to the length of the third title, regarding the first title as a reference title and the third title as a comparison title, and if the length of the third title is greater than the length of the first title, regarding the third title as a reference title and the first title as a comparison title;
step b3, comparing the ith character of the comparison title with the jth character of the reference title in sequence, and determining whether the ith character of the comparison title is the same as the jth character of the reference title, wherein j (k-1) to k (i), k (i-1) is the sequence number of the character in the reference title which is the first character same as the ith character of the comparison title, k (i-1) is less than k (i), k (i) is less than or equal to the character length m of the reference title, and recording the (k i) and the kth (i) character C of the reference titlek(i)
B4, judging whether i is less than or equal to n-1, wherein n is the character length of the comparison title;
step b5, if i is less than or equal to n-1, calculating i ═ i +1, and returning to step a3, otherwise, executing step b 6;
step b6, judge Ck(i)Whether there is an adjacent character in between;
step b7, if Ck(i)Whether there is an adjacent character between them, calculate Ck(i)The adjacent characters account for the proportion of the first title, and whether the proportion is larger than a preset threshold value is judged;
where i is 1, 2 … … n, and when i is 1, k (0) is 1.
7. The email screening method as recited in any of claims 4 to 6, further comprising, before obtaining the first header of the selected email:
judging whether the operation of deleting, marking or moving the selected mail exists;
and if the operation of deleting, marking or moving the selected mail exists, acquiring a first title of the selected mail before deleting, marking or moving the selected mail.
8. The email screening method of claim 7, further comprising:
and displaying a dialog box for confirming that all the mails to be selected are deleted, marked or moved.
9. An electronic mail screening apparatus, comprising:
a title acquiring unit for acquiring a first title of the first selected mail and a second title of the second selected mail;
a first overlap judging unit, configured to compare the first title with the second title, compare lengths of the first title and the second title, sequentially compare characters in the first title and the second title, determine a first overlap portion according to a sequence number and an adjacent condition of the characters, and judge whether a ratio of the first overlap portion to the first title or the second title is greater than or equal to a preset threshold, where the first overlap portion is a portion overlapped between the first title and the second title;
the first searching unit is used for searching the mail to be searched of which the title comprises the first overlapped part if the proportion of the first overlapped part in the first title or the second title is greater than or equal to a preset threshold value;
and the first setting unit is used for setting the mail to be searched of which the title comprises the first overlapped part into a selected state.
10. The email screening apparatus as recited in claim 9, wherein the email to be searched is a whole email or an unread email.
11. The email screening apparatus according to claim 9 or 10, wherein the first coincidence determination unit is specifically configured to:
a step a1 of comparing the lengths of the first title and the second title;
a step a2 of, if the length of the first title is greater than or equal to the length of the second title, regarding the first title as a reference title and the second title as a comparison title, and if the length of the second title is greater than the length of the first title, regarding the second title as a reference title and the first title as a comparison title;
step a3, comparing the ith character of the comparison title with the jth character of the reference title in sequence, and determining whether the ith character of the comparison title is the same as the jth character of the reference title, wherein j (k-1) to k (i), k (i-1) is the sequence number of the character in the reference title which is the first character same as the ith character of the comparison title, k (i-1) is less than k (i), k (i) is less than or equal to the character length m of the reference title, and recording the (k i) and the kth (i) character C of the reference titlek(i)
Step a4, judging whether i is less than or equal to n-1, wherein n is the character length of the comparison title;
step a5, if i is less than or equal to n-1, calculating i ═ i +1, and returning to step a3, otherwise, executing step a 6;
step a6, judgment Ck(i)Whether there is an adjacent character in between;
step a7, if Ck(i)Whether there is an adjacent character between them, calculate Ck(i)The proportion of adjacent characters in the first title or the second title is judged, and whether the proportion is larger than a preset threshold value is judged;
where i is 1, 2 … … n, and when i is 1, k (0) is 1.
12. An electronic mail screening apparatus, comprising:
a selected mail title acquiring unit for acquiring a first title of a selected mail;
the second coincidence judging unit is used for comparing the first title with a third title of the mail to be searched, comparing the lengths of the first title and the third title, sequentially comparing all characters in the first title and the third title, determining a second coincidence part according to the serial number and the adjacent situation of the characters, and judging whether the proportion of the second coincidence part in the first title is greater than or equal to a preset threshold value or not, wherein the second coincidence part is a coincidence part between the first title and the third title;
and the third setting unit is used for setting the mail to be searched to be in a selected state if the proportion of the second overlapped part in the first title is greater than or equal to a preset threshold value.
13. The email screening apparatus as recited in claim 12, wherein the email to be searched is a whole email or an unread email.
14. The email screening apparatus as recited in claim 12, wherein the second coincidence determination unit is specifically configured to:
a step b1 of comparing the lengths of the first title and the third title;
a step b2 of, if the length of the first title is greater than or equal to the length of the third title, regarding the first title as a reference title and the third title as a comparison title, and if the length of the third title is greater than the length of the first title, regarding the third title as a reference title and the first title as a comparison title;
step b3, comparing the ith character of the comparison title with the jth character of the reference title in sequence, and determining whether the ith character of the comparison title is the same as the jth character of the reference title, wherein j is k (i-1) to k (i), k (i-1) is the serial number of the character which is the first character of the reference title and is the same as the ith-1 character of the comparison title, and k (i) is the serial number of the character which is the first character of the reference title and is the same as the jth character of the reference titleThe sequence number of the character in the reference title which is the first character same as the ith character of the comparison title, k (i-1) is less than k (i), k (i) is less than or equal to the character length m of the reference title, k (i) and the kth (i) character C of the reference title are recordedk(i)
B4, judging whether i is less than or equal to n-1, wherein n is the character length of the comparison title;
step b5, if i is less than or equal to n-1, calculating i ═ i +1, and returning to step a3, otherwise, executing step b 6;
step b6, judge Ck(i)Whether there is an adjacent character in between;
step b7, if Ck(i)Whether there is an adjacent character between them, calculate Ck(i)The adjacent characters account for the proportion of the first title, and whether the proportion is larger than a preset threshold value is judged;
where i is 1, 2 … … n, and when i is 1, k (0) is 1.
15. The email screening apparatus as recited in any one of claims 12 to 14, further comprising:
an operation judgment unit for judging whether there is deletion, marking or moving operation on the selected mail before acquiring the first title of the selected mail;
the selected mail title acquiring unit is specifically configured to acquire the first title of the selected mail before deleting, marking or moving the selected mail if there is a deletion, marking or moving operation on the selected mail.
16. The email screening apparatus as recited in claim 15, further comprising:
and the confirmation dialog box display unit is used for displaying a dialog box for confirming that all the selected mails are subjected to deleting, marking or moving operation.
CN201610104120.5A 2016-02-25 2016-02-25 E-mail screening method and device Active CN107122949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610104120.5A CN107122949B (en) 2016-02-25 2016-02-25 E-mail screening method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610104120.5A CN107122949B (en) 2016-02-25 2016-02-25 E-mail screening method and device

Publications (2)

Publication Number Publication Date
CN107122949A CN107122949A (en) 2017-09-01
CN107122949B true CN107122949B (en) 2021-02-26

Family

ID=59717781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610104120.5A Active CN107122949B (en) 2016-02-25 2016-02-25 E-mail screening method and device

Country Status (1)

Country Link
CN (1) CN107122949B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241008B (en) * 2018-08-07 2020-10-27 北京大学第三医院 Document de-duplication method and device
CN114745348A (en) * 2022-05-26 2022-07-12 北京中睿天下信息技术有限公司 Mail fingerprint extraction method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1350246A (en) * 2001-12-03 2002-05-22 上海交通大学 Intelligent e-mail content filtering method
CN101150529A (en) * 2006-09-21 2008-03-26 腾讯科技(深圳)有限公司 A method and system for mail search
CN103425657A (en) * 2012-05-15 2013-12-04 阿里巴巴集团控股有限公司 Method and device for searching mails
CN103605758A (en) * 2013-11-22 2014-02-26 中国科学院深圳先进技术研究院 Method and device for searching files of mobile terminal
CN104301206A (en) * 2014-09-25 2015-01-21 武汉传神信息技术有限公司 Multi-user and multi-language mail translation front processing system and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8316315B2 (en) * 2005-02-28 2012-11-20 Microsoft Corporation Automatically generated highlight view of electronic interactions
US7860885B2 (en) * 2007-12-05 2010-12-28 Palo Alto Research Center Incorporated Inbound content filtering via automated inference detection
US8880663B2 (en) * 2010-09-27 2014-11-04 Nokia Corporation Method and apparatus for sharing user information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1350246A (en) * 2001-12-03 2002-05-22 上海交通大学 Intelligent e-mail content filtering method
CN101150529A (en) * 2006-09-21 2008-03-26 腾讯科技(深圳)有限公司 A method and system for mail search
CN103425657A (en) * 2012-05-15 2013-12-04 阿里巴巴集团控股有限公司 Method and device for searching mails
CN103605758A (en) * 2013-11-22 2014-02-26 中国科学院深圳先进技术研究院 Method and device for searching files of mobile terminal
CN104301206A (en) * 2014-09-25 2015-01-21 武汉传神信息技术有限公司 Multi-user and multi-language mail translation front processing system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于后缀数组聚类(SAC)的中文垃圾邮件过滤方法;李翔鹰等;《计算机科学》;20060531;第33卷(第5期);参见第107-109页,第112页 *

Also Published As

Publication number Publication date
CN107122949A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
US20090089690A1 (en) System and method for improved tag entry for a content item
US20180173450A1 (en) Method and Device for File Name Identification and File Cleaning
CN110688349B (en) Document sorting method, device, terminal and computer readable storage medium
CN105005562A (en) Retrieval result display processing method and apparatus
CN108304112B (en) Data processing method and device
CN110888837B (en) Object storage small file merging method and device
CN108804458B (en) Crawler webpage collecting method and device
CN107122949B (en) E-mail screening method and device
CN113360462B (en) File processing method, device, equipment and readable storage medium
US20090276437A1 (en) Suggesting long-tail tags
CN104216996A (en) File information display method and device
CN106919572B (en) Webpage searching method and browser
CN107704341A (en) File access pattern method, apparatus and electronic equipment
CN110232156A (en) Information recommendation method and device based on long text
US20120290568A1 (en) System and method for providing search results
JP5810792B2 (en) Information processing apparatus and information processing program
CN110471764A (en) A kind of processing method and processing device of memory cleaning
CN115328366A (en) Million-level tree node searching and displaying method and system based on full path calculation
JP2007272669A (en) Received mail processing method, device and program
CN111815019B (en) Production material storage method, device, equipment and readable storage medium
CN110717109B (en) Method, device, electronic equipment and storage medium for recommending data
CN113987106A (en) Electronic book bookmark adding method, electronic equipment and storage medium
CN109344272B (en) Image processing method and device
CN112783751A (en) Incremental code scanning method and device, electronic equipment and storage medium
CN112286878A (en) File scanning method, device, terminal and storage medium

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1243533

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant