CN103269311A - Method and device implemented on side of mail server - Google Patents

Method and device implemented on side of mail server Download PDF

Info

Publication number
CN103269311A
CN103269311A CN2013101764624A CN201310176462A CN103269311A CN 103269311 A CN103269311 A CN 103269311A CN 2013101764624 A CN2013101764624 A CN 2013101764624A CN 201310176462 A CN201310176462 A CN 201310176462A CN 103269311 A CN103269311 A CN 103269311A
Authority
CN
China
Prior art keywords
mail
file
default
file type
deleted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013101764624A
Other languages
Chinese (zh)
Other versions
CN103269311B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201310176462.4A priority Critical patent/CN103269311B/en
Publication of CN103269311A publication Critical patent/CN103269311A/en
Application granted granted Critical
Publication of CN103269311B publication Critical patent/CN103269311B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method implemented on the mail server side. The method comprises the steps of responding to an order of finishing receiving loading from a mail client, and checking whether mails to be deleted exist; storing the mails to be deleted in a preset file type if confirming that the mails to be deleted exist. The mails to be deleted are stored in the preset file type, so that the mails to be deleted can be separated from other mails according to the preset file type, the mails can be subsequently and conveniently sent in a targeted mode, a mail server does not need to receive extra mail deleting orders, and a user does not need to cancel setup of deletion. Consequently, the access pressure of the mail server is obviously reduced, and better experience is brought to the user. Further, the invention provides a device implemented on the side of the mail server.

Description

A kind of method and device of carrying out in the mail server side
Technical field
Embodiments of the present invention relate to field of e-mail, and more specifically, embodiments of the present invention relate to a kind of method and device of carrying out in the mail server side.
Background technology
This part is intended to provide background or context for the embodiments of the present invention of stating in claims.Description herein can comprise the concept that can probe into, but the concept of having expected or having probed into not necessarily.Therefore, unless point out at this, otherwise for the application's specification and claims, be not prior art in the content of describing in this part, and not because be included in just admit it is prior art in this part.
Email has been one of most important instrument that people exchange on the Internet.By mail server, Email can send to another Mail Clients from a Mail Clients.The agreement that can be used for sending and receiving e-mail can be Post Office Protocol-Version3(POP3 for example) agreement etc.For the mail server that uses the POP3 agreement, for the mail that the Mail Clients repeated downloads has been downloaded, mail server can receive at the DELE(deletion of downloading the mail feedback from Mail Clients) order, mail server is done delete flag according to the DELE order that receives to the mail that is kept on the mail server, and when download is finished, according to the download the finish command that receives from Mail Clients, be that QUIT(withdraws from) order, the mail of doing delete flag is deleted from mail server.But because mail server deletion mail automatically after sending mail, when situation that Mail Clients place terminal generation corrupted data or mistake are deleted, the user can't recover the mail that mail server has sent again.
In order to address this problem, Mail Clients of the prior art allows the user to carry out specific setting, and after the user carries out specific the setting, mail server can't receive the DELE order, thereby makes that mail continues to preserve at mail server.
Summary of the invention
But, because prior art needs the user to carry out specific setting at Mail Clients, could continue preserve the mail that Mail Clients has been downloaded at mail server, forget when carrying out specific the setting the user, still can have the problem that to recover the mail that Mail Clients downloaded again.
Therefore in the prior art, safety that can not certified mail is very worrying problem.
For this reason, be starved of a kind of improved method of carrying out in the mail server side, so that the safety problem of mail is guaranteed, does not rely on the user and carry out specific setting.
In the present context, the embodiments of the present invention expectation provides a kind of method and device of carrying out in the mail server side.
In the first aspect of embodiment of the present invention, a kind of method of carrying out in the mail server side is provided, for example can comprise: download the finish command in response to receiving from Mail Clients, whether inquiry exists mail to be deleted; If determine to exist mail to be deleted, this is waited to delete mail preserve with default file type.
Alternatively, described method can also comprise: when inquiring about mail according to the order of Mail Clients, skip over the mail of preserving with default file type.
Alternatively, wherein said when inquiring about mail according to the order of Mail Clients, skipping over the mail of preserving with default file type can comprise: according to the order of Mail Clients, determine user ID; The folder information related with this user ID in the Query Database; If inquire the folder information related with this user ID, judge whether the folder information related with this user ID is the folder information that identifies with default file type; If not, feed back to Mail Clients according to this document folder information; If skip over this document folder information.
Alternatively, if wherein said definite existence mail to be deleted, this is waited to delete mail comprise with default file type preservation: if determine to exist mail to be deleted, whether inquiry exists the file that identifies with default file type; If there is no, create the file that identifies with default file type; This mail to be deleted is moved to the file that identifies with default file type.
Alternatively, whether whether wherein said inquiry exists mail to be deleted to comprise: inquire about in database and exist and the related mail ID of delete flag, the information of described data-base recording comprises the incidence relation of incidence relation, mail ID and the file ID of delete flag and mail ID at least;
If described definite existence mail to be deleted, this is waited to delete mail preserves with default file type and comprises: if determine to exist the mail ID related with delete flag, the file ID of this mail ID association is revised as the file ID that identifies with default file type.
Alternatively, described method can also comprise: from the operational order of Mail Clients reception to file; According to the operational order to file, determine whether this document folder is the file of default file type sign; If, to Mail Clients feedback refusal operation information; If not, according to the operational order to file, carry out the operation to file; And/or reception is to the operation requests of the mail in the file of default file type sign, judge whether this operation requests comes from the WEB mailbox, if not, refuse described operation requests, if, according to described operation requests, carry out the operation to the mail in the file of default file type sign; And/or, record the time of origin that mail to be deleted moves to the file of default file type sign; When described time of origin surpasses default duration apart from the current time, from the file of default file type sign, delete this mail to be deleted; And/or, if mail to be deleted moves to the file with default file type sign, according to default contact method, send first to the user and delete the letter notice; And/or, if mail to be deleted moves to the file with default file type sign, before returning the web page files that comprises mail tabulation to the WEB mailbox, delete the letter notice with second and add described web page files; And/or, if mail to be deleted moves to the file with default file type sign, return to the WEB mailbox comprise wait to delete the webpage of mail tabulation before, delete the letter notice with the 3rd and add described web page files.
Alternatively, described method can also comprise:
Receive the request that arranges from the WEB mailbox, according to described request is set, described default duration and/or default contact method are set.
In the second aspect of embodiment of the present invention, a kind of device of carrying out in the mail server side is provided, can comprise: query unit: can dispose for downloading the finish command in response to receiving from Mail Clients, whether inquiry exists mail to be deleted; Preserve the unit: if can dispose for determining to exist mail to be deleted, this is waited to delete mail preserve with default file type.
Alternatively, this device can also comprise: feedback unit: configuration is used for skipping over the mail of preserving with default file type when inquiring about mail according to the download commands for mail of Mail Clients.
Alternatively, wherein said feedback unit: can dispose for the order according to Mail Clients, determine user ID; The folder information related with this user ID in the Query Database if inquire the folder information related with this user ID, judges that whether the folder information related with this user ID be the folder information with default file type sign; If not, feed back to Mail Clients according to this document folder information; If skip over this document folder information.
Alternatively, wherein said preservation unit: exist mail to be deleted, inquiry whether to have the file that identifies with default file type if can dispose for determining; If there is no, create the file that identifies with default file type; This mail to be deleted is moved to the file that identifies with default file type.
Whether wherein said query unit: can dispose for existing and the related mail ID of delete flag in the database inquiry, the information of described data-base recording comprises the incidence relation of incidence relation, mail ID and the file ID of delete flag and mail ID at least; Wherein said preservation unit: if be used for to determine there be the mail ID related with delete flag in configuration, the file ID of this mail ID association is revised as the file ID that identifies with default file type.
Alternatively, this device can also comprise: the file operating unit: configuration is used for from the operational order of Mail Clients reception to file; According to the operational order to file, determine whether this document folder is the file of default file type sign; If, to Mail Clients feedback refusal operation information; If not, according to the operational order to file, carry out the operation to file; And/or, the visit authentication unit: configuration is used for reception to the operation requests of the mail of the file of default file type sign, judge whether this operation requests comes from the WEB mailbox, if not, refuse described operation requests, if according to described operation requests, carry out the operation to the mail in the file of default file type sign; And/or delete cells regularly: configuration is used for the time of origin that record mail to be deleted moves to the file of default file type sign; When described time of origin surpasses default duration apart from the current time, from the file of default file type sign, delete this mail to be deleted; And/or first notification unit: move to file with default file type sign if configuration is used for mail to be deleted, according to default contact method, send first to the user and delete the letter notice; And/or second notification unit: move to file with default file type sign if configuration is used for mail to be deleted, before returning the web page files that comprises mail tabulation to the WEB mailbox, delete the letter notice with second and add described web page files; And/or, the 3rd advice note unit: move to file with default file type sign if configuration is used for mail to be deleted, return to the WEB mailbox comprise wait to delete the webpage of mail tabulation before, delete the letter notice with the 3rd and add described web page files.
Alternatively, this device can also comprise: the unit is set: configuration is used for from the reception of WEB mailbox request being set, and described default duration and/or default contact method are set.
The method and apparatus in the execution of mail server side according to embodiment of the present invention, can be at the download the finish command that receives Mail Clients, definite existence is waited to delete after the mail, this is waited to delete mail preserves with default file type, thereby need not the user carries out the mail that any specific setting just can download mail server and backs up in the mail server side, and can from mail, distinguish this mail to be deleted according to default file type, for the follow-up Mail Clients repeated downloads mail of avoiding provides possibility, as seen, embodiment of the present invention is owing to directly preserve mail to be deleted with default file type, guaranteed the fail safe of mail in the mail server side effectively, do not rely on the user and whether carried out specific setting, for the user has brought better experience.
Description of drawings
By reading detailed description hereinafter with reference to the accompanying drawings, above-mentioned and other purposes of exemplary embodiment of the invention, the feature and advantage easy to understand that will become.In the accompanying drawings, show some execution modes of the present invention in exemplary and nonrestrictive mode, wherein:
Fig. 1 schematically shows the block diagram of the exemplary computer system 100 that is suitable for realizing embodiment of the present invention;
Fig. 2 schematically shows the application scenarios according to the embodiment of the invention;
Fig. 3 schematically shows one of method flow schematic diagram according to the embodiment of the invention;
Fig. 4 schematically shows according to two of the method flow schematic diagram of the embodiment of the invention;
Fig. 5 schematically shows according to three of the method flow schematic diagram of the embodiment of the invention;
Fig. 6 schematically shows according to four of the method flow schematic diagram of the embodiment of the invention;
Fig. 7 schematically shows the apparatus structure schematic diagram according to the embodiment of the invention;
In the accompanying drawings, identical or corresponding label is represented identical or corresponding part.
Embodiment
Below with reference to some illustrative embodiments principle of the present invention and spirit are described.Should be appreciated that providing these execution modes only is for those skilled in the art can being understood better and then realize the present invention, and be not to limit the scope of the invention by any way.On the contrary, it is in order to make the disclosure thorough more and complete that these execution modes are provided, and the scope of the present disclosure intactly can be conveyed to those skilled in the art.
Fig. 1 shows the block diagram of the exemplary computer system 100 that is suitable for realizing embodiment of the present invention.As shown in Figure 1, computing system 100 can comprise: CPU (CPU) 101, random-access memory (ram) 102, read-only memory (ROM) 103, system bus 104, hard disk controller 105, keyboard controller 106, serial interface controller 107, parallel interface controller 108, display controller 109, hard disk 110, keyboard 111, serial external equipment 112, parallel external equipment 113 and display 114.In these equipment, with system bus 104 coupling CPU101, RAM102, ROM103, hard disk controller 105, keyboard controller 106, serialization controller 107, parallel controller 108 and display controller 109 arranged.Hard disk 110 and hard disk controller 105 couplings, keyboard 111 and keyboard controller 106 couplings, serial external equipment 112 and serial interface controller 107 couplings, parallel external equipment 113 and parallel interface controller 108 couplings, and display 114 and display controller 109 couplings.Should be appreciated that the described structured flowchart of Fig. 1 only is the purpose for example, rather than limitation of the scope of the invention.In some cases, can increase or reduce some equipment as the case may be.
Art technology technical staff knows that embodiments of the present invention can be implemented as a kind of system, method or computer program.Therefore, the disclosure can specific implementation be following form, that is: hardware, software (comprising firmware, resident software, microcode etc.) completely completely, the perhaps form of hardware and software combination, this paper is commonly referred to as " circuit ", " module " or " system ".In addition, in certain embodiments, the present invention can also be embodied as the form of the computer program in one or more computer-readable mediums, comprises computer-readable program code in this computer-readable medium.
Can adopt the combination in any of one or more computer-readable media.Computer-readable medium can be computer-readable signal media or computer-readable recording medium.Computer-readable recording medium for example can be, but be not limited to electricity, magnetic, light, electromagnetism, infrared ray or semi-conductive system, device or device, perhaps any above combination.The example more specifically of computer-readable recording medium (non exhaustive example) for example can comprise: have the electrical connection, portable computer diskette, hard disk, random-access memory (ram), read-only memory (ROM), erasable type programmable read only memory (EPROM or flash memory), optical fiber, Portable, compact disk read-only memory (CD-ROM), light storage device, magnetic memory device of one or more leads or the combination of above-mentioned any appropriate.In presents, computer-readable recording medium can be any comprising or stored program tangible medium, and this program can be used by instruction execution system, device or device or be used in combination with it.
Computer-readable signal media can be included in the base band or as the data-signal that a carrier wave part is propagated, wherein carry computer-readable program code.The data-signal of this propagation can adopt various ways, includes but not limited to the combination of electromagnetic signal, light signal or above-mentioned any appropriate.Computer-readable signal media can also be any computer-readable medium beyond the computer-readable recording medium, and this computer-readable medium can send, propagates or transmit the program of using or being used in combination with it for by instruction execution system, device or device.
The program code that comprises on the computer-readable medium can be with the transmission of any suitable medium, includes but not limited to wireless, electric wire, optical cable, RF etc., the perhaps combination of above-mentioned any appropriate.
Can make up to write for carrying out the computer program code that the present invention operates with one or more programming languages or its, described programming language comprises object-oriented programming language-such as Java, Smalltalk, C++, also comprises conventional process type programming language-such as " C " language or similar programming language.Program code can fully be carried out at subscriber computer, partly carries out at subscriber computer, carry out or carry out at remote computer or server fully at remote computer on subscriber computer top as an independently software kit execution, part.In relating to the situation of remote computer, remote computer can be connected to subscriber computer by the network (comprising Local Area Network or wide area network (WAN)) of any kind, perhaps, can be connected to outer computer (for example utilizing the ISP to come to connect by the internet).
With reference to the flow chart of the method for the embodiment of the invention and the block diagram of equipment (or system) embodiments of the present invention are described below.The combination that should be appreciated that each square frame in each square frame of flow chart and/or block diagram and flow chart and/or the block diagram can be realized by computer program instructions.These computer program instructions can offer the processor of all-purpose computer, special-purpose computer or other programmable data processing unit, thereby produce a kind of machine, these computer program instructions are carried out by computer or other programmable data processing unit, have produced the device of the function/operation of stipulating in the square frame in realization flow figure and/or the block diagram.
Also can be stored in these computer program instructions and can make in computer or the computer-readable medium of other programmable data processing unit with ad hoc fashion work, like this, the instruction that is stored in the computer-readable medium just produces a product that comprises the command device of the function/operation of stipulating in the square frame in realization flow figure and/or the block diagram.
Also can be loaded into computer program instructions on computer, other programmable data processing unit or the miscellaneous equipment, make and carry out the sequence of operations step at computer, other programmable data processing unit or miscellaneous equipment, producing computer implemented process, thus the process that makes the function/operation of in the instruction that computer or other programmable device are carried out can provide square frame in realization flow figure and/or the block diagram, stipulating.
According to the embodiment of the present invention, a kind of method and apparatus of carrying out in the mail server side has been proposed.
In this article, it will be appreciated that any number of elements in the accompanying drawing is all unrestricted for example, and any name only be used for to distinguish all, and do not have any limitation.
Below with reference to some representative embodiments of the present invention, explained in detail principle of the present invention and spirit.
Summary of the invention
The inventor finds, could download mail in the preservation of mail server side owing to need the user to carry out specific the setting at Mail Clients, has caused the defective that exists mail data possibly can't recover.If abandon this intrinsic scheme, but take directly to preserve the technological means of mail to preset file type, then can not rely on user's specific setting, the effectively fail safe of certified mail, and the follow-up mail that can come out to avoid the Mail Clients repeated downloads to download according to the mail sorting that default file type has been downloaded Mail Clients.
After having introduced basic principle of the present invention, following mask body is introduced various non-limiting execution mode of the present invention.
The application scenarios overview
At first with reference to figure 2, as shown in Figure 2, the adaptable scene of embodiment of the present invention can be for comprising the email distribution and reception system of mail server 201 and Mail Clients 202, wherein the communication protocol between mail server 201 and the Mail Clients 202 can be that POP3 agreement or other are applicable to agreement of the present invention, does not limit in the present invention.
Illustrative methods
Below in conjunction with the application scenarios of Fig. 2, be described with reference to Figure 3 the method in the execution of mail server side according to exemplary embodiment of the invention.It should be noted that above-mentioned application scenarios only is to illustrate for the ease of understanding spirit of the present invention and principle, embodiments of the present invention are unrestricted in this regard.On the contrary, embodiments of the present invention any scene that can be applied to be suitable for.
Referring to Fig. 3, one of a kind of method flow schematic diagram of carrying out in the mail server side that provides for the embodiment of the invention, as shown in the figure, this method embodiment can comprise:
S310, in response to receive to download the finish command from Mail Clients, whether inquiry exists mail to be deleted;
If S320 determines to exist mail to be deleted, this is waited to delete mail preserve with default file type.
Use the method for the above embodiment of the present invention, mail server can initiatively not collected mail the user and kept copy under the situation of the specific setting on the server, initiatively the mail that Mail Clients has been downloaded is preserved with default file type, do not rely on user's specific setting, when the mail data of Mail Clients damages, can recover the mail downloaded from mail server, effectively guarantee the fail safe of mail.And follow-up can the differentiation according to default file type waits to delete mail and other mails, may for avoiding Mail Clients repeated downloads mail to provide.As seen, the method for the above embodiment of the present invention does not need the user to do any setting at Mail Clients, is all automatically performed by mail server, has significantly improved the fail safe of mail.
Wherein, default file type is mainly used in distinguishing waits to delete mail and other mails, distinguishes mail according to default file type, can avoid Mail Clients repeated downloads mail.For example, referring to Fig. 4, two of a kind of method flow schematic diagram of carrying out in the mail server side that provides for the embodiment of the invention, as shown in the figure, this method embodiment can comprise:
S410, in response to receive to download the finish command from Mail Clients, whether inquiry exists mail to be deleted;
If S420 determines to exist mail to be deleted, this is waited to delete mail preserve with default file type;
S430, according to the order of Mail Clients inquiry mail the time, skip over the mail of preserving with default file type.
The difference of the execution mode that this is shown in Figure 4 and execution mode shown in Figure 3 is, when this embodiment can also be included in according to the order inquiry mail of Mail Clients, skip over the step of the mail of preserving with default file type, can avoid Mail Clients repeated downloads mail according to this execution mode.
Usually pass through the relevant information realization of data-base recording mail to the management of mail in conjunction with mail server, when inquiring about mail according to the order of Mail Clients, can skip over the mail of preserving with default file type according to the information of data-base recording.For example, referring to Fig. 5, three of a kind of method flow schematic diagram of carrying out in the mail server side that provides for the embodiment of the invention, as shown in the figure, the information of data-base recording comprises the folder information related with user ID at least among this embodiment, can comprise:
S510, in response to receive to download the finish command from Mail Clients, whether inquiry exists mail to be deleted;
If S520 determines to exist mail to be deleted, this is waited to delete mail preserve with default file type;
S530, according to the order of Mail Clients, determine user ID;
According to the POP3 agreement, the order of Mail Clients for example can comprise, the LIST(mail tabulation) order, for the treatment of the size of returning number of mail and each mail; RETR(fetches mail) order, for the treatment of the text that returns by the mail of mail sign (ID), perhaps other orders etc.The user ID that is used for determining user account has all been carried in these orders.
The folder information related with this user ID in S531, the Query Database judges that whether the folder information related with this user ID be the folder information with default file type sign;
S532, if not feeds back to Mail Clients according to this document folder information;
S533 is if skip over this document folder information.
Again particularly, for example, use above-described embodiment, LIST or RETR order inquiry mail according to Mail Clients, then described folder information also should comprise the store path of file correspondence, if the folder information related with this user ID is not the folder information with default file type sign, then can press from both sides information according to this document, from folder information, extract the corresponding store path of this document folder, read out mail tabulation or mail document under the described store path again, feed back this mail tabulation or mail text to Mail Clients.
In embodiments of the present invention, in order to distinguish mail to be deleted, reach and delete the purpose that mail is preserved with default file type with waiting, mail to be deleted can be moved to the file with default file type sign.At other mails of follow-up transmission, perhaps treat the deletion mail when operating, can whether be the file of default file type sign according to mail actual storage locations place file, distinguish mail to be deleted.For example, if definite existence mail to be deleted of the embodiment of the invention is waited to delete mail with this and can be comprised with the step of presetting the file type preservation:
If determine to exist mail to be deleted, whether inquiry exists the file with default file type sign;
If there is no, create the file that identifies with default file type;
This mail to be deleted is moved to the file that identifies with default file type.
And/or,
In conjunction with the database information that mail server is set up for the management mail, can reach equally and distinguish mail to be deleted, will wait to delete the purpose that mail is preserved with default file type.For example, the information of data-base recording can comprise that mail server is the unique mail ID, the information relevant with mail ID, for example incidence relation of the incidence relation of mail ID and delete flag, mail ID and file ID that are used for the expression mail that every envelope mail arranges.As according to the POP3 agreement, when Mail Clients receives mail, can send the DELE order to mail server, mail server side is according to the parameter of DELE order, can also in database, record the incidence relation of mail ID and delete flag, make mail be labeled as deletion.Receive download the finish command that Mail Clients sends at mail server, after the QUIT order, can whether exist according to the information inquiry of data-base recording and the related mail ID of delete flag, wherein, the information of described data-base recording comprises the incidence relation of incidence relation, mail ID and the file ID of delete flag and mail ID at least;
Correspondingly, if definite existence mail to be deleted of the embodiment of the invention is waited to delete mail with this and can be comprised with the step of presetting the file type preservation:
If determine there to be the mail ID related with delete flag, the file ID of this mail ID association is revised as the file ID that identifies with default file type.
Need to prove that the mail ID corresponding mail related with delete flag is stored on the mail server in fact.As seen, the file ID of this mail ID association being revised as file ID with default file type sign has reached and will wait to delete the purpose that mail is preserved with default file type.At other mails of follow-up transmission, perhaps treat the deletion mail when operating, can distinguish mail to be deleted according to the corresponding relation of the default file type that in database, records and mail ID.Therefore, mail to be deleted is not limited under the file ID corresponding file folder that necessarily is stored in default file type sign.
But, be understandable that, for the ease of the Mail Server Management mail, fast read mail, optimize the email storage structure, can be with above-mentioned two kinds of method combinations, for example, referring to Fig. 6, four of a kind of method flow schematic diagram of carrying out in the mail server side that provides for the embodiment of the invention, this method embodiment can comprise:
S610, in response to receive to download the finish command from Mail Clients, whether inquire about in database and exist and the related mail ID of delete flag, the information of described data-base recording comprises the incidence relation of incidence relation, mail ID and the file ID of delete flag and mail ID at least;
If S620.1 determines to exist and the related mail ID of delete flag, whether inquiry exists the file with default file type sign;
For example, whether the folder information related with this user ID comprises default file type sign in can Query Database, if, then show the file of having created default file type sign for this user, and needn't create the file of this default file type sign afterwards for this user again.
S620.2, if there is no creates the file with default file type sign;
For example, for the ease of utilizing database mail is managed, can also be in database recording user ID and the incidence relation with the file of default file type sign that should newly create, and record the store path of the file of this default file type sign.
S620.3, this mail to be deleted is moved to file with default file type sign; And,
If determine there be the mail ID related with delete flag in S620.4, the file ID of this mail ID association is revised as the file ID that identifies with default file type.
In addition, to the file operation that default file type identifies the mail of wherein preserving is lost for fear of Mail Clients, wherein the file of default file type sign can be system folder, and the title of file can be system's reserved name.In order to limit Mail Clients to the operation of the file of default file type sign, the embodiment of the invention can also comprise:
When the operational order that receives from Mail Clients file, according to the operational order to file, determine whether this document folder is the file of default file type sign;
If, to Mail Clients feedback refusal operation information;
If not, according to the operational order to file, carry out the operation to file, wherein, can comprise operations such as establishment, rename, deletion to the operation of file.
Because the mail under the file of default file type sign can not send to Mail Clients, for the user is managed the mail under the file of default file type sign, mail server allows the user by the WEB mailbox mail under the file of default file type sign to be managed, for example:
Mail server can receive the operation requests to the mail in the file of default file type sign, judge whether this operation requests comes from the WEB mailbox, if not, refuse described operation requests, if, according to described operation requests, carry out the operation to the mail in the file of default file type sign.Wherein, the operation to the mail in the file of default file type sign can comprise inquiry, read, move, operation such as deletion.
Wherein, judge whether this operation requests comes from the WEB mailbox, the agreement that comprises identification information in the time of can following WEB mailbox connection mail server in the log messages, whether this login of identification information judgment that comprises according to log-on message is the WEB login, and this identification information can be set according to implementing needs in advance.
Consider that the mail server stores space is limited, also should regularly remove the mail of the overlong time of preserving under the file of default file type sign, to discharge the memory space of mail server, for example:
Can record the time of origin that mail to be deleted moves to the file of default file type sign, for example, the incidence relation of time of origin and mail ID can be recorded in the database;
When described time of origin surpasses default duration apart from the current time, from the file of default file type sign, delete this mail to be deleted.
Wherein said default duration can be the default duration of system default, also can be by the default duration of user by the WEB postbox installment, does not limit in the present invention.For example, the incidence relation that can also comprise default duration and mail ID or user ID in the described database, when timer when default duration triggers inspection to overtime mail, from database, read out the time of origin of each mail ID association, and related default duration, again at each mail ID, calculate the difference that current time subtracts the time of origin of this mail ID association, if difference is greater than default duration, from database, inquire the store path of this mail ID association, with the mail deletion of this mail ID sign under this store path.
Move to the file of default file type sign when mail to be deleted after, in order to make the user understand the state that mail is backed up by all means, the embodiment of the invention can also be after mail to be deleted moves to the file that identifies with default file type, produce message informing, for example following first delete the letter notice, second deletes letter notice and the 3rd deletes the letter notice, with this message informing and other relevant informations, as user ID etc., put into message queue, every default notice duration, whether there is new message notification in the query messages formation, if exist, message informing is taken out from formation, message informing is write message sends file, perhaps according to default contact method (as, email address or phone number etc.) send to the user, particularly, for example:
(1) if mail to be deleted moves to the file with default file type sign, according to default contact method, sends first to the user and delete the letter notice;
For example, according to default contact method, to the user send first delete the letter notice can comprise to default email address send mail, to implementations such as default phone number transmission notes.Wherein, default contact method can be arranged by the WEB mailbox by the user, after mail server receives the request that contact method be set of user by the transmission of WEB mailbox, in the data-base recording that contact method is recorded in this user profile is associated that this is default, and then by Query Database, obtain the contact method with user's corresponding preset.
And/or,
(2) if mail to be deleted moves to the file with default file type sign, before returning the web page files that comprises mail tabulation to the WEB mailbox, delete the letter notice with second and add described web page files;
For example, if mail to be deleted moves to the file with default file type sign, can generate second according to default generating mode and delete the letter notice, perhaps from the message arrangement file of preserving in advance, extract this and second delete the letter notice, behind the buffer memory by message queue, it is write message send file, when the user logins the WEB mailbox and checks inbox, mail server can send from message and read out second the file and delete letter notice, before returning the web page files that comprises mail tabulation to the WEB mailbox, delete the letter notice with second and add described web page files, thereby make the user when browsing the webpage that mail server returns, can see in inbox that this second deletes letter notice, for example, second deletes letter notice can be " action that prompting has Mail Clients to delete letter produces, and the mail of deletion has been saved in POP delete under the letter file ", thereby makes the user recognize the state that mail to be deleted is transferred.
(3) if mail to be deleted moves to the file with default file type sign, return to the WEB mailbox comprise wait to delete the webpage of mail tabulation before, delete the letter notice with the 3rd and add described web page files;
For example, if mail to be deleted moves to the file with default file type sign, can generate the 3rd according to default generating mode and delete the letter notice, perhaps from the message arrangement file of preserving in advance, extract the 3rd and delete the letter notice, behind the buffer memory by message queue, it is write message send file, when the user logins the WEB mailbox and checks the file of default file type sign, mail server can send from message and read out the 3rd the file and delete letter notice, before returning the web page files that comprises mail tabulation to the WEB mailbox, delete the letter notice with the 3rd and add described web page files, thereby make the user when browsing the webpage that mail server returns, can see in the file of default file type sign that the 3rd deletes the letter notice, for example, the 3rd deletes the letter notice can be " the mail backup of being collected and deleting by client is deleted XX days above mails; forbid the client collection of letters automatically at this ", thereby makes the user recognize the state that mail to be deleted is transferred.
Wherein, the message arrangement file in the above-mentioned advice method can be by Mail Server Management, comprising system default or the set message informing of the request that arranges that sends by Mail Clients or WEB mailbox according to the user.
Exemplary means
After the method for having introduced exemplary embodiment of the invention, next, be introduced with reference to the device of carrying out in the mail server side of 7 pairs of exemplary embodiment of the invention of figure.
Referring to Fig. 7, be a kind of apparatus structure schematic diagram of carrying out in the mail server side that the embodiment of the invention provides, as shown in the figure, this device can comprise:
Query unit 710: can dispose for downloading the finish command in response to receiving from Mail Clients, whether inquiry exists mail to be deleted;
Preserve unit 720: if can dispose for determining to exist mail to be deleted, this is waited to delete mail preserve with default file type.
Use the device of the above embodiment of the present invention, mail server can initiatively not collected mail the user and kept copy under the situation of the relevant setting on the server, preserved with default file type by the mail that query unit 710 and preservation unit 720 have initiatively been downloaded Mail Clients, and then follow-up can the differentiation according to default file type waits to delete mail and other mails, for the follow-up mail that sends selectively brings convenience, realized the mail backup functionality.
Because the device of the above embodiment of the present invention does not need the user to do any setting at Mail Clients, also need not the extra signaling that receives the order that unerases of mail server, all automatically performed by query unit 710 and preservation unit 720 by mail server, significantly reduce the visit pressure of mail server, improved the mail server response speed.
Device based on above-described embodiment, the mail of having downloaded for fear of the Mail Clients repeated downloads, the device of the embodiment of the invention can also comprise: feedback unit 730: can dispose for when inquiring about mail according to the order of Mail Clients, skip over the mail of preserving with default file type.
Particularly, wherein said feedback unit 730: can dispose for the order according to Mail Clients, determine user ID; The folder information related with this user ID in the Query Database if inquire the folder information related with this user ID, judges that whether the folder information related with this user ID be the folder information with default file type sign; If not, feed back to Mail Clients according to this document folder information; If skip over this document folder information.
In embodiments of the present invention, in order to distinguish mail to be deleted, reach and to wait to delete the purpose that mail is preserved with default file type, the query unit 710 of the device of the embodiment of the invention: exist mail to be deleted, inquiry whether to have the file that identifies with default file type if can dispose for determining; Preserve unit 720: can dispose for the file of if there is no presetting the file type sign, create the file with default file type sign; This mail to be deleted is moved to the file that identifies with default file type.
And/or,
In conjunction with the database information that mail server is set up for the management mail, reach and distinguish mail to be deleted, will wait to delete the purpose that mail is preserved with default file type.For example,
Whether the query unit 710 of the device of the embodiment of the invention: can dispose for existing and the related mail ID of delete flag in the database inquiry, the information of described data-base recording comprises the incidence relation of incidence relation, mail ID and the file ID of delete flag and mail ID at least;
Preserve unit 720: if can dispose for determining to exist the mail ID related with delete flag, the file ID of this mail ID association is revised as the file ID that identifies with default file type.
Be understandable that, for the ease of the Mail Server Management mail, fast read mail, optimize the email storage structure, can be with the query unit 710 of above-mentioned dual mode and the function combination of preserving unit 720, for example:
Wherein said query unit 710: can dispose for whether existing and the related mail ID of delete flag in the database inquiry, and inquire about the file that whether exists with default file type sign, the information of described data-base recording comprises the incidence relation of incidence relation, mail ID and the file ID of delete flag and mail ID at least;
Wherein said preservation unit 720: can dispose for the file of if there is no presetting the file type sign, create the file with default file type sign; This mail to be deleted is moved to file with default file type sign, if determine to exist the mail ID related with delete flag, the file ID of this mail ID association is revised as the file ID that identifies with default file type.
In addition, to the file operation that default file type identifies the mail of wherein preserving is lost for fear of Mail Clients, the device of the embodiment of the invention can also comprise: file operating unit 740: can dispose for the operational order that receives from Mail Clients file; According to the operational order to file, determine whether this document folder is the file of default file type sign; If, to Mail Clients feedback refusal operation information; If not, according to the operational order to file, carry out the operation to file;
And/or,
Visit authentication unit 750: can dispose the operation requests for the mail that receives the file that default file type is identified, judge whether this operation requests comes from the WEB mailbox, if not, refuse described operation requests, if, according to described operation requests, carry out the operation to the mail in the file of default file type sign.
Consider that the mail server stores space is limited, also should regularly remove the mail of the overlong time of preserving under the file of default file type sign, to discharge the memory space of mail server, the device of the embodiment of the invention, for example, can also comprise: timing delete cells 760: can dispose the time of origin that moves to the file of default file type sign for record mail to be deleted; When described time of origin surpasses default duration apart from the current time, from the file of default file type sign, delete this mail to be deleted.
Move to the file of default file type sign when mail to be deleted after, understand the state that mail is backed up by all means in order to make the user, the device of the embodiment of the invention also provides the function that is used for realizing message informing with lower unit, for example:
First notification unit 770: move to the file that identifies with default file type if can dispose for mail to be deleted, according to default contact method, send first to the user and delete the letter notice;
And/or,
Second notification unit 780: move to the file that identifies with default file type if can dispose for mail to be deleted, before returning the web page files that comprises mail tabulation to the WEB mailbox, delete the letter notice with second and add described web page files;
And/or,
The 3rd advice note unit 790: move to file with default file type sign if can dispose for mail to be deleted, return to the WEB mailbox comprise wait to delete the webpage of mail tabulation before, delete the letter notice with the 3rd and add described web page files.
Wherein, can also comprise: unit 700 is set: can dispose for receiving from the WEB mailbox request is set, described default duration and/or default contact method are set.
Although should be noted that some unit of having mentioned the device of carrying out in the mail server side in above-detailed, this division only is not enforceable.In fact, according to the embodiment of the present invention, the feature of above-described two or more unit and function can be specialized in a unit.Otherwise the feature of an above-described unit and function can further be divided into by a plurality of unit to be specialized.
In addition, although described the operation of the inventive method in the accompanying drawings with particular order,, this is not that requirement or hint must be carried out these operations according to this particular order, or the operation shown in must carrying out all could realize the result of expectation.On the contrary, the step of describing in the flow chart can change execution sequence.Additionally or alternatively, can omit some step, a plurality of steps be merged into a step carry out, and/or a step is decomposed into a plurality of steps carries out.
The verb of mentioning in the application documents " comprises ", those elements or the element the step or the existence of putting down in writing of step do not got rid of in " comprising " and paradigmatic use thereof in application documents.The existence that article " " before the element or " one " do not get rid of a plurality of this elements.
Though described spirit of the present invention and principle with reference to some embodiments, but should be appreciated that, the present invention is not limited to disclosed embodiment, division to each side does not mean that the feature in these aspects can not make up to be benefited yet, and this division only is the convenience in order to explain.The present invention is intended to contain interior included various modifications and the equivalent arrangements of spirit and scope of claims.The scope of claims meets the most wide in range explanation, thereby comprises all such modifications and equivalent structure and function.

Claims (14)

1. method of carrying out in the mail server side comprises:
Download the finish command in response to receiving from Mail Clients, whether inquiry exists mail to be deleted;
If determine to exist mail to be deleted, this is waited to delete mail preserve with default file type.
2. method according to claim 1 also comprises: when inquiring about mail according to the order of Mail Clients, skip over the mail of preserving with default file type.
3. method according to claim 2 is wherein said when inquiring about mail according to the order of Mail Clients, skips over the mail of preserving with default file type and comprises:
According to the order of Mail Clients, determine user ID;
The folder information related with this user ID in the Query Database;
If inquire the folder information related with this user ID, judge whether the folder information related with this user ID is the folder information that identifies with default file type;
If not, feed back to Mail Clients according to this document folder information;
If skip over this document folder information.
4. method according to claim 1, if wherein said definite existence mail to be deleted is waited to delete mail with this and is preserved with default file type and comprise:
If determine to exist mail to be deleted, whether inquiry exists the file with default file type sign;
If there is no, create the file that identifies with default file type;
This mail to be deleted is moved to the file that identifies with default file type.
5. method according to claim 1, whether whether wherein said inquiry exists mail to be deleted to comprise: inquire about in database and exist and the related mail ID of delete flag, the information of described data-base recording comprises the incidence relation of incidence relation, mail ID and the file ID of delete flag and mail ID at least;
If described definite existence mail to be deleted is waited to delete mail with this and is comprised with default file type preservation:
If determine there to be the mail ID related with delete flag, the file ID of this mail ID association is revised as the file ID that identifies with default file type.
6. according to the described method of claim 1-5, also comprise:
From the operational order of Mail Clients reception to file; According to the operational order to file, determine whether this document folder is the file of default file type sign; If, to Mail Clients feedback refusal operation information; If not, according to the operational order to file, carry out the operation to file;
And/or,
Reception judges whether this operation requests comes from the WEB mailbox, if not to the operation requests of the mail in the file of default file type sign, refuse described operation requests, if according to described operation requests, carry out the operation to the mail in the file of default file type sign;
And/or,
Record the time of origin that mail to be deleted moves to the file of default file type sign; When described time of origin surpasses default duration apart from the current time, from the file of default file type sign, delete this mail to be deleted;
And/or,
If mail to be deleted moves to the file with default file type sign, according to default contact method, send first to the user and delete the letter notice;
And/or,
If mail to be deleted moves to the file with default file type sign, before returning the web page files that comprises mail tabulation to the WEB mailbox, delete the letter notice with second and add described web page files;
And/or,
If mail to be deleted moves to the file with default file type sign, return to the WEB mailbox comprise wait to delete the webpage of mail tabulation before, delete the letter notice with the 3rd and add described web page files.
7. method according to claim 6 also comprises:
Receive the request that arranges from the WEB mailbox, according to described request is set, described default duration and/or default contact method are set.
8. device of carrying out in the mail server side comprises:
Query unit: configuration is used for downloading the finish command in response to receiving from Mail Clients, and whether inquiry exists mail to be deleted;
Preserve the unit: if configuration is used for determining to exist mail to be deleted, this is waited to delete mail preserve with default file type.
9. device according to claim 8 also comprises:
Feedback unit: configuration is used for skipping over the mail of preserving with default file type when inquiring about mail according to the order of Mail Clients.
10. device according to claim 9, wherein said feedback unit: configuration is used for the order according to Mail Clients, determines user ID; The folder information related with this user ID in the Query Database if inquire the folder information related with this user ID, judges that whether the folder information related with this user ID be the folder information with default file type sign; If not, feed back to Mail Clients according to this document folder information; If skip over this document folder information.
11. device according to claim 8, wherein said preservation unit: if configuration is used for determining to exist mail to be deleted, whether inquiry exists the file with default file type sign; If there is no, create the file that identifies with default file type; This mail to be deleted is moved to the file that identifies with default file type.
12. device according to claim 8, wherein said query unit: whether configuration is used for existing and the related mail ID of delete flag in the database inquiry, and the information of described data-base recording comprises the incidence relation of incidence relation, mail ID and the file ID of delete flag and mail ID at least;
Wherein said preservation unit: if be used for to determine there be the mail ID related with delete flag in configuration, the file ID of this mail ID association is revised as the file ID that identifies with default file type.
13. described device according to Claim 8-12 also comprises:
The file operating unit: configuration is used for from the operational order of Mail Clients reception to file; According to the operational order to file, determine whether this document folder is the file of default file type sign; If, to Mail Clients feedback refusal operation information; If not, according to the operational order to file, carry out the operation to file;
And/or,
The visit authentication unit: configuration is used for reception to the operation requests of the mail of the file of default file type sign, judge whether this operation requests comes from the WEB mailbox, if not, refuse described operation requests, if, according to described operation requests, carry out the operation to the mail in the file of default file type sign;
And/or,
Delete cells regularly: configuration is used for the time of origin that record mail to be deleted moves to the file of default file type sign; When described time of origin surpasses default duration apart from the current time, from the file of default file type sign, delete this mail to be deleted;
And/or,
First notification unit: move to the file that identifies with default file type if configuration is used for mail to be deleted, according to default contact method, send first to the user and delete the letter notice;
And/or,
Second notification unit: move to the file that identifies with default file type if configuration is used for mail to be deleted, before returning the web page files that comprises mail tabulation to the WEB mailbox, delete the letter notice with second and add described web page files;
And/or,
The 3rd advice note unit: move to file with default file type sign if configuration is used for mail to be deleted, return to the WEB mailbox comprise wait to delete the webpage of mail tabulation before, delete the letter notice with the 3rd and add described web page files.
14. device according to claim 13 also comprises:
The unit is set: configuration is used for from the reception of WEB mailbox request being set, and described default duration and/or default contact method are set.
CN201310176462.4A 2013-05-10 2013-05-10 A kind of method in the execution of mail server side and device Active CN103269311B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310176462.4A CN103269311B (en) 2013-05-10 2013-05-10 A kind of method in the execution of mail server side and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310176462.4A CN103269311B (en) 2013-05-10 2013-05-10 A kind of method in the execution of mail server side and device

Publications (2)

Publication Number Publication Date
CN103269311A true CN103269311A (en) 2013-08-28
CN103269311B CN103269311B (en) 2016-03-16

Family

ID=49012920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310176462.4A Active CN103269311B (en) 2013-05-10 2013-05-10 A kind of method in the execution of mail server side and device

Country Status (1)

Country Link
CN (1) CN103269311B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634201A (en) * 2013-11-12 2014-03-12 新浪网技术(中国)有限公司 Electronic mail system and electronic mail quarantine processing method thereof
CN107220809A (en) * 2017-05-26 2017-09-29 携程旅游信息技术(上海)有限公司 The method and system of change tissue based on Active Directory organizational structure
CN108345664A (en) * 2018-02-02 2018-07-31 网易(杭州)网络有限公司 A kind of method of file synchronization, medium, system and electronic equipment
CN109525746A (en) * 2017-09-19 2019-03-26 夏普株式会社 Document management apparatus, compounding machine and information processing unit, file management method and storage medium
CN114500439A (en) * 2022-01-20 2022-05-13 统信软件技术有限公司 Mail downloading method, device, computing equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101325561A (en) * 2007-06-12 2008-12-17 阿里巴巴集团控股有限公司 Method, apparatus and system for processing electronic mail
CN101364891A (en) * 2007-08-10 2009-02-11 中兴通讯股份有限公司 System for collecting performance data by single point in distributed telecommunication network management and implementing method
EP2053808A1 (en) * 2006-08-18 2009-04-29 Huawei Technologies Co., Ltd. The system, method and device for realizing email notification
CN102750198A (en) * 2011-04-20 2012-10-24 腾讯科技(深圳)有限公司 Backup method and system of social networking site content

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2053808A1 (en) * 2006-08-18 2009-04-29 Huawei Technologies Co., Ltd. The system, method and device for realizing email notification
CN101325561A (en) * 2007-06-12 2008-12-17 阿里巴巴集团控股有限公司 Method, apparatus and system for processing electronic mail
CN101364891A (en) * 2007-08-10 2009-02-11 中兴通讯股份有限公司 System for collecting performance data by single point in distributed telecommunication network management and implementing method
CN102750198A (en) * 2011-04-20 2012-10-24 腾讯科技(深圳)有限公司 Backup method and system of social networking site content

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张华: "电子邮件系统POP3服务客户端邮件收取功能设计", 《潍坊学院学报》 *
韩金侠: "POP3电子邮件客户端及服务器的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634201A (en) * 2013-11-12 2014-03-12 新浪网技术(中国)有限公司 Electronic mail system and electronic mail quarantine processing method thereof
CN103634201B (en) * 2013-11-12 2017-09-12 新浪网技术(中国)有限公司 E-mail system and its quarantined message processing method
CN107220809A (en) * 2017-05-26 2017-09-29 携程旅游信息技术(上海)有限公司 The method and system of change tissue based on Active Directory organizational structure
CN109525746A (en) * 2017-09-19 2019-03-26 夏普株式会社 Document management apparatus, compounding machine and information processing unit, file management method and storage medium
CN109525746B (en) * 2017-09-19 2020-08-07 夏普株式会社 File management device, multi-function peripheral, information processing device, file management method, and storage medium
CN108345664A (en) * 2018-02-02 2018-07-31 网易(杭州)网络有限公司 A kind of method of file synchronization, medium, system and electronic equipment
CN114500439A (en) * 2022-01-20 2022-05-13 统信软件技术有限公司 Mail downloading method, device, computing equipment and storage medium
CN114500439B (en) * 2022-01-20 2024-05-14 统信软件技术有限公司 Mail downloading method, device, computing equipment and storage medium

Also Published As

Publication number Publication date
CN103269311B (en) 2016-03-16

Similar Documents

Publication Publication Date Title
CN108234539B (en) File uploading, downloading and transmitting method and device
CN106464572B (en) Message attachment management
US9788197B2 (en) Method and browser for browsing web page, and storage medium
US20120030224A1 (en) Enabling active content in messaging using automatic data replacement
CN103269311A (en) Method and device implemented on side of mail server
CN109359091B (en) File management method, device, terminal and computer readable storage medium
CN102769687B (en) Mass texting system and method
JP2017528795A (en) Generating unregistered user accounts for sharing content items
CN103119550A (en) Storing electronic content with time-varying properties
US20110060800A1 (en) Method of guaranteeing the deliverability of emails and other messages
CN103220358A (en) Multi-terminal on-line file synchronizing method, system, server, and terminal device
KR20090003405A (en) File upload system and method
US8468596B2 (en) Work support apparatus for information processing device
EP2479962A1 (en) Method and mobile terminal for recycling short messages
CN104053137A (en) Data recovery method and device
US20120030556A1 (en) Method for enabling interactive content within messaging application
CN102970401A (en) Method and device for recoding contact information
US20150046565A1 (en) System and method for archiving messages
CN112187898A (en) Data access system, method and device based on public security network
CN111901229A (en) Mail withdrawing method and device, electronic equipment and readable storage medium
WO2012126241A1 (en) Method and apparatus for managing user information
CN106557262B (en) Data processing method and device
CN114116675A (en) Data archiving method and device
CN106101193B (en) Information backup method, terminal equipment, operator server and backup system
CN107291401B (en) File scanning method, file cleaning method, related device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant