A kind of selectivity recalls the implementation method of mail
Technical field
The present invention relates to communication technical field, and in particular to withdrawing mail technology, and more particularly to a kind of selectivity recall
The implementation method of mail.
Background technology
Mail (i.e. Email) is network computer communication mode, and Email Sender (i.e. sender) can pass through
Using mailing system (terminal such as web mail system, application program) to one or more e-mail recipient (i.e. addressee
People) send comprising files such as word, image, audios.However, the situation for sending email error often occurs in actual use,
Therefore it is accomplished by carrying out withdrawal operation to the mail for sending mistake, to prevent e-mail recipient from obtaining the various numbers corresponding to mail
According to or text.The essence of withdrawing mail is deletion or replaces some envelope mails sent.It should be noted that can be by
Perform the mail that the mail of withdrawal operation must not checked by addressee.If issuing many envelope postals of multiple addressees simultaneously
An envelope or a few envelope mails in part are received by the receipt mail server (POP3 servers) of addressee, then can not be right
Above-mentioned specific addressee performs withdrawing mail operation.
When an envelope mail has multiple recipients, choosing can not be performed to multiple addressees in existing withdrawing mail technology
Selecting property recalls the operation of mail, once perform withdrawal operation be exactly to recall mail to the whole of all recipients remove
Return.There is larger inconvenience in actual use in this revocation mechanisms.May in some cases, sender is only because add
Plus a wrong addressee and need to recall the mail for being sent to this wrong addressee.Due in the prior art
It can not realize that above-mentioned selectivity recalls the function of being sent to the mail of addressee, so as to cause sender performing withdrawing mail behaviour
, it is necessary to which the mail for being sent to multiple addressees is all recalled during work, then it is transmitted.Therefore, existing mail is removed
It is single to there are revocation mechanisms in the technology of returning, it is impossible to realizes that selectivity recalls the function of mail, and can cause the expense of mail server
It is excessive, and the operating time of sender is added, therefore great inconvenience can be caused to the behavior of recalling after mail transmission.
In view of this, it is necessary to withdrawing mail technology of the prior art is improved, to solve the above problems.
The content of the invention
The implementation method of mail is recalled it is an object of the invention to disclose a kind of selectivity, is removed to realize in execution mail
During returning, the mail for having been issued to specific addressee is optionally recalled, to improve the flexibility of withdrawing mail mechanism, drop
The network and computing cost of low mail server, it is to avoid sender is recalled after mail again to needing the addressee for sending mail heavy
It is new to perform the operation for sending mail, reduce the labor intensity of sender.
For achieving the above object, the invention provides the implementation method that a kind of selectivity recalls mail, including it is following
Step:
S1, select at least one mail head's attribute from mail to be sent, and selected at random from the mail head's attribute chosen
At least two random codes are selected, while preserving to the storage device of mail server;
S2, when claimant to mail server send revocation request when, mail server to claimant push recall inquiry
Dialog box, random code of the claimant in inquiry session frame is recalled preselected by input step S1, and with selected by step S1
At least one mail head's attribute in the character of correspondence position verify;
If verification passes through, the behaviour that revocable addressee's addresses of items of mail is pushed to the Mail Clients of claimant is performed
Make;If verification does not pass through, the operation that revocable addressee's addresses of items of mail is pushed to the Mail Clients of claimant is not performed;
S3, only to need perform withdrawal operation addressee corresponding to mail, by mail server perform mail perform
Deletion action or replacement operation.
As a further improvement on the present invention, the mail server to claimant push recall inquiry session frame can
Input digit is fixed.
As a further improvement on the present invention, the mail server to claimant push recall inquiry session frame can
Input digit is not fixed.
As a further improvement on the present invention, in the step S1, the mail head's attribute selected from mail to be sent is extremely
It is less a kind of mail head's attribute in UUID attributes or Message_id attributes.
As a further improvement on the present invention, the step S2 also includes:
After verification passes through, generated by mail server for verifying the key-value pair information of withdrawal operation time, and preserve
To the storage device of mail server;
Then, the Mail Clients that addressee's addresses of items of mail of executable withdrawal operation is sent to claimant is made to perform
Withdrawal operation, when the time that claimant performs withdrawal operation exceeding setting time threshold value T, then mail server refuses claimant
The revocation request of initiation;The time threshold T is set as 30~60 seconds.
As a further improvement on the present invention, the storage device includes:Mechanical disk, solid state hard disc, Ceph storage dresses
Put, NAS storage device, SAN storage devices, NVDIMM systems, RAID or database.
As a further improvement on the present invention, the database includes:SQL database, oracle database, MySQL numbers
According to storehouse.
As a further improvement on the present invention, the Mail Clients includes:Mail transmission/reception software, webpage mailbox client
End, cell phone mailbox client.
As a further improvement on the present invention, the implementation method also includes:
Mail head's attribute from selected in mail to be sent is converted into binary data stream, then passes through graph data
The binary data stream is graph data symbol and preserved after being bound with random code to mail server by modular converter
Storage device;
The window properties information of Mail Clients when sending mail is obtained, and is preserved to the storage device of mail server,
Window properties information is exported into sender's mobile terminal and terminates to show after making brief displaying, mail server is in respond request
When people sends revocation request, the event for being pushed to claimant and recalling verification dialog box is triggered;
Obtain claimant in verification dialog box is recalled the session content that inputs and with the storage device institute of mail server
The window properties information of preservation is made comparisons, and at least will be determined as in the presence of the claimant corresponding to the revocation request of an occurrence
Suitable lattice claimant, and return to the response message for allowing to recall mail from mail server to suitable claimant.
As a further improvement on the present invention, the window properties information includes:Display location attribute and zoom state category
Property;The graph data symbol includes:Bar code, Quick Response Code, fingerprint, iris collection of illustrative plates or voiceprint map.
Compared with prior art, the beneficial effects of the invention are as follows:A kind of selectivity shown by the present invention recalls mail
Implementation method, realizes and is optionally recalled by sender during withdrawing mail is performed and have been issued to specific addressee's
The effect of mail, and the flexibility of withdrawing mail mechanism is improved, reduce the network and computing cost of mail server, it is to avoid
Sender recalls the operation for sending mail after mail to needing the addressee for sending mail to re-execute again, reduces sender
Labor intensity, and can prevent that mail from maliciously being performed to effectively being verified without the claimant for recalling authority
Recall, improve the security of withdrawing mail operation.
Brief description of the drawings
Fig. 1 is the flow chart for the implementation method that a kind of selectivity of the invention recalls mail;
Fig. 2 is the structure chart for sending mail and recalling the mailing system involved by two processes of mail;
Fig. 3 is the schematic diagram for recalling inquiry session frame in embodiment one;
Fig. 4 is the schematic diagram for recalling inquiry session frame in embodiment two.
Embodiment
The present invention is described in detail for shown each embodiment below in conjunction with the accompanying drawings, but it should explanation, these
Embodiment not limitation of the present invention, those of ordinary skill in the art according to these embodiment institute work energy, method,
Or equivalent transformation or replacement in structure, belong within protection scope of the present invention.
Term "Sender”:A side of mail is sent, it performs to the transmission of mail (annex containing mail), the postal such as recalls
Part behavior.
Term "Addressee”:Receive a side of mail, direct recipient, the person of making a copy for or close super person comprising mail.
Term "Claimant”:Initiate and perform the side for recalling mail.
Term "Land mail”:The mail in the mail server of mail is received into addressee.
Term "Third party”:Independently of the side between sender and addressee.
Term "Interface”:Sender or addressee terminal device perform mail send or mail reception operation can
The every terms of information in mail or reception mail real can be sent in figure (or region), the interface depending on changing.
Term "Suitable lattice”:Have permission and the mail behavior such as mail (contain annex) is edited, changes, sends or recalled.
Term "Uncomfortable lattice”:Relative to the concept of suitable lattice, and it is specially to have permission edit mail (containing annex), repair
The mail behavior such as change, send or recall.
Next how to realize that the specific steps of the present invention are elaborated, and several representational implementations are explained
State.
Embodiment one:
Example scenario is set:
Join shown in Fig. 2, user A (equivalent to "Sender") using box name for x.163.com (call in the following text "Sender's postal Case") a mail (annex can be included, can also not include annex) is sent to user B used mailbox, its box name
For y.163.com (call in the following text "Recipient mailbox”)。
User A performs mail in Mail Clients 70 by smtp protocol and sends operation, and mail is sent to mail and taken
It is engaged in the sender mail server 101 of device 10, now mail is not yet read by addressee user B.Mailbox server 10 includes
Storage device 103, is connected to the sender mail server 101 and receipt mail server 102 of storage device 103.Send mail
Server 101 includes smtp server, and receipt mail server 102 includes imap server or POP3 servers.
After mail performs mail transmission task by sender mail server 101, to user A (i.e. sender) mail visitor
Family end 70, which is sent, delivers success receipt.User B (addressee, and the quantity of addressee can be one, or multiple different receipts
Part people) Mail Clients 30 receive request by being sent to receipt mail server 102, receipt mail server 102 is from depositing
Store up the mail corresponding to calling and asking in equipment 103 and send to user B Mail Clients 30.Mail Clients 70 and postal
Part client 30 can be configured as mail transmission/reception software (example:Outlook, foxmail), webpage mailbox client or mobile phone
Mailbox client, and other skilled in the art can with reasonable prediction to other can carry out mail transmission and/or connect
Device, interface or the program of receipts.
In order to distinguish the main body for sending withdrawing mail request operation under different situations, we are the master initiation revocation request
Body is divided into good will main body (claimant for fitting lattice) and malice main body (claimants of i.e. uncomfortable lattice).In the present embodiment, once
The mail sent has landed, even the claimant of suitable lattice can not also recall mail, certainly if the request of uncomfortable lattice
People performs revocation request at once after mail is sent, and can not also complete to recall the operation of mail, to prevent mail by malice
Recall.Specifically, the implementation method of the raising withdrawing mail process safety includes following several typical processes.
Join described in Fig. 1, a kind of selectivity shown by embodiment one recalls the implementation method of mail, comprises the following steps:
First, perform step S1, at least one mail head's attribute, and the mail head chosen certainly are selected from mail to be sent
At least two random codes are randomly choosed in attribute, while preserving to the storage device 103 of mail server 10.
Mail head as mail transmission/reception raw information, by checking that mail raw information can search our many needs
Information.Such as original sender, addressee and on pass through in mail transmittance process network delay situations such as can embody.
In the present embodiment, mail head's attribute and its implication are as shown in following table one:
Table one
It is preferred that, in step sl, the mail head's attribute selected from mail to be sent be at least UUID attributes or
A kind of mail head's attribute in Message_id attributes, more preferably includes UUID attributes and Message_id attributes simultaneously, from
And preferably the specific mail of an envelope is characterized.
In the present embodiment, the storage device includes:Mechanical disk, solid state hard disc, Ceph storage devices, NAS storages
Device, SAN storage devices, NVDIMM systems (Non-Volatile DIMM systems), RAID (including RAID0~RAID7) or
One or two kinds of or diversified forms in database, and can flexibly be selected according to data actual storage demand.In this example
In, the persistent storage medium be configured to contain above-mentioned solid state hard disc storage device 103 and can be by the institute of mail server 10
The database of access.Database includes:SQL database, oracle database, MySQL database, and preferably MySQL data
Storehouse.
Next, the mail head of an envelope mail has been shown in particular in the present embodiment, shown in ginseng table two.
Table two
Next, we select the data message of this mail head's attribute of UUID in mail to be sent, and it is specially:
1fa3b275a9e9-40b18007524963ab9ccc.The UUID is to be made up of the numeral of 33, letter and symbol.Therefore can
Randomly choosed in UUID of the sender 50 at above-mentioned 33, withdrawing mail is performed to addressee 60 in sender 50 for the later stage
Character check is made to the mail that needs are recalled during request.
Specifically, we can select the character " a ", the character " b " of the 16th, the character of the 20th of the 9th in UUID
" 0 " and the character " 9 " of the 25th, using as four random codes, and by random code a, random code b, random code 0 and random code 9 with
Above-mentioned specific mail is bound, and is preserved simultaneously into the storage device 103 of mail server 10.
Next, perform step S2, when claimant sends revocation request to mail server 10, mail server 10 to
Claimant pushes and recalls inquiry session frame 104, and claimant is in inquiry session frame 104 is recalled preselected by input step S1
Random code, and verified with the character of correspondence position at least one selected mail head's attribute of step S1;
If verification passes through, the behaviour that revocable addressee's addresses of items of mail is pushed to the Mail Clients 70 of claimant is performed
Make;If verification does not pass through, the behaviour that revocable addressee's addresses of items of mail is pushed to the Mail Clients 70 of claimant is not performed
Make.
Specifically, the mobile terminal 80 can be configured to desktop computer, tablet personal computer, mobile phone or with data input
With the wearable device and VR equipment of information exchange function, or even virtual machine or cloud main frame can be configured as.Mail Clients
70 insertions simultaneously visual are run in mobile terminal 80.
The executable establishment on mail of Mail Clients 70, edit, send, recalling, destroying etc. and operate, and specifically can quilt
It is configured to outlook, foxmail, cell phone mailbox client or webpage mailbox client.In the present embodiment, the sender A
Used Mail Clients 70 is that the Mail Clients 30 used can select outlook with addressee B, and is made specifically
It is bright.Explanation is needed, in the present embodiment, the mail of the executable withdrawal operation is the mail not landed.
After verification passes through, the key-value pair information (key- for verifying the withdrawal operation time is generated by mail server 10
Value), and by the key-value pair information (key-value) preserve to the storage device 103 of mail server 10.
Key-value pair information (key-value) is made up of key KEY and value VALUE two parts data, and mail server 10 can root
Corresponding value VALUE data are got in storage device 103 according to key KEY.Specifically, in the present embodiment, key KEY data
Form is:Email prefixes+address of the addressee ++ UUID.For example, email:aa@163.com:1fa3b275a9e9-
40b18007524963ab9ccc.Wherein, " email " be email prefixes, "aa@163.com" it is address of the addressee,
" 1fa3b275a9e9-40b18007524963ab9ccc " is UUID.
Value VALUE data formats are:During the current system of present system time stamp+mobile terminal 80 of mail server 10
Between stab.For example, 1494911399:1494911395.Wherein, " 1494911399 " are the present system time of mail server 10
Stamp, " 1494911395 " stab for the present system time of mobile terminal 80.
Then, addressee's addresses of items of mail of executable withdrawal operation is sent to claimant (i.e. user A) mail client
End 70 is made to perform withdrawal operation, when the time that claimant performs withdrawal operation exceeding setting time threshold value T, then mail service
The revocation request that the refusal claimant of device 10 initiates;The time threshold T is set as 30~60 seconds., can by this technical scheme
It is effective to prevent the mail sent from irrational delay occur, while compromise between security, improve Consumer's Experience.
It is preferred that, in the present embodiment, can be by from mail to be sent in order to further improve the security for recalling mail
Selected mail head's attribute is converted to binary data stream, then by graph data modular converter by the binary data
Circulation is changed to graph data symbol and with being preserved after random code binding to the storage device 103 of mail server 10.
Then, the window properties information of Mail Clients 70 when sending mail is obtained, and is preserved to mail server 10
Storage device 103, window properties information is exported into sender's mobile terminal 80 and terminates to show after making brief displaying, mail clothes
Device 10 be engaged in when respond request people sends revocation request, the event for being pushed to claimant and recalling verification dialog box is triggered.Work as acquisition
Claimant in verification dialog box is recalled the session content that inputs and with regarding that the storage device 103 of mail server 10 is preserved
Window attribute information is made comparisons, and at least will be determined as suitable lattice request in the presence of the claimant corresponding to the revocation request of an occurrence
People, and return to the response message for allowing to recall mail from mail server 10 to suitable claimant.
Specifically, the window properties information includes:Display location attribute and zoom state attribute;The graph data symbol
Including:Bar code, Quick Response Code, fingerprint, iris collection of illustrative plates or voiceprint map, and most preferably Quick Response Code.
Join shown in Fig. 3, in the present embodiment, the mail server 10 recalls inquiry session frame to what claimant pushed
104 digit that inputs is fixed.Specifically, the digit that inputs of the inquiry session frame 104 is four input bits, i.e. input bit
114th, input bit 124, input bit 134 and input bit 144, and can by claimant in mobile terminal 80 in inquiry session frame 104
Input character.Claimant can input random code preselected in step sl in input bit 114~144 successively.Due to,
The claimant for only fitting lattice just can know that random code a, random code b, random code 0 and the random code 9 selected by it, and this four
Corresponding position in UUID where random code.Claimant inputs in four input bits successively under the prompting in cursor 140
Character, clicks on button 105, with the Mail Clients 70 that loads and run by mobile terminal 80 by claimant it is typed four
Individual character is sent into mail server 10, thus by the mail server 10 will receive the typed character of claimant with
The random code being pre-stored in storage device 103 is verified, as long as a character and/or character belong in selected mail head
Property in the position attribution that is formed of correspondence character it is inconsistent, then by mail server 10 by the claimant be determined as uncomfortable lattice please
Ask for help so that mail server 10 make refuse the claimant mobile terminal 80 initiated to specific addressee's
Withdrawing mail is operated, so as to improve the safety and reliability in email process is recalled.
Finally, step S3 is performed, only to needing to perform the mail corresponding to the addressee of withdrawal operation, by mail server
10, which perform mail, performs deletion action or replacement operation.
Meanwhile, in order to avoid data remanence, believed with the addressee for ensureing mail in the Mail Clients 70 where sender
Breath has unanimously with performing the addressee information that the mail after deletion action or replacement operation is included in mail server 10
Property, in this embodiment, it may also include:Claimant is in Mail Clients 70 only to needing the addressee institute for performing withdrawal operation right
The mail answered performs deletion action or replacement operation.
It should be noted that step S3 implementing precondition is, verification passes through in step S2.If verification is not if,
Refusal performs step S3.
After claimant is judged as the claimant of suitable lattice, claimant in Mail Clients 70, such as outlook,
" recalling " button is clicked on, and it is final to having sent mail execution withdrawal operation, and according to mail head selected in step sl
Attribute, which inversely searches that envelope unique and specify, to be needed to perform the mail recalled, and removes the tool for needing to perform withdrawing mail operation
Body object (i.e. specific addressee).Finally, the mail for changing addressee is sent to reception by sender mail server 101
In mail server 102.Addressee's (i.e. user B, quantity can be one, or multiple) receives the postal transmitted by sender
Part.In the present embodiment, fitting the claimant of lattice and sender A has equivalents.
Mail server 10 can be according to bound in UUID specific mail, it is necessary to perform the email address for recalling mail action
Corresponding specific mail is searched in storage device 103, and the theme of mail, content and addressee's addresses of items of mail are repaiied
Change, the modification includes but is not limited to:Increase operation, the operation of deletion addressee and operation of replacement addressee of addressee etc.
Operation.
Embodiment two:
Second that the implementation method of mail is recalled with reference to Fig. 1, Fig. 2 and a kind of selectivity of the invention illustrated in fig. 4 is real
Apply example.
The present embodiment and the main distinction of embodiment one are that in the present embodiment, mail server 10 is pushed away to claimant
The digit that inputs for recalling inquiry session frame 104 sent is not fixed.Do not have in inquiry session frame 104 as shown in figure 4, this is recalled
Body or the digit that the input bit that can input character is explicitly shown.
Specifically, claimant, either fitting lattice claimant or uncomfortable lattice request can input in input frame 150 per capita
Any number of character.Therefore if selected random code a, random code b, random code 0 and random code 9, and this four random code institutes
The corresponding position in UUID, then when initiating withdrawing mail operation, only sequentially inputted in input frame 150 a, b, 0,
9, the claimant that mail server 10 can operate the initiation withdrawing mail is determined as the claimant of suitable lattice.
Due to not recalling the claimant of authority or the claimant of uncomfortable lattice can not know and recall inquiry session frame at all
The quantity of 104 characters that can be inputted, and it is neither possible to knowing the particular content of the character specifically inputted.Therefore, by this
Technical scheme can further be improved and carried out when withdrawing mail request is sent to claimant to recalling authority relative to embodiment one
The reliability of checking.Technical scheme in the present embodiment with the same department of embodiment one please join described in embodiment one, herein no longer
Repeat.
It should be noted that the character chosen in advance in mail head's attribute information can be one or two
Or the character group of more multidigit.For example, random using the character " a9 " of the 9th and the 10th of the UUID in embodiment one as one
Code, by the character " b1 " of the 10th and the 11st, using the character " 07 " of the 20th and the 21st as a random code, by the 23rd and the
The character " 29 " of 25 as a character and by above-mentioned random code a9, random code b1, random code 07 and random code 29 with it is above-mentioned
Specific mail bind, and preserve simultaneously into the storage device 103 of mail server 10.Character is in the rule selected by UUID
Can be then continuous or interval or one, interval are chosen or are spaced multidigit and selected
Take, even can partially overlapping be chosen, so as to by this technical scheme, further increase and mail is carried out only
The accuracy and the accuracy during mail action is recalled of one property description.
Each functional unit in each embodiment of the invention can be integrated in a processing unit or each
Unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated unit both may be used
To be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially
The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention each
The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory) magnetic disc or CD etc.
It is various can be with the medium of store program codes.
Those listed above is a series of to be described in detail only for feasibility embodiment of the invention specifically
Bright, they simultaneously are not used to limit the scope of the invention, all equivalent implementations made without departing from skill spirit of the present invention
Or change should be included in the scope of the protection.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie
In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power
Profit is required rather than described above is limited, it is intended that all in the implication and scope of the equivalency of claim by falling
Change is included in the present invention.Any reference in claim should not be considered as to the claim involved by limitation.
Moreover, it will be appreciated that although the present specification is described in terms of embodiments, not each embodiment is only wrapped
Containing an independent technical scheme, this narrating mode of specification is only that for clarity, those skilled in the art should
Using specification as an entirety, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art
It may be appreciated other embodiment.