CN102571990A - E-mail synchronization method and system for mobile terminal - Google Patents
E-mail synchronization method and system for mobile terminal Download PDFInfo
- Publication number
- CN102571990A CN102571990A CN201210074069XA CN201210074069A CN102571990A CN 102571990 A CN102571990 A CN 102571990A CN 201210074069X A CN201210074069X A CN 201210074069XA CN 201210074069 A CN201210074069 A CN 201210074069A CN 102571990 A CN102571990 A CN 102571990A
- Authority
- CN
- China
- Prior art keywords
- new
- numbering
- mails
- primary
- 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
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the technical field of E-mails, and discloses an E-mail synchronization method and an E-mail synchronization system for a mobile terminal. The method comprises the following steps of: performing synchronization with an E-mail server, comparing original identifiers (ID) of E-mails, marking and sequentially numbering deleted E-mails, marking and acquiring new E-mails, sequentially numbering the new E-mails, performing the synchronization with the mobile terminal, and transmitting the information of the new E-mails and the deleted E-mails to the mobile terminal. According to the scheme, the E-mails are compared and processed by an intermediate server, and the information of the E-mails is synchronized between equipment by utilizing unique sequence numbers endowed to the E-mails to avoid synchronization errors caused by the irregular E-mail IDs of a post office protocol (POP) 3, so that complexity in the synchronization is reduced, the influence of the deleted E-mails on synchronization accuracy is avoided, the mobile terminal can finish the synchronization by using the lowest data traffic, the E-mail processing speed of the mobile terminal is increased, the occupied system resources of the terminal are reduced, and the network traffic consumption of the mobile terminal is reduced.
Description
Technical field
The present invention relates to the e-mail technique field, particularly a kind of portable terminal email synchronization method and system.
Background technology
Use portable terminal to come the accessing wirelessly internet information to become a main flow business in the Internet at present.But because the volume of portable terminal and the restriction of connected mode, the function and application of its access to netwoks has received very big influence.Such as characteristics such as, data traffic expensive limited, limited storage space owing to network connection speed; Receiving E-mail on common portable terminal; When especially collecting the Email that has annex; Need time and the network traffic data of labor to come to receive complete file from server, this mode processing speed is slow, taken a large amount of device resources, wasted bandwidth, increased period of reservation of number, brought inconvenience to user's operation; And, may bring extra economic loss to the user because operator collects the charges according to network traffics usually.
Download burden in order to alleviate mail, can adopt synchronous mode transfer mail between server and terminal in the prior art usually, promptly at first confirm the mail difference between server and the terminal, only obtain the unexistent mail in terminal subsequently from server.For the IMAP agreement; (order that adds according to mail increases progressively and numbers because the size of its mail ID is relevant with the reception order; The ID of two adjacent mails is not necessarily continuous; But can guarantee back one bigger than previous value), can come synchronous mail according to the size of its mail ID, so than being easier to processing; But for the POP3 agreement; Because its mail ID is a lot of random character string; Can't judge effectively according to mail ID whether mail is new mail, especially for the mail of having deleted in this locality, owing to can't compare, also can't judge the time or the order of this mail effectively through mail ID; Thereby will delete mail as being that new mail is synchronized to this locality once more through regular meeting mistake, the obvious serious waste of this mode time and system resource.
Summary of the invention
The technical problem that (one) will solve
To the above-mentioned defective of prior art, portable terminal provides a kind of portable terminal email synchronization method and system to the inconvenient synchronously technical problem of POP3 mail in the prior art in order to solve in the present invention.
(2) technical scheme
For realizing above-mentioned purpose, the present invention adopts following technical scheme:
On the one hand, the present invention provides a kind of portable terminal email synchronization method, and said method comprises step:
S1 carries out synchronously with mail server, from mail server, obtains the primary ID tabulation of whole mails;
S2; The primary ID tabulation of said whole mails is compared with local primary ID tabulation of preserving mail; To each mail; If its mail ID only is present in the said local primary ID tabulation of preserving mail then execution in step S3, if its mail ID only is present in the primary ID tabulation of said whole mails then execution in step S4;
S3 is labeled as mail and deletes, and continues as this mail numbering, execution in step S5 subsequently by local mail number order;
S4 is labeled as new mail with mail, obtains this mail and is kept at this locality from mail server, subsequently execution in step S5;
S5, if there is a new mail, according to time sequence after, to each new mail, continue as its numbering by local mail number order;
S6; Carry out synchronously with portable terminal; Obtain the maximum numbering of terminal preservation mail and the maximum numbering of terminal deletion mail from portable terminal; The new mail messages that the mail numbering is preserved the maximum numbering of mail greater than the terminal sends to portable terminal, and the e-mail messages of deletion of simultaneously the mail numbering being numbered greater than the maximum of terminal deletion mail sends to portable terminal.
Preferably, said new mail messages is mail head's information of new mail full content or new mail.
Preferably, when said new mail messages is mail head's information of new mail, after accomplishing synchronously, new mail is done further processing according to user's request.
Preferably, said mail head's information comprises: mail matter topics, mail primary ID, local serial number, addressee, sender, make a copy for people and accessories list.
Preferably, said further processing comprises: the reading mail text, browse picture in the mail, download annex, replied mail, forwarding by mail or deletion mail.
On the other hand, the present invention also provides a kind of portable terminal email synchronization system simultaneously, and said system comprises:
The mail server synchronization module is used for carrying out synchronously with mail server, from mail server, obtains the primary ID tabulation of whole mails;
The primary ID comparing module; Be used for the primary ID tabulation of said whole mails is compared with local primary ID tabulation of preserving mail; To each mail; If its mail ID only is present in and then transfers to removing module in the said local primary ID tabulation of preserving mail and handle,, its mail ID then transfers to the new mail resume module if only being present in the primary ID tabulation of said whole mails;
Removing module is used for mail is labeled as and deletes, and continues as this mail numbering by local mail number order;
The new mail module is used for mail is labeled as new mail, obtains this mail and is kept at this locality from mail server;
New mail numbering module, be used for new mail according to time sequence after, to each new mail, continue as its numbering by local mail number order;
The terminal synchronizes module; Be used for carrying out synchronously with portable terminal; Obtain the maximum numbering of terminal preservation mail and the maximum numbering of terminal deletion mail from portable terminal; The new mail messages that the mail numbering is preserved the maximum numbering of mail greater than the terminal sends to portable terminal, and the e-mail messages of deletion of simultaneously the mail numbering being numbered greater than the maximum of terminal deletion mail sends to portable terminal.
Preferably, said new mail messages is mail head's information of new mail full content or new mail.
Preferably, when said new mail messages was mail head's information of new mail, said system also comprised:
The mail treatment module is used for after accomplishing synchronously, according to user's request new mail being done further processing.
Preferably, said mail head's information comprises: mail matter topics, mail primary ID, local serial number, addressee, sender, make a copy for people and accessories list.
Preferably, said further processing comprises: the reading mail text, browse picture in the mail, download annex, replied mail, forwarding by mail or deletion mail.
(3) beneficial effect
In the scheme of the present invention; Mail is compared and handle through intermediate server; For mail is given unique serial number, utilize should numbering between equipment e-mail messages synchronously, the timing error of avoiding the random mail ID of POP3 agreement to cause; Thereby reduced synchronous complexity; Avoided deleting the influence of mail, made portable terminal can use minimum data traffic to accomplish synchronously, accelerated the network flow consumption that the email disposal speed of portable terminal, the system resource that reduced the terminal had taken, reduced portable terminal synchronous correctness.
Description of drawings
Fig. 1 is a portable terminal email synchronization method flow sketch map in the embodiment of the invention;
Fig. 2 is a portable terminal email synchronization system configuration sketch map in the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, the every other embodiment that those of ordinary skills are obtained under the prerequisite of not making creative work belongs to the scope that the present invention protects.
Among the present invention; In order effectively to handle the POP3 mail; Reduce the synchronous situation of email error; Mail is compared and handle through intermediate server, avoid deleting the mail timing error that mail causes, thereby it is synchronous to make that portable terminal can accurately carry out mail with minimum data traffic and the fastest speed.
Referring to Fig. 1, portable terminal email synchronization method of the present invention comprises step:
S1 carries out synchronously with mail server, from mail server, obtains the primary ID tabulation of whole mails;
S2; The primary ID tabulation of said whole mails is compared with local primary ID tabulation of preserving mail; To each mail; If its mail ID only is present in the said local primary ID tabulation of preserving mail then execution in step S3, if its mail ID only is present in the primary ID tabulation of said whole mails then execution in step S4;
S3; Mail is labeled as deletes; By local mail number order continue as this mail numbering (this numbering of having deleted mail promptly is set after current maximum mail numbering, such as, current maximum mail is numbered n '; That establishes then that this has deleted mail is numbered n '+1), execution in step S5 subsequently;
S4 is labeled as new mail with mail, obtains this mail and is kept at this locality from mail server, subsequently execution in step S5;
S5, if there is a new mail, according to time sequence after; To each new mail, by local mail number order continue as its numbering (numbering that this new mail promptly is set after current maximum mail numbering, such as; Current maximum mail is numbered n the n that is numbered of this new mail ", then establish "+1);
S6; Carry out synchronously with portable terminal; Obtain the maximum numbering of terminal preservation mail and the maximum numbering of terminal deletion mail from portable terminal; The new mail messages that the mail numbering is preserved the maximum numbering of mail greater than the terminal sends to portable terminal, and the e-mail messages of deletion of simultaneously the mail numbering being numbered greater than the maximum of terminal deletion mail sends to portable terminal.
Wherein, Said local mail number order is meant a unique local serial number that is provided with for each mail local (being the intermediate server place); It presses the time sequencing numbering of new mail; Preserve at local data base with new mail messages, only after mail is deleted, just upgrade (promptly carrying out above-mentioned steps S3).The mail delete procedure is meant the process of deletion mail on mail server, the deletion of for example in the file of mail server, carrying out through the web login mode, and can not influence the mail on the mail server in the deletion action of doing on the portable terminal.
The primary ID of mail is meant the ID that mail is had according to respective protocol (POP3 and/or IMAP) naturally.
In a preferred embodiment, the present invention only carries out the synchronous of mail head's information, after accomplishing synchronously, according to user's request mail is being done further processing.Said mail head's information comprises: information such as mail matter topics, mail primary ID, local serial number, addressee, sender, the people that makes a copy for, accessories list.Further handle and comprise: the reading mail text, browse picture in the mail, download annex, replied mail, forwarding by mail or deletion mail etc.
One of ordinary skill in the art will appreciate that; Realize that all or part of step in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer read/write memory medium; This program comprise each step of the foregoing description method, and described storage medium can be: ROM/RAM, magnetic disc, CD, storage card etc. when carrying out.Therefore, corresponding with method of the present invention, the present invention also comprises a kind of portable terminal email synchronization system simultaneously, and this system is usually to represent with the form of the corresponding functional module of each step of method; As shown in Figure 2, said system comprises:
The mail server synchronization module is used for carrying out synchronously with mail server, from mail server, obtains the primary ID tabulation of whole mails;
The primary ID comparing module; Be used for the primary ID tabulation of said whole mails is compared with local primary ID tabulation of preserving mail; To each mail; If its mail ID only is present in and then transfers to removing module in the said local primary ID tabulation of preserving mail and handle,, its mail ID then transfers to the new mail resume module if only being present in the primary ID tabulation of said whole mails;
Removing module; Be used for mail is labeled as and delete, by local mail number order continue as this mail numbering (this numbering of having deleted mail promptly is set after current maximum mail numbering, such as; Current maximum mail is numbered n ', and that establishes then that this has deleted mail is numbered n '+1);
The new mail module is used for mail is labeled as new mail, obtains this mail and is kept at this locality from mail server;
New mail numbering module; Be used for new mail according to time sequence after; To each new mail, by local mail number order continue as its numbering (numbering that this new mail promptly is set after current maximum mail numbering, such as; Current maximum mail is numbered n the n that is numbered of this new mail ", then establish "+1);
The terminal synchronizes module; Be used for carrying out synchronously with portable terminal; Obtain the maximum numbering of terminal preservation mail and the maximum numbering of terminal deletion mail from portable terminal; The new mail messages that the mail numbering is preserved the maximum numbering of mail greater than the terminal sends to portable terminal, and the e-mail messages of deletion of simultaneously the mail numbering being numbered greater than the maximum of terminal deletion mail sends to portable terminal.
In the scheme of the present invention; Mail is compared and handle through intermediate server; For mail is given unique serial number, utilize should numbering between equipment e-mail messages synchronously, the timing error of avoiding the random mail ID of POP3 agreement to cause; Thereby reduced synchronous complexity; Avoided deleting the influence of mail, made portable terminal can use minimum data traffic to accomplish synchronously, accelerated the network flow consumption that the email disposal speed of portable terminal, the system resource that reduced the terminal had taken, reduced portable terminal synchronous correctness.
Above execution mode only is used to explain the present invention; And be not limitation of the present invention; The those of ordinary skill in relevant technologies field under the situation that does not break away from the spirit and scope of the present invention, can also be made various variations and modification; Therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (10)
1. portable terminal email synchronization method is characterized in that said method comprises step:
S1 carries out synchronously with mail server, from mail server, obtains the primary ID tabulation of whole mails;
S2; The primary ID tabulation of said whole mails is compared with local primary ID tabulation of preserving mail; To each mail; If its mail ID only is present in the said local primary ID tabulation of preserving mail then execution in step S3, if its mail ID only is present in the primary ID tabulation of said whole mails then execution in step S4;
S3 is labeled as mail and deletes, and continues as this mail numbering, execution in step S5 subsequently by local mail number order;
S4 is labeled as new mail with mail, obtains this mail and is kept at this locality from mail server, subsequently execution in step S5;
S5, if there is a new mail, according to time sequence after, to each new mail, continue as its numbering by local mail number order;
S6; Carry out synchronously with portable terminal; Obtain the maximum numbering of terminal preservation mail and the maximum numbering of terminal deletion mail from portable terminal; The new mail messages that the mail numbering is preserved the maximum numbering of mail greater than the terminal sends to portable terminal, and the e-mail messages of deletion of simultaneously the mail numbering being numbered greater than the maximum of terminal deletion mail sends to portable terminal.
2. method according to claim 1 is characterized in that, said new mail messages is mail head's information of new mail full content or new mail.
3. method according to claim 2 is characterized in that, when said new mail messages is mail head's information of new mail, after accomplishing synchronously, according to user's request new mail is done further processing.
4. according to claim 2 or 3 described methods, it is characterized in that said mail head's information comprises: mail matter topics, mail primary ID, local serial number, addressee, sender, make a copy for people and accessories list.
5. method according to claim 3 is characterized in that, said further processing comprises: the reading mail text, browse picture in the mail, download annex, replied mail, forwarding by mail or deletion mail.
6. portable terminal email synchronization system is characterized in that said system comprises:
The mail server synchronization module is used for carrying out synchronously with mail server, from mail server, obtains the primary ID tabulation of whole mails;
The primary ID comparing module; Be used for the primary ID tabulation of said whole mails is compared with local primary ID tabulation of preserving mail; To each mail; If its mail ID only is present in and then transfers to removing module in the said local primary ID tabulation of preserving mail and handle,, its mail ID then transfers to the new mail resume module if only being present in the primary ID tabulation of said whole mails;
Removing module is used for mail is labeled as and deletes, and continues as this mail numbering by local mail number order;
The new mail module is used for mail is labeled as new mail, obtains this mail and is kept at this locality from mail server;
New mail numbering module, be used for new mail according to time sequence after, to each new mail, continue as its numbering by local mail number order;
The terminal synchronizes module; Be used for carrying out synchronously with portable terminal; Obtain the maximum numbering of terminal preservation mail and the maximum numbering of terminal deletion mail from portable terminal; The new mail messages that the mail numbering is preserved the maximum numbering of mail greater than the terminal sends to portable terminal, and the e-mail messages of deletion of simultaneously the mail numbering being numbered greater than the maximum of terminal deletion mail sends to portable terminal.
7. system according to claim 6 is characterized in that, said new mail messages is mail head's information of new mail full content or new mail.
8. system according to claim 7 is characterized in that, when said new mail messages was mail head's information of new mail, said system also comprised:
The mail treatment module is used for after accomplishing synchronously, according to user's request new mail being done further processing.
9. according to claim 7 or 8 described systems, it is characterized in that said mail head's information comprises: mail matter topics, mail primary ID, local serial number, addressee, sender, make a copy for people and accessories list.
10. system according to claim 8 is characterized in that, said further processing comprises: the reading mail text, browse picture in the mail, download annex, replied mail, forwarding by mail or deletion mail.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210074069.XA CN102571990B (en) | 2012-03-16 | 2012-03-16 | E-mail synchronization method and system for mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210074069.XA CN102571990B (en) | 2012-03-16 | 2012-03-16 | E-mail synchronization method and system for mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102571990A true CN102571990A (en) | 2012-07-11 |
CN102571990B CN102571990B (en) | 2014-09-24 |
Family
ID=46416450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210074069.XA Expired - Fee Related CN102571990B (en) | 2012-03-16 | 2012-03-16 | E-mail synchronization method and system for mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102571990B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103268541A (en) * | 2013-04-15 | 2013-08-28 | 广州博冠信息科技有限公司 | Mailbox interface interaction method and equipment |
CN107104889A (en) * | 2017-07-06 | 2017-08-29 | 青岛海信移动通信技术股份有限公司 | A kind of rough draft mail synchronization method, device and terminal based on IMAP protocol |
CN107276880A (en) * | 2017-06-13 | 2017-10-20 | 青岛海信移动通信技术股份有限公司 | A kind of method and apparatus for obtaining mail |
CN108848024A (en) * | 2018-07-25 | 2018-11-20 | 深圳市比特熊科技有限公司 | message synchronization method, system and device |
CN109120503A (en) * | 2017-06-26 | 2019-01-01 | 中兴通讯股份有限公司 | Mail operation synchronization method, device and storage medium |
CN109639750A (en) * | 2014-08-29 | 2019-04-16 | 阿里巴巴集团控股有限公司 | Business data processing method and equipment |
CN110572311A (en) * | 2019-08-09 | 2019-12-13 | 青岛海信移动通信技术股份有限公司 | Mail downloading method and terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1521667A (en) * | 2003-01-29 | 2004-08-18 | 联想(北京)有限公司 | Mail transmitting-receiving system and method |
CN1722711A (en) * | 2005-07-27 | 2006-01-18 | 北京立通无限科技有限公司 | Method for implementing mail forwarding by mail proxy server |
CN101309438A (en) * | 2007-05-18 | 2008-11-19 | 希姆通信息技术(上海)有限公司 | Method avoiding repeated downloading identical e-mail using pop3 post office protocol |
-
2012
- 2012-03-16 CN CN201210074069.XA patent/CN102571990B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1521667A (en) * | 2003-01-29 | 2004-08-18 | 联想(北京)有限公司 | Mail transmitting-receiving system and method |
CN1722711A (en) * | 2005-07-27 | 2006-01-18 | 北京立通无限科技有限公司 | Method for implementing mail forwarding by mail proxy server |
CN101309438A (en) * | 2007-05-18 | 2008-11-19 | 希姆通信息技术(上海)有限公司 | Method avoiding repeated downloading identical e-mail using pop3 post office protocol |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103268541A (en) * | 2013-04-15 | 2013-08-28 | 广州博冠信息科技有限公司 | Mailbox interface interaction method and equipment |
CN109639750A (en) * | 2014-08-29 | 2019-04-16 | 阿里巴巴集团控股有限公司 | Business data processing method and equipment |
CN107276880A (en) * | 2017-06-13 | 2017-10-20 | 青岛海信移动通信技术股份有限公司 | A kind of method and apparatus for obtaining mail |
CN109120503A (en) * | 2017-06-26 | 2019-01-01 | 中兴通讯股份有限公司 | Mail operation synchronization method, device and storage medium |
CN109120503B (en) * | 2017-06-26 | 2022-05-13 | 中兴通讯股份有限公司 | Mail operation synchronization method, device and storage medium |
CN107104889A (en) * | 2017-07-06 | 2017-08-29 | 青岛海信移动通信技术股份有限公司 | A kind of rough draft mail synchronization method, device and terminal based on IMAP protocol |
CN108848024A (en) * | 2018-07-25 | 2018-11-20 | 深圳市比特熊科技有限公司 | message synchronization method, system and device |
CN110572311A (en) * | 2019-08-09 | 2019-12-13 | 青岛海信移动通信技术股份有限公司 | Mail downloading method and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN102571990B (en) | 2014-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102571990B (en) | E-mail synchronization method and system for mobile terminal | |
CN108156070B (en) | Instant messaging method, device and system based on mail system | |
CN108055196B (en) | Method, device and system for creating discussion group based on instant messaging | |
CN101103596A (en) | Method and apparatus for efficiently managing 'messages sent' file and resending of messages from mobile wireless communication device | |
CN108055197A (en) | Mail sharing method, apparatus and system based on instant messaging | |
CN101588559B (en) | Method and device for booking a meeting and communication system | |
CN101169799A (en) | Operation information collection system and method | |
CN101887446A (en) | Method, system and mobile terminal for inputting E-mail address | |
CN102739871B (en) | Information sending method and device of mobile terminal | |
CN102833408B (en) | Method and device for displaying messages | |
CN103167014A (en) | Method and device of sharing resources with browsers | |
CN103716230A (en) | Message sending method, device and server | |
CN103490983A (en) | Enterprise mail system and mail migration executing method thereof | |
CN104077363B (en) | Mail server and its method for carrying out mail full-text search | |
US7958197B2 (en) | Dynamic type-ahead for lists of prior specified addressees | |
CN103944806A (en) | Data transmission method and system based on Wechat platform | |
CN102073723B (en) | Method and device for managing mobile terminal mails | |
CN103326927A (en) | Method and device for collecting mails | |
CN102281516B (en) | Short message processing method and short message processing terminal | |
CN102314471A (en) | Method for synchronizing scroll bars | |
CN106453581B (en) | Method for accessing social platform address book based on enterprise ERP system | |
CN105913215A (en) | Email processing method and equipment | |
CN104052650A (en) | Method and device for sending emails | |
CN107104889A (en) | A kind of rough draft mail synchronization method, device and terminal based on IMAP protocol | |
CN102769639B (en) | Method of data synchronization and system |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140924 Termination date: 20150316 |
|
EXPY | Termination of patent right or utility model |