Invention content
The brief overview about the present invention is given below, in order to provide about the basic of certain aspects of the invention
Understand.It should be appreciated that this general introduction is not the exhaustive general introduction about the present invention.It is not intended to determine the pass of the present invention
Key or pith, nor is it intended to limit the scope of the present invention.Its purpose only provides certain concepts in simplified form,
In this, as the preamble in greater detail discussed later.
In consideration of it, the present invention provides a kind of Email method for cleaning, during at least solving to clear up Email at present
The problem of existing time-consuming and laborious.
According to an aspect of the invention, there is provided a kind of Email method for cleaning, the Email method for cleaning packet
It includes:According to the selected date range of user, candidate e-mail is determined;For each in candidate e-mail, judgement
Whether the Email has mark:If having, the first power of the Email is determined according to the identity type of the Email
Weight score;Otherwise, the first weight score of the Email is set as predetermined fixed value;For each in candidate e-mail
It is a, the e-mail address in the Email is obtained, whether being included in the contact database of determining server end storage should
E-mail address:If contact database includes the e-mail address, which is obtained according to contact database
Second weight score of part;If do not include the e-mail address in contact database, by the second weight of the Email
Score is set as predetermined fixed value;Wherein, contact database include multiple preset electronic mail addresss and with each default electricity
The corresponding second weight score of sub- mail address;For each in candidate e-mail, obtain in the Email
Whether the corresponding associated person information of e-mail address is determined in the associated person information comprising preset content:If the contact person believes
One of preset content is included at least in breath, the third weight score of the Email is determined as 0;If in the associated person information not
Including any of preset content, the third weight score of the Email is determined as predetermined fixed value;For candidate electronics
Whether each in mail, judge the e-mail address in the Email in the corresponding email registered of server end
System is registered:If so, it is transmitted in N seconds before and after the sending time of the envelope Email to obtain the e-mail address
Number of mail, and calculate according to number of mail the 4th weight score of the Email;Otherwise, by the 4th of the Email the
Weight score is set as predetermined fixed value;Wherein, N is default positive integer;For each in candidate e-mail, by this
The first, second, third and fourth weight score of Email is multiplied to obtain its corresponding total weight score;By candidate electricity
Sub- mail corresponds to total weight score from being arranged in order to small greatly by it, is cleared up with the selection according to user.
Further, Email method for cleaning further includes:It, will be candidate in the case where user determines to select to clear up automatically
Total weight score is deleted greater than or equal to all Emails of preset fraction in Email, to complete to clear up.
Further, when the identity type of the Email belongs to first group of preset kind, by the of the Email
One weight score is determined as 0;When the identity type of the Email belongs to second group of preset kind, by the of the Email
One weight score is determined as the corresponding second weight fractional value of the identity type.
Further, first group of preset kind includes:Represent important identity type;Represent unfinished identity type;
Represent the identity type of collection.
Further, candidate e-mail is corresponded into total weight score from being arranged in order to small with according to user's greatly by it
It selects to include the step of cleaning:Candidate e-mail is corresponded into total weight score from being arranged in order to small greatly by it, and
The adjacent envelope mail per m is divided into one group, is shown every group as one page on the computer screen, common user selection carries out clear
Reason.
Further, the step of determining candidate e-mail according to the selected date range of user includes:By the date
Within the scope of all Emails received and/or the Email being sent out be determined as candidate e-mail.
Further, the step of determining candidate e-mail according to the selected date range of user includes:By the date
All Emails received and/or the Email being sent out except range are determined as candidate e-mail.
Above-mentioned Email method for cleaning according to embodiments of the present invention, by calculating various weight scores, will always weigh
The high Email of weight score comes front, score it is low come behind so that it is high that user can preferentially clear up total weight score
Namely Email that importance is low.By calculating, important mail can be filtered out, that is, total weight score is 0
Mail, and these mails come all candidate mails backmost, therefore user can not be handled these mails, so as to
Important email is protected accidentally to be deleted.Moreover, because total weight score of important email is 0, come finally, user does not need to
Cleaning work can be terminated by browsing to last page, more be saved trouble time saving.
In addition, total weight score is obtained by calculation, automatic cleaning can also be realized using preset fraction, by total weight
The Email that score is more than or equal to the score is automatically deleted, and realizes automatic cleaning.
By the way that below in conjunction with detailed description of the attached drawing to highly preferred embodiment of the present invention, these and other of the invention is excellent
Point will be apparent from.
Specific embodiment
The exemplary embodiment of the present invention is described hereinafter in connection with attached drawing.For clarity and conciseness,
All features of actual implementation mode are not described in the description.It should be understood, however, that developing any this actual implementation
It must be made during example much specific to the decision of embodiment, to realize the objectives of developer, for example, symbol
Conjunction and system and those relevant restrictive conditions of business, and these restrictive conditions may have with the difference of embodiment
Changed.In addition, it will also be appreciated that although development is likely to be extremely complex and time-consuming, to having benefited from the disclosure
For those skilled in the art of content, this development is only routine task.
Herein, it is also necessary to which explanation is a bit, in order to avoid because having obscured the present invention during unnecessary details, in the accompanying drawings
The apparatus structure closely related with scheme according to the present invention and/or processing step are illustrate only, and is omitted and the present invention
The little other details of relationship.
The embodiment provides a kind of Email method for cleaning, which includes:According to
The selected date range of user, determines candidate e-mail;For each in candidate e-mail, the electronics postal is judged
Whether part has mark:If having, the first weight score of the Email is determined according to the identity type of the Email;It is no
Then, the first weight score of the Email is set as predetermined fixed value;For each in candidate e-mail, obtaining should
E-mail address in Email, determining server end storage contact database in whether comprising the Email
Location:If contact database includes the e-mail address, the second power of the Email is obtained according to contact database
Weight score;If not including the e-mail address in contact database, the second weight score of the Email is set as pre-
If fixed value;Wherein, contact database include multiple preset electronic mail addresss and with each preset electronic mail address
Corresponding second weight score;For each in candidate e-mail, obtain with the Email in the Email
Whether the corresponding associated person information in location is determined in the associated person information comprising preset content:If it is at least wrapped in the associated person information
Containing one of preset content, the third weight score of the Email is determined as 0;If do not include in default in the associated person information
Any of hold, the third weight score of the Email is determined as predetermined fixed value;For every in candidate e-mail
One, judge whether the e-mail address in the Email is noted in the corresponding email registered system of server end
Volume:If so, obtain e-mail address mail number transmitted in N seconds before and after the sending time of the envelope Email
It measures, and the 4th weight score of the Email is calculated according to number of mail;Otherwise, by the 4th weight score of the Email
It is set as predetermined fixed value;Wherein, N is default positive integer;For each in candidate e-mail, by the Email
First, second, third and fourth weight score be multiplied to obtain its corresponding total weight score;Candidate e-mail is pressed
It corresponds to total weight score from being arranged in order to small greatly, is cleared up with the selection according to user.In the present invention, first to
4th weight score is higher, and corresponding total weight score is also higher, represents that the Email is more inessential, that is, more need by
Cleaning.
A kind of exemplary process of above-mentioned Email method for cleaning is described with reference to Fig. 1.
As shown in Figure 1, the exemplary process flow of Email method for cleaning according to an embodiment of the invention starts
Afterwards, step S110 is performed.
In step s 110, according to the selected date range of user, candidate e-mail is determined.Then, step is performed
S120。
According to a kind of realization method, the step of determining candidate e-mail according to the selected date range of user, can wrap
It includes:All Emails received within the date range and/or the Email being sent out are determined as candidate electricity
Sub- mail.
According to another realization method, the step of determining candidate e-mail according to the selected date range of user, can be with
Including:All Emails received except the date range and/or the Email being sent out are determined as candidate
Email.
In the step s 120, for each in candidate e-mail, judge whether the Email has mark:If
Have, the first weight score of the Email is determined according to the identity type of the Email;Otherwise, by the Email
First weight score is set as predetermined fixed value.Then, step S130 is performed.Predetermined fixed value is, for example, 1 or other experiences
Value, etc..Predetermined fixed value can also be determined by experiment, and which is not described herein again.
According to a kind of realization method, when the identity type of the Email belongs to first group of preset kind, by the electronics
First weight score of mail is determined as 0;When the identity type of the Email belongs to second group of preset kind, by the electronics
First weight score of mail is determined as the corresponding second weight fractional value of the identity type.
For example, first group of preset kind can include it is following at least one:Represent important identity type (A1 classes);It represents
Unfinished identity type (A2 classes);Represent the identity type (A3 classes) of collection.When the identity type of the Email belong to A1,
During A2 or A3, the first weight score of the Email is 0, in this way, total weight score of the Email of subsequent calculations
It is 0.Thus, it is possible to mail important, do not complete, collection is made to come finally or by automatic cleaning described below
Function will not accidentally delete these mails when being handled.
For another example, second group of preset kind can include following at least one:Represent the identity type (B1 classes) of advertisement;It represents
Completed identity type (B2 classes);Represent the identity type (B3 classes) of harassing and wrecking.In this way, when the identity type category of the Email
When B1, the first weight score of the Email is 5;When the identity type of the Email belongs to B2, the Email
The first weight score be 2;When the identity type of the Email belongs to B3, the first weight score of the Email is
10。
In step s 130, for each in candidate e-mail, with obtaining Email in the Email
Location, determining server end storage contact database in whether include the e-mail address:If it is wrapped in contact database
The e-mail address is included, the second weight score of the Email is obtained according to contact database;If contact database
In do not include the e-mail address, the second weight score of the Email is set as predetermined fixed value;Wherein, number is contacted
Include multiple preset electronic mail addresss and the second weight score corresponding with each preset electronic mail address according to library.So
Afterwards, step S140 is performed.
For example, in contact database, the modes such as some are marked by the network user or server itself counts are known
It is advertisement matter address, and the corresponding second weight score of its e-mail address is set as 2 or other values, etc..
In step S140, for each in candidate e-mail, obtain and the Email in the Email
Whether the corresponding associated person information in address is determined in the associated person information comprising preset content:If in the associated person information at least
Comprising one of preset content, the third weight score of the Email is determined as 0;If do not include in the associated person information default
The third weight score of the Email is determined as predetermined fixed value by any of content.Then, step S150 is performed.
Preset content may be, for example, as in father, mother, daughter, son, elder sister, household, colleague, leader, company etc.
It is one or more.
In step S150, for each in candidate e-mail, with judging Email in the Email
Whether registered in the corresponding email registered system of server end location:If so, the e-mail address is obtained in the envelope
Transmitted number of mail in front and rear N seconds of the sending time of Email, and the Email is calculated according to number of mail
4th weight score;Otherwise, the 4th weight score of the Email is set as predetermined fixed value;Wherein, N is default just whole
Number.Then, step S160 is performed.N is such as can be 2 seconds, 3 seconds, 5 seconds or 10 seconds or more long.
In one example, as N be equal to 10 seconds, if some e-mail address is determined to send more than in 10 seconds
Its 4th weight score is set as 100 by 1000 envelope mails;If it is determined to send more than 100 envelopes in 10 seconds but less than 1000
Mail is sealed, its 4th weight score is set as 10;If being determined to send more than 10 envelopes in 10 seconds but being less than 100 envelope mails,
Its 4th weight score is set as 2;If being determined to send less than 10 envelope mails in 10 seconds, its 4th weight score is set as
1。
In step S160, for each in candidate e-mail, by the Email first, second,
Third and fourth weight score is multiplied to obtain its corresponding total weight score.That is, total weight score=first weight point
Number the 4th weight scores of the * the second weight score * third weight scores *.Then, step S170 is performed.
In step S170, candidate e-mail is corresponded into total weight score from being arranged in order to small greatly by it, with basis
The selection of user is cleared up.Process flow terminates.
According to a kind of realization method, in step S170 by candidate e-mail by its correspond to total weight score from greatly to it is small according to
Secondary arrangement is included with selection according to user the step of cleaning:By candidate e-mail by its correspond to total weight score from
It is big to be arranged in order to small, and the adjacent envelope mail per m is divided into one group, it is shown every group as one page on the computer screen, one
Common user selection is cleared up.M for example can be 10 or 20, etc..
According to a kind of realization method, can also include in step S170:In the case where user determines to select to clear up automatically,
All Emails of the weight score total in candidate e-mail greater than or equal to preset fraction are deleted, complete cleaning.It is default
Score is, for example, 1 or 10, can be set based on experience value, can also be determined by way of experiment, no longer superfluous here
It states.
For example, preset fraction is set as 1, moreover, the various weight scores in the example are other than being equal to 0, it is exactly greatly
In or equal to 1.In this way, total weight score of each Email for being obtained after calculating or be 0 or being more than or equal to 1
Value, therefore weight score can not deleted entirely for 0 other all mails.
Above-mentioned Email method for cleaning according to embodiments of the present invention, by calculating various weight scores, will always weigh
The high Email of weight score comes front, score it is low come behind so that it is high that user can preferentially clear up total weight score
Namely Email that importance is low.By calculating, important mail can be filtered out, that is, total weight score is 0
Mail, and these mails come all candidate mails backmost, therefore user can not be handled these mails, so as to
Important email is protected accidentally to be deleted.Moreover, because total weight score of important email is 0, come finally, user does not need to
Cleaning work can be terminated by browsing to last page, more be saved trouble time saving.
In addition, total weight score is obtained by calculation, automatic cleaning can also be realized using preset fraction, by total weight
The Email that score is more than or equal to the score is automatically deleted, and realizes automatic cleaning.
Although the embodiment according to limited quantity describes the present invention, above description, the art are benefited from
It is interior it is clear for the skilled person that in the scope of the present invention thus described, it can be envisaged that other embodiments.Additionally, it should be noted that
The language that is used in this specification primarily to readable and introduction purpose and select rather than in order to explain or limit
Determine subject of the present invention and select.Therefore, in the case of without departing from the scope and spirit of the appended claims, for this
Many modifications and changes will be apparent from for the those of ordinary skill of technical field.For the scope of the present invention, to this
The done disclosure of invention is illustrative and not restrictive, and it is intended that the scope of the present invention be defined by the claims appended hereto.