WO2019071617A1 - Procédé de synchronisation de courriels et terminal - Google Patents

Procédé de synchronisation de courriels et terminal Download PDF

Info

Publication number
WO2019071617A1
WO2019071617A1 PCT/CN2017/106194 CN2017106194W WO2019071617A1 WO 2019071617 A1 WO2019071617 A1 WO 2019071617A1 CN 2017106194 W CN2017106194 W CN 2017106194W WO 2019071617 A1 WO2019071617 A1 WO 2019071617A1
Authority
WO
WIPO (PCT)
Prior art keywords
mail
identifier
server
email
saved
Prior art date
Application number
PCT/CN2017/106194
Other languages
English (en)
Chinese (zh)
Inventor
李辰淑
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201780094850.4A priority Critical patent/CN111095877B/zh
Publication of WO2019071617A1 publication Critical patent/WO2019071617A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/107Computer-aided management of electronic mailing [e-mailing]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/226Delivery according to priorities

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a method and a terminal for synchronizing emails.
  • e-mail has become more and more frequent, and more and more e-mails (such as Foxmail, Outlook, etc.) have been sent or received.
  • the user can log in to the same email address by using an email client (ie, an email client) in different terminals. Synchronization of sent messages is especially important when users log in to the same email address using different terminals.
  • the Email client can synchronize the sent mail through the Interactive Mail Access Protocol (IMAP) server. Specifically, after successfully sending the email, the email client can upload the email to the IMAP server, and the IMAP server saves the email, so that the email client can download the email from the IMAP server after the email synchronization time arrives.
  • IMAP Interactive Mail Access Protocol
  • the IMAP server may forward the email to the email client during the sending of the above email, and the IMAP server may save the forwarded email according to the configuration information.
  • the IMAP server stores two of the above messages (mails saved during the mail forwarding process and messages received from the client). Then, the email client can download two emails from the IMAP server, and the email client can display the same two emails in the sent mailing list, which increases the resource load of the email client and reduces the email client sending and receiving. The efficiency of the mail.
  • the application provides a method for synchronizing emails and a terminal, which can reduce the resource load of the email client and provide the efficiency of the email client to send and receive emails.
  • the present application provides a method for synchronizing an email, where the synchronization method of the email is applied to an email client (ie, an email client), and the method for synchronizing the email includes: the email client according to the first identifier Determining whether the first email is saved in the first server, where the first identifier is the email identifier allocated by the email client for the first email, and is used to uniquely identify the email identifier of the first email; when the first server is saved When the first email is sent, the email client does not send the first email carrying the first identifier to the first server; when the first email is not saved in the first server, the email client sends the email to the first server. Send the first email carrying the first identifier.
  • the first identifier may be used to uniquely identify the first email, and the email client may upload the email to the first server according to the first identifier of the first email.
  • First it is determined whether the first server has saved the mail; when the first server has saved the mail, the mail is not uploaded to the first server; when the first server does not save the mail, the mail is uploaded to the first server. .
  • Such as Therefore only one email is saved in the first server, and when the email client synchronizes the email, the same email will not be downloaded, which can reduce the resource load of the email client and improve the efficiency of the email client to send and receive emails.
  • the email client synchronizes mail, multiple emails will not be downloaded, so multiple emails will not be displayed, which can improve the user experience.
  • the email client may instruct the first server to query the UID of the mail with the same identifier as the first identifier by sending a User Identification (UID) query command to the first server. It is judged according to the result of the query whether the first mail has been saved in the first server.
  • the e-mail client determines whether the first e-mail is saved in the first server according to the first identifier, and the e-mail client sends a UID query command to the first server, where the UID query command carries the first identifier.
  • the UID query command is used to query the UID of the mail identifier that is the same as the first identifier.
  • the email client receives the first UID query response or the second UID query response sent by the first server.
  • the first UID query response is used to indicate that the first mail has been saved in the first server
  • the second UID query response is used to indicate that the first mail is not saved in the first server
  • the email client is based on
  • the first UID query response determines that the first mail has been saved in the first server, or determines that the first mail is not saved in the first server according to the second UID query response.
  • the email client may instruct the first server to query the UID of the mail with the same identifier as the first identifier by sending a UID query command to the first server, to determine whether the first mail is saved in the first server. .
  • the embodiment of the present application provides a UID query command in two formats.
  • the first format UID query command is: UID SEARCH HEADER MID ⁇ *@email.android.com>.
  • the UID query command in the second format is: UID SEARCH (HEADER MID ⁇ *@email.android.com>).
  • the content "*@email.android.com" in ⁇ > is an example of a message identification (MID) given in the present application.
  • the email client can selectively send the UID supported by the IMAP server to the first server in the UID query command of the two formats. Query the command.
  • the email client may first send a UID query command of the first format to instruct the first server to query the same email identifier as the first identifier. The UID of the message. If the email client receives the second UID query command sent by the first server, it indicates that the first server does not save the first email, or the first server does not support the UID query command in the first format to find the UID of the email. .
  • the email client may continue to send a UID query command of the second format to the first server to instruct the first server to query the UID of the mail with the same identifier as the first identifier. If the email client receives the second UID query command sent by the first server, the first server may be considered as not saving the first mail.
  • the email client may also send the UID query command in the first format, and then send the second UID query command in the second format after receiving the second UID query command sent by the first server.
  • the order of sending the UID query command of the first format and the UID query command of the second format is not limited.
  • the email client may send a format UID query command (such as a UID query command in the second format) to the first server, and if the second UID query command is received, the email client may continue to The first server sends a UID query command of another format (such as a UID query command of the first format) to determine whether the first mail is saved in the first server.
  • a format UID query command such as a UID query command in the second format
  • the first server sends a UID query command of another format (such as a UID query command of the first format) to determine whether the first mail is saved in the first server.
  • the first server may not support the UID query command in the above two formats to query the UID; or the first server may not support querying the UID of the mail according to the MID of the mail.
  • the email client may send an identifier query request to the first server, where the identifier query request is used to obtain the foregoing
  • the mail identifier of the N second mails saved by the server wherein the N second mails are the mails saved by the first server, and are arranged in the last N digits according to the order of the mail storage time, N ⁇ 1;
  • the email client receives the identifier query response sent by the first server, and the identifier query response carries the mail identifiers of the N second emails; the email client sequentially traverses the N second emails to find the email identifier.
  • the method in this possible design method is referred to as a loop traversal query mode.
  • the UID is queried.
  • the first server does not support querying the UID of the email according to the MID of the email; the email client may also use the loop traversal query method to determine whether the first email is saved in the first server. In this way, it can be avoided that the first server does not support the UID query command in the above two formats to query the UID, or the first server does not support the UID of the mail according to the MID of the mail, which causes the query to fail, and can improve the email client. Determine the accuracy of the results.
  • the email client determines, according to the first identifier, whether the first email is saved in the first server, and the method includes: the email client sends an identifier query request to the first server, where the identifier query is performed. Requesting, for obtaining the mail identifiers of the N second mails saved by the first server, the N second mails are the mails saved by the first server, and are arranged in the last N digits according to the order of the mail storage time.
  • the mail client N ⁇ 1; the email client receives the identifier query response sent by the first server, and the identifier query response carries the mail identifier of the N second emails; the email client sequentially traverses The N second emails are searched for the mail with the same identifier as the first identifier; if the mail identifier is the same as the first identifier, the email client determines that the first server has saved the first The email client determines that the first email is not saved in the first server if the email with the same identifier as the first identifier is not found.
  • the method in this possible design method is referred to as a loop traversal query mode.
  • the email client may use the above loop traversal query mode to determine the first Whether the first message is saved in the server. In this way, the accuracy of the judgment result obtained by the email client can be improved.
  • the method in the embodiment of the present application may further include: the email client is in the second The server sends the first mail carrying the first identifier.
  • the first mail that has been saved in the first server is sent by the second server to the first server.
  • the first identifier is that the email client allocates the first email when the first email is created; or the first identifier is the electronic The mail client allocates the first mail when the first mail is sent.
  • the email client may allocate a first identifier that can uniquely identify the first email when the first email is created; or the email client may allocate the first email when the first email is sent, A first identifier that uniquely identifies the first message.
  • the email client determines, according to the first identifier, whether the first email is saved in the first server, and includes: the email client receiving the first message sent by the first server And determining, according to the first identifier, whether the first mail is saved in the first server, where the first message is used to indicate that the first mail is successfully sent; or the email client sends the foregoing to the first server. Before the first mail, according to the first identifier, determining whether the first mail is saved in the first server.
  • the application provides an email client, and the email client includes: a determining unit, a control unit, and a sending unit.
  • the determining unit is configured to determine, according to the first identifier, whether the first email is saved in the first server, where the first identifier is the email that is sent by the email client to the first email, and is used to uniquely identify the first email.
  • the control unit is configured to: when the determining unit determines that the first mail is saved in the first server, instructing the sending unit not to send the first mail to the first server, where the first mail carries the first An identifier; when the determining unit determines that the first mail is not saved in the first server, instructing the sending unit to send the first mail to the first server, where the first mail carries the first identifier.
  • the determining unit is configured to send a user identity UID query command to the first server, where the UID query command carries the first identifier, and the UID query command is used to query a mail identifier.
  • a first UID query response or a second UID query response sent by the first server where the first UID query response is used to indicate that the first mail is saved in the first server.
  • the second UID query response is used to indicate that the first mail is not saved in the first server; and that the first server is saved according to the first UID query response. Determining the first mail, or determining, according to the second UID query response, that the first mail is not saved in the first server.
  • the determining unit is further configured to: after receiving the second UID query response sent by the first server, send an identifier query request to the first server, where the identifier query request is used to obtain the foregoing The mail identifier of the N second mails saved by the first server, wherein the N second mails are the mails stored by the first server, and are arranged in the last N digits according to the order of the mail storage time, N ⁇ 1 .
  • the determining unit is further configured to receive the identifier query response sent by the first server, where the identifier query response carries the mail identifier of the N second emails.
  • the determining unit is further configured to sequentially traverse the N second emails to search for the mail with the same mail identifier as the first identifier, and if the mail identifier is the same as the first identifier, the first server is determined to be The first mail is saved; if the mail with the same identifier as the first identifier is not found, it is determined that the first mail is not saved in the first server.
  • the determining unit is configured to send an identifier query request to the first server, where the identifier query request is used to obtain the mail identifier of the N second emails saved by the first server,
  • the N second mails are the mails saved by the first server, arranged in the order of the last N digits according to the order of the mail storage time, N ⁇ 1; receiving the identifier query response sent by the first server, the identifier query
  • the response carries the mail identifiers of the N second emails; the mail identifiers of the N second emails are traversed in sequence, and the emails with the same identifier as the first identifier are searched; if the email identifier and the first identifier are found, The same mail is determined to be that the first mail is saved in the first server; if the mail with the same mail identifier as the first identifier is not found, it is determined that the first mail is not saved in the first server.
  • the sending unit is further configured to: after the determining unit determines, according to the first identifier, whether to save the first email in the first server, send the foregoing that carries the first identifier to the second server. First email.
  • the first mail that has been saved in the first server is sent by the second server to the first server.
  • the above email client further includes: an allocating unit.
  • the allocating unit is configured to allocate the first identifier to the first mail when the first mail is created, or to allocate the first identifier to the first mail when the sending unit sends the first mail.
  • the email client further includes: a receiving unit.
  • the receiving unit is configured to receive the first message sent by the first server, where the first message is used to indicate that the first mail is successfully sent
  • the determining unit is configured to: receive, by the receiving unit, the first server When the first message is sent, determining whether the first mail is saved in the first server according to the first identifier.
  • the determining unit is configured to: before the sending unit sends the first mail to the first server, determine, according to the first identifier, whether the first mail is saved in the first server.
  • the application provides a terminal in which an e-mail client is installed, the terminal includes: a processor, a memory, a transceiver, and a display; the memory, the display, the transceiver and the processor are coupled, and the memory is used for storing
  • the computer program code and related data of the email client the display is used to display an interface of the email client, the computer program code includes computer instructions, and when the processor executes the computer instruction, the processor is configured to determine the first server according to the first identifier Whether to save the first message, the first identifier is email
  • the mail identifier that is allocated by the client for the first mail, is used to uniquely identify the first mail;
  • the transceiver is further configured to: when the processor determines that the first mail is saved in the first server, does not send the first mail to the first server The first email carries the first identifier.
  • the transceiver is further configured to: when the processor determines that the first email is not saved in the first server, send the first email to the first server
  • the transceiver is further configured to send a UID query command to the first server, where the UID query command carries the first identifier, and the UID query command is used to query the mail identifier with the same identifier as the first identifier.
  • the UID; the transceiver is further configured to receive a first UID query response or a second UID query response sent by the first server, where the first UID query response is used to indicate that the first email has been saved in the first server, and the second UID query response
  • the processor is further configured to: determine, according to the first UID query response received by the transceiver, that the first email is saved in the first server, or according to the second UID query received by the transceiver. The response determines that the first message was not saved in the first server.
  • the transceiver is further configured to: after receiving the second UID query response sent by the first server, send an identifier query request to the first server, where the identifier query request is used to obtain the first server save
  • the mail identifiers of the N second mails, and the N second mails are the mails saved by the first server, arranged in the order of the last N digits according to the order of the mail storage time, N ⁇ 1; receiving the first server sending Identifying the query response, identifying the mail identifier carrying the N second emails in the query response; the processor is further configured to sequentially traverse the N second emails to find the email with the same email identifier as the first identifier; if the email identifier is found The first identifier is the same email, and the first email is saved in the first server; if the email with the same identifier as the first identifier is not found, it is determined that the first email is not saved in the first server.
  • the transceiver is further configured to send an identifier query request to the first server, where the identifier query request is used to obtain the mail identifier of the N second emails saved by the first server, and the N second emails
  • the mail stored in the first server is arranged in the order of the last N digits according to the order of the mail storage time, N ⁇ 1; receiving the identifier query response sent by the first server, and the identifier query response carries N seconds.
  • the mail identifier of the mail; the processor is further configured to sequentially traverse the mail identifier of the N second mails, and find the mail with the same identifier as the first identifier; if the mail identifier is the same as the first identifier, the first server is determined.
  • the first message has been saved; if the mail ID is the same as the first ID, it is determined that the first mail is not saved in the first server.
  • the transceiver is further configured to: before determining, by the processor, whether the first email is saved in the first server according to the first identifier, send the first email carrying the first identifier to the second server; The first mail that has been saved in the first server is sent by the second server to the first server.
  • the first identifier is that the email client allocates the first email when the first email is created; or the first identifier is that the email client sends the first email when The first message is assigned.
  • the processor is further configured to: when the transceiver receives the first message sent by the first server, determine, according to the first identifier, whether the first email is saved in the first server, where The message is used to indicate that the first mail is successfully sent; or, before the transceiver sends the first mail to the first server, determining whether the first mail is saved in the first server according to the first identifier.
  • the email client of the second aspect provided above and the terminal of the third aspect are both used to implement the corresponding method provided by the first aspect and its possible design method, and therefore, the beneficial effects thereof can be achieved. Reference may be made to the benefits of the first aspect and its possible design methods, and details are not described herein again.
  • the present application provides a method for synchronizing emails, which is used for performing email synchronization in an email client.
  • the method includes: the email client sends a UID query command to the first server, and the UID query command is used.
  • the first identifier is carried by the email client, and the email identifier is used to uniquely identify the first email.
  • the UID query command is used to query the UID of the email with the same identifier as the first identifier.
  • the first server in response to the UID query command, searches for the UID of the mail identifier that is the same as the first identifier from the mail saved by the first server; the first server sends the first UID query response to the email client according to the query result or The second UID query response, the first UID query response carries the UID of the found mail, and the second UID query response is used to indicate that the first mail is not saved in the first server; the email client determines the first response according to the first UID query The first mail has been saved in a server, or the first mail is not saved in the first server according to the second UID query response. .
  • the first server in response to the UID query command, searches for the UID of the mail with the same identifier as the first identifier from the mail saved by the first server, including: the first server responds to the UID query command. Finding the UID of the mail with the same identifier as the first identifier from the M second emails saved by the first server, M ⁇ 1; wherein the M second emails are in the emails saved by the first server, according to the emails The order of the save time is arranged in the last M-digit mail.
  • the method of the present application further includes: when the first server cannot recognize the UID query command, the first server sends a second UID query response to the email client.
  • the method of the present application further includes: after receiving the second UID query response sent by the first server, the email client sends an identifier query request to the first server, and the identifier query request is used for Obtaining the mail identifiers of the N second mails saved by the first server, and the N second mails are the mails saved by the first server, and are arranged in the last N digits according to the order of the mail storage time, N ⁇ 1;
  • the first server sends an identifier query response to the email client in response to the identifier query request, and identifies that the query response carries the mail identifiers of the N second emails; the email client sequentially traverses the N seconds in response to the identifier query response.
  • the mail is searched for the mail with the same identifier as the first identifier; if the mail identifier is the same as the first identifier, the email client determines that the first mail has been saved in the first server; if the mail identifier is not found and the first Identifying the same message, the email client determines that the first message was not saved in the first server.
  • the present application provides an email synchronization system for performing email synchronization in an email client, the system comprising: an email client and a first server.
  • the e-mail client is configured to send a user identity UID query command to the first server, where the UID query command carries a first identifier, where the first identifier is allocated by the email client for the first email, and is used to uniquely identify the first
  • the mail identifier of the mail the UID query command is used to query the UID of the mail identifier with the same identifier as the first identifier;
  • the first server is configured to search for the mail identifier and the first mail from the mail saved by the first server in response to the UID query command.
  • Identifying the UID of the same mail sending a first UID query response or a second UID query response to the email client according to the query result, the first UID query response carries the UID of the found mail, and the second UID query response is used for Instructing the first server not to save the first mail; the email client is further configured to determine, according to the first UID query response, that the first mail has been saved in the first server, or determine that the first server is not saved according to the second UID query response First email.
  • the first server is further configured to: in response to the UID query command, search for the UID of the mail with the same identifier as the first identifier from the M second emails saved by the first server, M ⁇ 1; wherein the M second emails are emails stored in the first server, and are arranged in the last M digits according to the order in which the emails are saved.
  • the first server is further configured to send a second UID query response to the email client when the first server cannot identify the UID query command.
  • the email client is further configured to send an identifier query request to the first server after receiving the second UID query response sent by the first server, where the identifier query request is used to obtain the first
  • the mail identifier of the N second mails saved by one server, and the N second mails are the mails saved by the first server, and arranged in the order of the last N digits according to the order of the mail storage time, N ⁇ 1;
  • the server is further configured to send an identifier query response to the email client in response to the identifier query request, and identify the mail identifier that carries the N second emails in the query response; and the email client is further configured to respond to the identifier query response.
  • the application provides a method for synchronizing emails for performing email synchronization in an email client.
  • the method includes: the email client sends an identifier query request to the first server, and the identifier query request is used for obtaining The mail identifier of the N second mails saved by the first server, and the N second mails are the mails saved by the first server, and arranged in the order of the last N digits according to the order of the mail storage time, N ⁇ 1;
  • the server sends an identifier query response to the email client in response to the identifier query request, and identifies that the query response carries the mail identifiers of the N second emails; the email client sequentially traverses the N second emails in response to the identifier query response.
  • the mail identifier is the same as the first identifier; if the mail identifier is the same as the first identifier, the email client determines that the first email has been saved in the first server; if the email identifier and the first identifier are not found The same message, the email client determines that the first message was not saved in the first server.
  • the present application provides an email synchronization system for performing email synchronization in an email client.
  • the system includes: an email client, configured to send an identifier query request to the first server, and identify the query request.
  • the N second mails are the mails saved by the first server, and are arranged in the last N digits according to the order of the mail storage time, N ⁇
  • the first server is configured to send an identifier query response to the email client in response to the identifier query request, and identify the mail identifier that carries the N second emails in the query response;
  • the email client is further configured to respond to the identifier
  • the query response sequentially traverses the N second emails to find the mail with the same identifier as the first identifier; if the mail identifier is the same as the first identifier, it is determined that the first email has been saved in the first server;
  • the mail identifies the same mail as the first identifier, and determines that the
  • the present application provides a computer storage medium, including computer instructions, when the computer instructions are run on a terminal, causing the terminal to perform the first, fourth, and sixth aspects and possible design methods thereof, the electronic The method of synchronizing emails executed by the mailbox client.
  • the present application provides a computer program product, when a computer program product is run on a terminal, causing the terminal to perform the first, fourth, and sixth aspects and possible design methods thereof, the email client The method of synchronizing the executed email.
  • FIG. 1 is a schematic diagram of an example of a network architecture applied to a method for synchronizing emails according to an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of an example of a network architecture applied to a method for synchronizing emails according to another embodiment of the present disclosure
  • FIG. 3 is a flowchart of a method for synchronizing an email according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of an example of a display interface of an electronic mailbox of a mobile phone according to another embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a hardware of a terminal according to another embodiment of the present disclosure.
  • FIG. 6 is a flowchart of a method for synchronizing an email according to another embodiment of the present disclosure.
  • FIG. 7A is a schematic diagram of an example of a display interface of an e-mail address of a mobile phone according to another embodiment of the present application.
  • FIG. 7B is a schematic diagram of an example of a network architecture applied to a method for synchronizing emails according to another embodiment of the present disclosure
  • FIG. 8 is a schematic diagram of an example of a network architecture applied to a method for synchronizing emails according to another embodiment of the present application.
  • FIG. 8B is a schematic diagram of an example of a display interface of an electronic mailbox of a mobile phone according to another embodiment of the present application.
  • FIG. 9 is a schematic diagram of an example of a display interface of an e-mail address of a mobile phone according to another embodiment of the present disclosure.
  • FIG. 10 is a flowchart of a method for synchronizing an email according to another embodiment of the present application.
  • FIG. 11 is a flowchart of a method for synchronizing an email according to another embodiment of the present application.
  • FIG. 12 is a flowchart of a method for synchronizing an email according to another embodiment of the present disclosure.
  • FIG. 13 is a flowchart of a method for synchronizing an email according to another embodiment of the present disclosure.
  • FIG. 14 is a flowchart of a method for synchronizing an email according to another embodiment of the present disclosure.
  • 15 is a schematic structural diagram 1 of an email client according to another embodiment of the present application.
  • FIG. 16 is a second schematic structural diagram of an email client according to another embodiment of the present disclosure.
  • first and second are used for descriptive purposes only, and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining “first” and “second” may include one or more of the features either explicitly or implicitly.
  • a plurality means two or more or more unless otherwise stated.
  • the method for synchronizing emails and the terminal provided by the embodiment of the present application, the email client is installed in the terminal, and the synchronization method of the email can be applied to the process of synchronizing emails to the server after the email client sends the email.
  • the email client in the embodiment of the present application refers to an email client.
  • FIG. 1 illustrates a network architecture of a mail transmission system 10 according to an embodiment of the present application.
  • the mail transmission system 10 can include at least two email clients (such as an email client 101 and an email client 102) and one or more mail servers 103.
  • the mail transmission system 10 is exemplified in FIG. 1 by taking the mail transmission system 10 as an example.
  • the email client in the embodiment of the present application is mainly used for sending and receiving emails.
  • the Email client in the embodiment of the present application may be an IMAP, an Authentication Post Office Protocol (APOP), a Post Office Protocol Version 3 (POP3), and a Simple Mail Transfer Protocol.
  • Software that sends and receives e-mails in any of the protocols such as Simple Mail Transfer Protocol (SMTP) or extended SMTP (Extended SMTP, ESMTP).
  • the format of the email address can be: username@domain name, such as Steven@outlook.com.
  • the user name is an e-mail address when the e-mail address is registered, and the e-mail address of the e-mail address is different from that of the e-mail address of the same domain name.
  • the email client in the embodiment of the present application may be a client of an embedded application (ie, a system application of the terminal) or a client of the downloadable application.
  • the embedded application is an application provided as part of the implementation of the terminal (such as the mobile phone 400 in FIG. 4 or FIG. 5).
  • the downloadable application is an application that can provide its own Internet Protocol Multimedia Subsystem (IMS) connection.
  • the downloadable application can be pre-installed in the terminal or can be downloaded and installed by the user. Third-party applications in .
  • the email client (such as the email client 101 and the email client 102) in the embodiment of the present application is installed in the terminal, and the terminal may be a personal computer (PC) or a mobile phone (such as the mobile phone in FIG. 4 or FIG. 5). 400), tablet computers, portable computers and other electronic devices that can be installed with an e-mail address.
  • the emails in the embodiments of the present application refer to emails unless otherwise specified.
  • the mail server in the embodiment of the present application is a device for managing mail transmission and reception.
  • the mail server 103 shown in FIG. 1 is used to transmit mail for the Email client 101 and the Email client 102.
  • at least one mail server 103 can receive the mail sent by the email client 101 and send the mail received by the email client 102.
  • the mail transmission system 10 shown in FIG. 1 may include a mail server.
  • the domain name of the email address of the email client 101 is different from the domain name of the email address of the email client 102, for example, the domain name of the email address of the email client 101 is "163.com”, and the email address of the email client 102 is The domain name is "outlook.com”, and the mail transmission system 10 shown in FIG. 1 may include at least two mail servers (such as a 163 mail server and an outlook mail server).
  • the Email client 101 shown in FIG. 1 is Alice's Email client, and its email address is Alice@a.org; the Email client 102 shown in FIG. It is Bob's email client and its email address is Bob@b.org.
  • the embodiment of the present application takes the email client a to the email client 102 as an example, and exemplifies the transmission process of the email.
  • the domain name "a.org" of the email address of the email client 101 is different from the domain name "b.org" of the email address of the email client 102; therefore, as shown in FIG. 2, the mail transmission system shown in FIG. 10 may include a mail server 1031 and a mail server 1032.
  • the mail server 1031 is a device provided by the Internet service provider of the Email client 101 for managing the mail transmission and reception management
  • the mail server 1032 is a device provided by the Internet service provider of the Email client 102 for managing the mail transmission and reception management. .
  • the Email client 101 can transmit the mail a in the email client 101 to the mail server 1031 by using a mail transfer protocol such as the RFC (Request For Comments) 5321 protocol.
  • the mail server 1031 determines the destination address of the mail a (such as Bob@b.org), and obtains the domain name in the destination address (such as "b.org"), and then converts the obtained domain name into the domain name system.
  • DNS Domain Name System
  • the full domain name of the domain name "b.org” can be "mx.b.org".
  • the mail server 1031 can transmit the mail a to the mail server 1032 corresponding to the converted complete domain name "mx.b.org", and the mail server 1032 can send the mail a to the mail client 102 whose mail address is Bob@b.org.
  • the mail server 1031 can transmit the mail a to the mail server 1032 by using the SMTP protocol.
  • the mail server 1031 shown in FIG. 2 may include the first server and the second server in the embodiment of the present application.
  • the first server in the embodiment of the present application may be the IMAP server shown in FIG. 3, and the second server may be the SMTP server shown in FIG.
  • the first server and the second server in the embodiment of the present application may be the same server, and the server integrates all functions of the IMAP server and the SMTP server.
  • the first server and the second server in the embodiment of the present application may also be other mail servers, which are not limited herein.
  • the email client 101 can create the email a and save the email a in the email client. And, the email client can also classify the mail a in the outbox of the email client.
  • the Email client then sends a message a to the second server, such as the SMTP server.
  • the SMTP server receives and verifies the mail a, it sends a mail a to the first server (such as an IMAP server).
  • the IMAP server can send the mail a to the mail server 1032 according to the destination address of the mail a, and the mail server 1032 sends the mail a to the mail client 102.
  • FIG. 3 shows an example in which the IMAP server saves the mail a as an example of the configuration of the IMAP server.
  • the email client 102 can send a message to the mail server 1032 indicating that the mail a is successfully sent, and the mail server 1032 can send the mail client 101 through the IMAP server and the SMTP server. A message is sent to indicate that the mail a was successfully sent. After the email client 101 determines that the mail a is successfully sent, the mail a can be moved from the outbox to the sent folder.
  • the emails sent by the email clients are synchronized with the emails sent by the mail server; after the email client 101 determines that the email a is successfully sent, the email a can also be added to the synchronization.
  • Update the table the mail in the synchronization update table is used to upload to the IMAP server.
  • the email client 101 can periodically upload the mail in the synchronization update table (including the mail a) to the IMAP server, and delete the mail that has been uploaded to the IMAP server in the synchronous update table.
  • the IMAP server can store the email a uploaded by the email client 101, so that when the user logs in to the same email address using other email clients, the other email client can download the email a from the IMAP server.
  • the IMAP server can assign a UID to each message it receives and saves.
  • the IMAP server receives and stores two mails a (including mail a received from the SMTP server and mail a received from the email client 101), and the IMAP server can allocate two mails a. Seal different UIDs (such as UID1 and UID2).
  • the email client 101 can download two mails a with different UIDs from the IMAP server. Since the UIDs of the two mails a are different, the email client 101 does not merge them.
  • the email client 101 can be in the email client.
  • the sent email interface of 101 displays two identical emails a.
  • the sent mail interface 401 displayed by the mobile phone 400 includes two identical mails, namely, a mail 402 and a mail 403.
  • the recipient of the mail 402 and the recipient of the mail 403 are both Bob, and the mail subject of the mail 402 and the mail subject of the mail 403 are both "meeting notice, 13:00 pm", mail The transmission time of 402 and the transmission time of mail 403 are both "2017/9/13-08:10".
  • the mail body of the mail 402 and the mail 403 are also identical (not shown in FIG. 4). It can be seen from the above that the email client can download two emails from the IMAP server, and the email client can display the same two emails in the sent mail list, which increases the resource load of the email client and also reduces the email load. The efficiency of the email client to send and receive email.
  • the method and the terminal for synchronizing the e-mail provided by the embodiment of the present application, by using the technical solution of the embodiment of the present application, the same mail is not saved in the IMAP server, so the email client performs the mail synchronization. , it will not download multiple identical emails, which can reduce the resource load of the email client and improve the efficiency of email sending and receiving by the email client. Since the email client does not download multiple identical emails when synchronizing mail, it does not display multiple identical emails, which can improve the user experience.
  • the execution body of the synchronization method of the email provided by the embodiment of the present application may be a mail synchronization device, and the mail synchronization device may be a terminal (such as the mobile phone 400 shown in FIG. 4 or FIG. 5) installed with an email client, or installed.
  • a method for synchronizing emails provided by the email client in the terminal is taken as an example to describe a method for synchronizing emails provided by the present application.
  • the present application provides a method for constructing a terminal by using the mobile phone 400 shown in FIG. 4 as an example.
  • the terminal provided by the present application can be used to implement the method implemented in the embodiments of the present application. Only parts related to the present application are shown, and specific technical details are not disclosed, please refer to embodiments of the present invention.
  • the mobile phone 400 is used as an example of the terminal.
  • the mobile phone 400 may specifically include: a processor 501, a radio frequency (RF) circuit 502, a memory 503, a touch screen 504, a Bluetooth device 505, and one or more sensors 506.
  • RF radio frequency
  • These components can communicate over one or more communication buses or signal lines (not shown in Figure 5).
  • FIG. 5 does not constitute a limitation to a handset, and that handset 400 may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements.
  • the processor 501 is a control center of the mobile phone 400.
  • the various parts of the mobile phone 400 are connected by various interfaces and lines, and the mobile phone 400 is executed by running or executing an application stored in the memory 503 and calling data stored in the memory 503.
  • the processor 501 can create a mail, send a mail, or receive a mail in response to a user's operation in an email client.
  • processor 501 can include one or more processing units.
  • the processor 501 may further include a fingerprint verification chip for verifying the collected fingerprint.
  • the radio frequency circuit 502 can be used to receive and transmit wireless signals during transmission or reception of information or calls.
  • the radio frequency circuit 502 can process the downlink data of the base station and then process it to the processor 501; The data is sent to the base station.
  • radio frequency circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency circuit 502 can also communicate with other devices through wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to global mobile communication systems, general packet radio services, code division multiple access, wideband code division multiple access, long term evolution, email, short message service, and the like.
  • the memory 503 is used to store applications and data, and the processor 501 executes various functions and data processing of the mobile phone 400 by running applications and data stored in the memory 503.
  • the memory 503 mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.); the storage data area can be stored according to the use of the mobile phone. Data created at 400 hours (such as audio data, phone book, etc.).
  • the memory 503 may include a high speed random access memory (RAM), and may also include a nonvolatile memory such as a magnetic disk storage device, a flash memory device, or other volatile solid state storage device.
  • the memory 503 can store various operating systems, for example, developed by Apple. Operating system, developed by Google Inc. Operating system, etc.
  • the above memory 503 may be independent and connected to the processor 501 through the above communication bus; the memory 503 may also be integrated with the processor 501.
  • the touch screen 504 may specifically include a touch panel 504-1 and a display 504-2.
  • the touchpad 504-1 can collect touch events on or near the user of the mobile phone 400 (such as the user using a finger, a stylus, or the like on the touchpad 504-1 or on the touchpad 504.
  • the operation near -1), and the collected touch information is transmitted to other devices (for example, processor 501).
  • the touch event of the user in the vicinity of the touchpad 504-1 may be referred to as a hovering touch; the hovering touch may mean that the user does not need to directly touch the touchpad in order to select, move or drag a target (eg, an icon, etc.) , and only the user is located near the device to perform the desired function.
  • the touch panel 504-1 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • a display 504-2 can be used to display information entered by the user or information provided to the user as well as various menus of the handset 400.
  • the display 504-2 can be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the touchpad 504-1 can be overlaid on the display 504-2, and when the touchpad 504-1 detects a touch event on or near it, it is transmitted to the processor 501 to determine the type of touch event, and then the processor 501 can provide a corresponding visual output on display 504-2 depending on the type of touch event.
  • the touchpad 504-1 and the display 504-2 are implemented as two separate components to implement the input and output functions of the handset 400, in some embodiments, the touchpad 504 can be 1 is integrated with display screen 504-2 to implement input and output functions of handset 400. It is to be understood that the touch screen 504 is formed by stacking a plurality of layers of materials. In the embodiment of the present application, only the touch panel (layer) and the display screen (layer) are shown, and other layers are not described in the embodiment of the present application. .
  • the touch panel 504-1 may be disposed on the front surface of the mobile phone 400 in the form of a full-board
  • the display screen 504-2 may also be disposed on the front surface of the mobile phone 400 in the form of a full-board, so that the front side of the mobile phone can be borderless. Structure.
  • the mobile phone 400 can also have a fingerprint recognition function.
  • the fingerprint reader 512 can be configured on the back of the handset 400 (eg, below the rear camera) or on the front side of the handset 400 (eg, below the touch screen 504).
  • the fingerprint recognizer 512 can be configured in the touch screen 504 to implement the fingerprint recognition function, that is, the fingerprint recognizer 512 can be integrated with the touch screen 504 to implement the fingerprint recognition function of the mobile phone 400.
  • the fingerprint identifier 512 is disposed in the touch screen 504 and may be touched. A portion of the touch screen 504 can also be configured in the touch screen 504 in other manners.
  • the main component of the fingerprint identifier 512 in the embodiment of the present application is a fingerprint sensor, which can employ any type of sensing technology, including but not limited to optical, capacitive, piezoelectric or ultrasonic sensing technologies.
  • the handset 400 can also include a Bluetooth device 505 for enabling data exchange between the handset 400 and other short-range devices (eg, cell phones, smart watches, etc.).
  • the Bluetooth device in the embodiment of the present application may be an integrated circuit or a Bluetooth chip or the like.
  • the handset 400 can also include at least one type of sensor 506, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display of the touch screen 504 according to the brightness of the ambient light, and the proximity sensor may turn off the power of the display when the mobile phone 400 moves to the ear.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.
  • the mobile phone 400 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Give a brief description.
  • Wi-Fi device 507 can also function as a Wi-Fi wireless access point, and can provide Wi-Fi network access to other devices.
  • the positioning device 508 is configured to provide a geographic location for the mobile phone 400. It can be understood that the positioning device 508 can be specifically a receiver of a positioning system such as a Global Positioning System (GPS) or a Beidou satellite navigation system, or a Russian GLONASS. After receiving the geographical location transmitted by the positioning system, the positioning device 508 sends the information to the processor 501 for processing, or sends it to the memory 503 for storage. In still other embodiments, the positioning device 508 can also be a receiver of an Assisted Global Positioning System (AGPS) that assists the positioning device 508 in performing ranging and positioning services by acting as a secondary server.
  • AGPS Assisted Global Positioning System
  • the secondary location server provides location assistance over a wireless communication network in communication with a location device 508 (i.e., a GPS receiver) of the device, such as handset 400.
  • the positioning device 508 can also be a Wi-Fi access point based positioning technology. Since each Wi-Fi access point has a globally unique Media Access Control (MAC) address, the device can scan and collect the surrounding Wi-Fi access points when Wi-Fi is turned on. The broadcast signal, so the MAC address broadcasted by the Wi-Fi access point can be obtained; the device sends the data (such as the MAC address) capable of indicating the Wi-Fi access point to the location server through the wireless communication network, and is retrieved by the location server. The geographic location of each Wi-Fi access point, combined with the strength of the Wi-Fi broadcast signal, calculates the geographic location of the device and sends it to the location device 508 of the device.
  • MAC Media Access Control
  • Audio circuitry 509, speaker 513, microphone 514 can provide an audio interface between the user and handset 400.
  • the audio circuit 509 can transmit the converted electrical data of the received audio data to the speaker 513 for conversion to the sound signal output by the speaker 513; on the other hand, the microphone 514 converts the collected sound signal into an electrical signal by the audio circuit 509. After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 502 for transmission to, for example, another mobile phone, or the audio data is output to the memory 503 for further processing.
  • Peripheral interface 510 for providing various interfaces to external input/output devices (eg, keyboard, mouse, external display, external memory, subscriber identity module card, etc.). For example, it is connected to the mouse through a Universal Serial Bus (USB) interface, and is connected to a Subscriber Identification Module (SIM) card provided by the service provider through a metal contact on the card slot of the subscriber identity module. . Peripheral interface 510 can be used to couple the external input/output peripherals described above to processor 501 and memory 503.
  • USB Universal Serial Bus
  • SIM Subscriber Identification Module
  • the mobile phone 400 can communicate with other devices in the device group through the peripheral interface 510.
  • the peripheral interface 510 can receive display data sent by other devices for display, and the like. limit.
  • the mobile phone 400 can also include a power supply device 111 (such as a battery and a power management chip) that supplies power to various components.
  • the battery can be logically connected to the processor 501 through the power management chip to manage charging, discharging, and power management through the power supply device 111. And other functions.
  • the mobile phone 400 may further include a camera (front camera and/or rear camera), a flash, a micro projection device, a near field communication (NFC) device, and the like, and details are not described herein.
  • a camera front camera and/or rear camera
  • a flash a flash
  • micro projection device a micro projection device
  • NFC near field communication
  • the embodiment of the present application provides a method for synchronizing an e-mail.
  • the method for synchronizing the e-mail is applied to an email client installed in the terminal.
  • the first server is an IMAP server
  • the second server is an SMTP server.
  • the synchronization method of the above email is explained. As shown in FIG. 6, the method for synchronizing the email includes steps 601 to 616:
  • Step 601 The email client 101 creates a first mail.
  • FIG. 7A illustrates a schematic diagram of an example of a display interface of an email client provided by the present application.
  • the display interface 701 shown in (a) of FIG. 7A includes a "new" button 702, an "inbox” button 703, an “outbox” button 704, and a "sent” button 705, and the like.
  • the "New” button 702 is used to trigger the Email client 101 to create a new mail.
  • the "Inbox” button 703 corresponds to the inbox of the Email client 101, and the inbox of the Email client 101 is used to store emails sent by the other Email client 101 to the Email client 101.
  • the "Outbox” button 704 corresponds to the draft box of the Email client 101, and the draft box of the Email client 101 is used to save the mail to be sent.
  • the "sent” 705 corresponds to the sent mail box of the email client 101, and the mail box of the email client 101 is used to store the mail that the email client 101 has sent.
  • the email client 101 can display the creation page of the new mail in response to the user clicking the "new" button 702, and then receive the "recipient email address” and the "mail subject” entered by the user on the creation page of the new mail. "" and "mail body” and other information, create a new mail (that is, the first mail above).
  • Step 602 The email client 101 saves the first email and classifies the first email in the outbox.
  • the email client 101 After the email client 101 creates the first email, the email may be saved in the email client 101 and the first email is classified in the outbox.
  • the Email client 101 can also display the first mail in the outbox in response to an operation entered by the user for instructing the email client 101 to display the outbox. For example, assume that the email address of the recipient of the first email is Susan@163.com. Taking the mobile phone 400 as a terminal as an example, after the first client mail is saved by the email client 101 in the mobile phone 400, the "outbox" shown in (a) of FIG. 7A is used. In 704, you can add a message to be sent.
  • Step 603 The email client 101 sends the first email, where the first email carries the first identifier.
  • the first identifier is used to identify the first mail.
  • the email client 101 can send the first mail to the SMTP server using an RFC related protocol.
  • the email includes a MID field.
  • the first identifier in the embodiment of the present application may be carried in the MID field of the first email.
  • the email client may assign a mail identifier (ie, MID) for each email sent by the email client 101 to uniquely identify the email.
  • a mail identifier ie, MID
  • the first identifier carried in the first email may be a mail identifier that is allocated to the first email by the email client 101 to uniquely identify the first email when the first email is created; or the first identifier may be It is a mail identifier that is allocated to the first mail when the email client 101 sends the first mail, and can uniquely identify the first mail.
  • the first identifier in the embodiment of the present application may be that the email client 101 adopts a preset algorithm according to information such as “recipient email address”, “mail subject”, and “mail body” of the first email. (as in the hash algorithm) calculated.
  • the first identifier may be related to the email address of the email client and the terminal of the email client 101, such as an Internet Protocol (IP) address or a MAC address, combined with the first email.
  • IP Internet Protocol
  • Information (such as "recipient's email address", "mail subject” and "mail body” information) is calculated using a preset algorithm.
  • the method for the email client 101 to generate the first identifier includes, but is not limited to, the method in the above example.
  • the foregoing first identifier is not limited to the specific method for generating the first identifier by the email client 101 as long as the first email can be uniquely identified.
  • the MID in the embodiment of the present application is different from the UID allocated by the IMAP server for the mail.
  • the email client 101 assigns a first identifier to the first email, such as MID-1
  • the first email always carries the MID-1 that can uniquely identify the first email, and the email client 101 or other
  • the device (such as an IMAP server or SMTP server) will no longer assign another MID to the first message.
  • the IMAP server can assign a UID to the first email each time the first email is saved.
  • the IMAP server receives the first email forwarded by the SMTP server, and may assign a UID to the first email, such as UID-1.
  • the IMAP server receives the first email sent by the email client 101 for performing email synchronization.
  • the first mail is then assigned a UID, such as UID-2, which is different from UID-2.
  • UID-2 such as UID-2
  • the first email that is allocated by the email client 101 for the first email can uniquely identify the first email. Therefore, even if the IMAP server receives the first email sent by the SMTP, it is the first email. Assigning a UID, after receiving the first email sent by the email client 101, assigning another UID to the first email, that is, the IMAP server assigns two different UIDs to the same first email; the email client 101 or other device (IMAP server or SMTP server) can also be based on the first identifier I found the first message.
  • the email client 101 can send the first email carrying the first identifier to the SMTP server by using the RFC protocol in response to the user clicking the "send" button in the creation page of the new mail, and forwarding the first email by the SMTP server. .
  • Step 604 The SMTP server receives the first email carrying the first identifier.
  • the SMTP server After the SMTP server receives any email (such as the first email) sent by the email client 101, whether the first email is a spam, whether the first email carries a network virus, and sends the first email. Whether the email address of the email address is a legitimate email address or the like is verified. After the first mail verification is passed, the SMTP server may send the first mail to the IMAP server, that is, step 605 is performed. If the verification fails, the SMTP server can discard the message.
  • any email such as the first email
  • the SMTP server may send the first mail to the IMAP server, that is, step 605 is performed. If the verification fails, the SMTP server can discard the message.
  • Step 605 The SMTP server sends the first mail carrying the first identifier to the IMAP server.
  • Step 606 The IMAP server receives the first email, and determines whether the configuration information of the IMAP server indicates that the IMAP server saves the email from the SMTP server.
  • the configuration information of the IMAP server may be the default configuration information of the IMAP server (that is, the configuration information of the factory settings).
  • the configuration information may be configuration information set by the user for setting the email address for instructing the IMAP server to process the email transmission by the IMAP server.
  • the configuration information may be configuration information set by the server administrator for the IMAP server. This embodiment of the present application does not limit this.
  • step 607-608 may be continued; when the configuration information of the IMAP server does not indicate that the IMAP server saves the mail from the SMTP server, or the IMAP server When the configuration information indicates that the IMAP server does not save the mail from the SMTP server, step 608 can be directly executed without performing step 607:
  • Step 607 The IMAP server saves the first email carrying the first identifier.
  • the IMAP server can save the first mail and the mail server corresponding to the destination address of the first mail (the mail server 1032 shown in FIG. 6) ) Send the first message.
  • the IMAP server can also assign a UID to the first mail.
  • Step 608 The IMAP server sends the first email carrying the first identifier to the email client 102 through the mail server 1032.
  • the IMAP server can directly send the first mail to the mail server 1032 without saving the first mail. After receiving the first email, the mail server 1032 can send the first email to the email client 102.
  • Step 609 The email client 102 sends a first message to the IMAP server through the mail server 1032, where the first message is used to indicate that the first mail is successfully sent.
  • Step 610 The IMAP server sends a first message to the email client 101 through the SMTP server, where the first message is used to indicate that the first mail is successfully sent.
  • the IMAP server may send a first message to the SMTP server to indicate that the first mail is successfully sent; after receiving the first message, the SMTP server may forward the first message to the email client 101.
  • Step 611 When receiving the first message, the email client 101 moves the first mail from the outbox to the sent folder.
  • the email client 101 can determine that the first email is successfully sent, and then move the first email from the outbox to the sent folder to prompt the user that the first email has been successfully sent. For example, suppose the recipient of the first email sent by the email client 101 in the mobile phone 400 is Susan@163.com, the subject of the email is "activity notification", and the sending time is "2017/9/14-09:12". As shown in (b) of FIG. 7A, the sent interface 706 of the handset 400 can display the first email 707.
  • Step 612 The email client 101 determines, according to the first identifier, whether the first mail has been saved in the IMAP server.
  • the email client 101 assigns a first identifier to the first email that can uniquely identify the first email. If the first email has been saved in the IMAP server, the first email that is saved in the IMAP server is also carried. The first identifier is displayed; therefore, the email client 101 can query whether the first email has been saved in the IMAP server according to the first identifier.
  • step 612 may perform step 612 before uploading the first email to the IMAP server, and then decide whether to upload the first email to the IMAP server according to the query result; or the email client 101 may receive the above. After the first message, step 612 is performed.
  • the email client 101 does not send the first email to the IMAP server; if the first email is not saved in the IMAP server, the email client 101 can send the first email to the IMAP server.
  • Step 613 the email client 101 sends the first email to the IMAP server.
  • Step 614 The IMAP server receives and saves the first mail.
  • the user can log in to the email address "Alice@126.com” in the email client 101 in the mobile phone 400.
  • the user can also log in to "Alice@126.com” in other Email client 101.
  • the user can log in to "Alice@126.com” at the Email client 101 in the mobile phone 800.
  • the user is in the email client 101 "Alice@126.com" in the mobile phone 400, and the email client 101 in the mobile phone 400 can send an email to Susan through the SMTP server, the IMAP server, and the mail service 1302.
  • the client ie, the email client 102 sends a message 707.
  • the transmitted interface 706 of the mobile phone 400 can display the first mail 707.
  • the email client 101 in the mobile phone 400 sends an email 707 to Susan's email client, as shown in FIG. 8A, the user logs in the email address "Alice@126.com" in the email client 101 in the mobile phone 800.
  • the email client 101 in the mobile phone 800 can send the mail 802 to Ben's Email client (ie, the Email client 102) through the SMTP server, the IMAP server, and the mail service 1302. Subsequently, as shown in FIG. 8B, the sent interface 801 of the mobile phone 800 can display the mail 802.
  • the mail 802 cannot be displayed in the transmitted interface 706 of the mobile phone 400.
  • the mail 707 cannot be displayed in the transmitted interface 801 of the mobile phone 800.
  • the email client 101 since the email client 101 saves the first email after sending the first email, the email client 101 can periodically download the sent email corresponding to the email from the IMAP server. To synchronize the sent mail.
  • the mail that is saved in the IMAP server for synchronizing the mail is referred to as a synchronous mail.
  • the method of the present application can also Including steps 615-616:
  • Step 615 The email client 101 downloads the sent email corresponding to the email address from the IMAP server.
  • the IMAP server can save the sent email of the email client for each email client (an email client with a fixed email address).
  • the mail synchronization time in the embodiment of the present application may be a preset fixed time point (such as 13:00 every Wednesday, or 12:00 every day, etc.); or, the mail synchronization time may be that the user is setting the email client.
  • the fixed time point set for the Email client (such as 9:00 every day); or, the mail synchronization time is a fixed time point configured in the IMAP server. This application does not limit this.
  • the email client can actively send a mail synchronization request to the IMAP server when the mail synchronization time arrives, to download the synchronization mail corresponding to the email client from the IMAP server.
  • the email synchronization request may carry the time when the email client last synchronizes the email, so that the IMAP server can send the synchronization email saved by the IMAP server to the email client after the time limit.
  • the IMAP server may send the synchronized mail that has been saved in the IMAP server after the mail synchronization time arrives after the mail synchronization time arrives; thus, no matter which email client login email address, the email is sent.
  • the client can receive the synchronization mail sent by the IMAP server.
  • the Email client since the Email client will only send the first email to the IMAP server when the first email is not saved by the IMAP server; therefore, the IMAP server only saves the first email. In this way, the email client can only download a first email from the IMAP server when performing mail synchronization, and it is not possible to download two identical first emails from the IMAP server.
  • Step 616 the email client 101 updates the mail in the sent folder of the email.
  • the email client downloads at least one synchronization email from the IMAP server
  • the following operations are performed for each synchronization email: comparing the MID of the synchronization email with the MID of the sent email saved by the email client; if the synchronization email has the MID and the email If the MID of each sent mail saved by the client is different, the synchronous mail is saved in the email client, and the synchronous mail is displayed in the sent folder of the email client; if the MID of the synchronous mail and the email client are saved If the MID of any sent mail is the same, the synchronization mail is discarded.
  • the synchronization mail 707 sent by the mobile phone 400 and the synchronous mail 802 sent by the mobile phone 800 can be saved in the IMAP server.
  • the transmitted interface shown in (a) of FIG. 9 can be displayed.
  • the transmitted interface shown in (a) of FIG. 9 includes a sync mail 707 and a sync mail 802.
  • the transmitted interface shown in (b) of FIG. 9 can be displayed.
  • the transmitted interface shown in (b) of FIG. 9 includes a sync mail 707 and a sync mail 802.
  • the present invention provides an email synchronization method in which an email client can assign a first email to a MID for uniquely identifying the first email. Moreover, when uploading an email to the IMAP server, it may first query whether the IMAP server has saved the email according to the MID of the email; when the IMAP server has saved the email, the email is not uploaded to the IMAP server; when the IMAP server is not saved The message is uploaded to the IMAP server only when the message is received. In this way, only one email is saved in the IMAP server, and when the email client synchronizes the mail, the same email will not be downloaded, which can reduce the resource load of the email client and improve the email. The efficiency of the client sending and receiving emails. Moreover, when the email client synchronizes mail, multiple emails will not be downloaded, so multiple emails will not be displayed, which can improve the user experience.
  • the email client 101 may instruct the IMAP server to query the UID of the mail identifier with the same identifier as the first identifier by sending a UID query command to the IMAP server, according to the query result.
  • step 612 shown in FIG. 6 may include step 1001 - step 1006:
  • Step 1001 The email client 101 sends a UID query command to the IMAP server, where the UID query command carries a first identifier, where the UID query command is used to instruct the IMAP server to query the UID of the mail with the same email identifier as the first identifier.
  • the email client 101 may send a UID query command to the IMAP server according to the RFC protocol, where the UID query command is used to instruct the IMAP server to query the UID of the mail with the same email identifier as the first identifier.
  • Step 1002 The IMAP server receives the UID query command, and in response to the UID query command, searches for the UID of the mail with the same identifier as the first identifier from the email saved by the IMAP server.
  • the format of the UID query command in the embodiment of the present application is as follows: UID SEARCH HEADER MID ⁇ *@email.android.com>.
  • the content "*@email.android.com" in ⁇ > is an example of a MID given in the present application.
  • the format of the UID query command supported by the mail server of different types of emails is different.
  • most mail servers such as NetEase 163 Mailbox and NetEase 126 Mailbox support UID SEARCH HEADER MID ⁇ *@email.android.com> to find the UID of the mail; and some mail boxes (such as Hotmail and Outlook)
  • the server does not support the UID query command in the above format to find the UID of the mail.
  • the present application also provides a format of a UID query command: UID SEARCH (HEADER MID ⁇ *@email.android.com>).
  • UID SEARCH (HEADER MID ⁇ *@email.android.com>).
  • the content "*@email.android.com” in ⁇ > is an example of a MID given in the present application.
  • Mail servers such as Hotmail mailboxes and Outlook mailboxes support UID SEARCH (HEADER MID ⁇ *@email.android.com>) to find the UID of the email.
  • step 1002 if the IMAP server finds the UID of the mail with the same identifier as the first identifier, the process proceeds to step 1003 - step 1004. If the IMAP server does not find the UID of the mail with the same mail identifier as the first identifier, Continue to step 1005 - step 1006:
  • Step 1003 The IMAP server sends a first UID query response to the email client 101, where the first UID query response carries the UID of the found mail, and the first UID query response is used to indicate that the first mail has been saved in the first server. .
  • Step 1004 The email client 101 receives the first UID query response, and saves the UID carried in the first UID query response.
  • the terminal may determine that the first email has been saved in the IMAP server, and the terminal does not send the first email to the IMAP server.
  • Step 1005 The IMAP server sends a second UID query response to the terminal, where the second UID query response is used to indicate that the first mail is not saved in the IMAP server.
  • Step 1006 The email client 101 receives the second UID query response sent by the IMAP server.
  • the email client 101 may determine that the first email is not saved in the IMAP server, and may send the first email to the IMAP server, that is, proceed to step 613.
  • the email client 101 can instruct the IMAP server to query the UID of the mail with the same identifier as the first identifier by sending a UID query command to the IMAP server to determine whether the first email is saved in the IMAP server.
  • the UID query command is a command of the UID SEARCH HEADER MID ⁇ *@email.android.com> format (referred to as the first format).
  • the UID query command is a UID SEARCH (HEADER MID ⁇ *@email.android.com>) format (referred to as the second format) command.
  • the email client 101 can selectively send the UID query command supported by the IMAP server to the IMAP server in the UID query command of the above two formats.
  • the Email client 101 does not necessarily know the format of the UID query command supported by the IMAP server. If the UID query command sent by the Email client 101 to the IMAP server is a command that the IMAP server does not support, the IMAP server will not reply to the Email client 101 if the first email is already stored in the IMAP server. Query response.
  • the email client 101 when the email client 101 does not know the format of the UID query command supported by the IMAP server, the email client 101 may first send the first format.
  • the UID query command instructs the IMAP server to query the UID of the mail with the same identifier as the first identifier. If the email client 101 receives the second UID query command sent by the IMAP server, it indicates that the IMAP server does not save the first email, or the IMAP server does not support the UID query command in the first format to find the UID of the email.
  • the email client 101 can continue to send a UID query command of the second format to the IMAP server to instruct the IMAP server to query the UID of the mail with the same identifier as the first identifier. If the email client 101 receives the second UID query command sent by the IMAP server, the IMAP server may be considered as not saving the first email.
  • the terminal After the email client 101 receives the UID query command of the first format or sends the UID query command of the second format, if the email client 101 receives the first UID query command sent by the IMAP server, the terminal does not Send the first message to the IMAP server.
  • the email client 101 may also send the UID query command in the second format, and then send the UID query command in the first format after receiving the second UID query command.
  • the order of sending the UID query command and the UID query command of the first format is not limited.
  • the email client 101 first sends the UID query command of the first format, and after receiving the second UID query command, sends the UID query command of the second format as an example, for the email.
  • the method for the client 101 to query whether the first mail has been saved in the IMAP server is exemplified.
  • step 1001 shown in FIG. 10 may be replaced with step 1001a
  • step 1002 shown in FIG. 10 may be replaced with step 1002a.
  • the method of the present application may further include step 1001b, step 1002b, and step 1003 - step 1004 or step 1005 - step 1006:
  • Step 1001a the email client 101 sends a UID query command of the first format to the IMAP server.
  • Step 1001b the email client 101 sends a UID query command of the second format to the IMAP server.
  • step 1001a and the step 1001b may refer to the related content in the step 1001, and details are not described herein again.
  • Step 1002a The IMAP server receives the UID query command of the first format, and responds to the UID query command of the first format, and searches for the UID of the mail with the same identifier as the first identifier from the email saved by the IMAP server.
  • Step 1002b The IMAP server receives the UID query command of the second format, and responds to the UID query command of the second format, and searches for the UID of the mail with the same identifier as the first identifier from the email saved by the IMAP server.
  • step 1002a and step 1002b may refer to related content in step 1002, and details are not described herein again.
  • the query mode of the email client 101 instructing the IMAP server to query the UID of the mail identifier with the same identifier as the first identifier by using the UID query command in the first format described above is called
  • the email client 101 instructs the IMAP server to query the UID of the mail with the same identifier as the first identifier by using the UID query command of the second format described above is called a secondary query.
  • the email client 101 may also first send the UID query command of the second format, and after receiving the second UID query command, send the UID query command of the first format.
  • the IMAP server may search for the mail identifier and the first identifier from the M second emails saved by the IMAP server in response to the UID query command (the UID query command of any format).
  • the email client 101 may send a format UID query command (such as a UID query command in the second format) to the IMAP server, and if the second UID query command is received, the email client 101 may continue to the IMAP server.
  • Another format UID query command (such as the UID query command in the first format) is sent to determine whether the first mail is saved in the IMAP server. In this way, the problem that the query fails due to the UID query command sent by the first time is not supported, and the accuracy of the judgment result obtained by the email client 101 can be improved.
  • the IMAP server may not support the UID query command in the above two formats to query the UID.
  • the IMAP server may not support querying the UID of the message based on the MID of the message.
  • the email client 101 can obtain the mail identifiers of the N second emails saved by the IMAP server from the IMAP server, and then traverse the mail identifiers of the N second emails in order to find the email identifier and the first identifier. The same mail; when the mail ID is the same as the first ID, it is determined that the first mail has been saved in the IMAP server.
  • N second mails are mails stored in the first server, and are arranged in the last N digits in the order of the mail storage time, and N ⁇ 1.
  • N the number of the mail storage time
  • N the number of the mail storage time
  • N the number of the mail storage time
  • N the number of the mail storage time
  • N the number of the mail storage time
  • Step 1201 The email client 101 sends an identifier query request to the IMAP server, where the identifier query request is used to obtain the mail identifier of the N second emails saved by the IMAP server.
  • the identifier query request in the embodiment of the present application may also be sent by the email client 101 to the IMAP server based on the RFC protocol.
  • the identifier query request may carry a mailbox identifier of the email address that the terminal is logged in, such as an email address.
  • Step 1202 The IMAP server receives the identifier query request, and obtains the mail identifiers of the N second emails.
  • the IMAP server After receiving the identifier query request, the IMAP server can read the N second emails saved by the IMAP server, and obtain the mail identifiers and UIDs of the N second emails.
  • Table 2 it shows an example of the mail identity and UID of the N second mails acquired by the IMAP server.
  • the time when the IMAP server stores the first second mail (referred to as the storage time of the first second mail) is earlier than the storage time of the second second mail
  • the storage time of the N-1 second mails is earlier than the storage time of the Nth second mail.
  • Step 1203 The IMAP server sends an identifier query response to the email client 101, where the identifier query response carries the mail identifiers of the N second emails.
  • the identifier query response may further carry a UID of the N second emails.
  • Step 1204 The email client 101 sequentially traverses the N second emails to find the mail with the same email identifier as the first identifier.
  • the email client 101 can first determine whether the mail identifier of the Nth second mail shown in Table 2 is the same as the first identifier according to the storage time of the N second emails.
  • the mail identifier of the Nth second mail is the same as the first identifier
  • the UID of the Nth second mail is saved, and the first mail is saved in the IMAP server.
  • the mail identifier of the Nth second mail is different from the first identifier, it is sequentially determined according to the same method whether the mail identifier of the N-1 second mail is the same as the first identifier, ... the first second mail Whether the mail identifier is the same as the first identifier to determine whether the first mail is saved in the IMAP server.
  • step 1204 shown in FIG. 12 may include step 1301 - step 1304:
  • Step 1302 Determine whether the count value i of the loop counter is greater than or equal to zero.
  • step 613 when the count value i of the loop counter is greater than or equal to 0, S1303 is continued; when the count value i of the loop counter is less than 0, step 613 is continued.
  • Step 1303 Determine whether the mail identifier of the i+1th second mail is the same as the first identifier, and the i+1 second mail is the N second mails, arranged in the order of the mail storage time. +1 bit of mail.
  • the terminal does not send the first mail to the IMAP server; when the mail identifier of the i+1th second mail is different from the first identifier , proceed to step 1304:
  • Step 1304 the count value of the loop counter i--, and continue to perform step 1302.
  • step 1302 determines that the count value 1 of the loop counter is greater than 0.
  • the email client 101 continues to perform step 1302, and determines that the count value 0 of the loop counter is equal to 0.
  • the IMAP server in response to the UID query command, searches for the mail with the same identifier as the first identifier from the M second emails saved by the IMAP server, and may refer to step 1301 - step. 1304, this application will not be described in detail herein.
  • the email client 101 can determine that the first email has been saved in the IMAP server, and the mail sending process of the email client 101 ends; when the email identifier is not found and the first When the same email is identified, the email client 101 may determine that the first email is not saved in the IMAP server, and then proceeds to step 613.
  • the IMAP server does not support the UID query command in the above two formats, the UID is queried.
  • the IMAP server does not support querying the UID of the email according to the MID of the email; the email client 101 may also use the loop traversal query method to determine whether the first email is saved in the IMAP server. In this way, it can be avoided that the IID server does not support the UID query command in the above two formats to query the UID, or the IMAP server does not support the UID of the mail according to the MID of the mail, which causes the query to fail, and can improve the judgment obtained by the email client 101. The accuracy of the results.
  • the “Email client 101 sends an identifier query request and queries the mail identifier with the same identifier as the first identifier” as shown in FIG. 12 and FIG. 13 is called a loop traversal query.
  • the email client 101 may not know whether the IMAP server supports the UID query command in the above two formats to query the UID.
  • the terminal may perform the first level query first; when the first level query is performed to find the corresponding UID, the email client 101 does not send the first mail to the IMAP server; When the level query does not find the corresponding UID, you can perform a secondary query.
  • the secondary query is executed to find the corresponding UID, the email client 101 does not send the first email to the IMAP server; when the secondary query does not find the corresponding UID, the loop traversal query can be executed.
  • the email client 101 When the loop traversal query is executed to find the corresponding mail, the email client 101 does not send the first mail to the IMAP server; when the loop traversal query does not find the corresponding mail, the email client 101 sends the first mail to the IMAP server. . That is, in the embodiment of the present application, the email client 101 can query the mail with the same mail identifier and the first identifier through the above-mentioned three-level query, and the accuracy of the judgment result obtained by the email client 101 can be improved.
  • the email client 101 may not query whether the IMAP server saves the first email before sending the first email to the IMAP server. That is, regardless of whether the IMAP server saves the first email, the email client sends the first email to the IMAP server.
  • the IMAP server may carry the first email according to the first email.
  • An identifier is used to query whether the mail identifier is the first identifier in the IMAP server; if the mail identifier is the first identifier in the IMAP server, the IMAP server does not save the first email received from the email client (ie, The first email received from the email client is discarded. If the email identified by the first identifier is not saved in the IMAP server, the IMAP server saves the first email received from the email client.
  • the first email carries a first identifier that can uniquely identify the first email. Therefore, if the first email is saved before the first email sent by the email client 101, the IMAP server is saved. After receiving the first email sent by the email client, the first identifier may be queried according to the first identifier, and the first email is not repeatedly saved.
  • the above-mentioned Email client and the like include hardware structures and/or software modules corresponding to each function.
  • Those skilled in the art will readily appreciate that the embodiments of the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the invention.
  • the embodiment of the present application may divide the function module by using the email client or the like according to the foregoing method example.
  • each function module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 15 is a schematic diagram showing a possible structure of an email client involved in the foregoing embodiment.
  • the email client 1500 includes: a determining unit 1501, a control unit 1502, and Transmitting unit 1503.
  • the determining unit 1501 is configured to support the email client 1500 to perform step 612, step 1001 - step 1006, step 1001b, step 1002b, step 1003, step 1004, step 1005, step 1006, step 1201 - step 1204 in the method embodiment. 1301 - 1304, and/or other processes for the techniques described herein.
  • the control unit 1502 is configured to support the Email client 1500 to perform steps 602, 611, 615, 616, and/or other processes for the techniques described herein in the method embodiments.
  • the sending unit 1503 is configured to support the Email client 1500 to perform step 603, step 609, step 613, and/or other processes for the techniques described herein in the method embodiment.
  • the email client 1500 may further include a receiving unit.
  • the receiving unit is configured to receive a first message sent by the SMTP server, and/or other processes for the techniques described herein.
  • the email client 1500 may further include a creating unit.
  • the creation unit is for supporting Email client 1500 to perform step 601 in the method embodiment, and/or other processes for the techniques described herein.
  • the email client 1500 may further include a download unit. This download unit is used to support Email Client 1500 performs step 615 in a method embodiment, and/or other processes for the techniques described herein.
  • the email client 1500 includes, but is not limited to, the unit modules listed above.
  • the email client 1500 may further include a storage unit for storing emails received by the email client 1500, sent emails, and the like. data.
  • the functions that can be implemented by the foregoing functional units include, but are not limited to, the functions corresponding to the method steps described in the foregoing examples.
  • FIG. 16 shows a possible structural diagram of the Email client involved in the above embodiment.
  • the email client 1600 includes a processing module 1601, a storage module 1602, and a communication module 1603.
  • the processing module 1601 is configured to support the Email client 1500 to perform steps 601, 602, 611, 612, 615, 616, 1301 - 1304, and/or other processes for the techniques described herein.
  • the communication module 1603 is configured to support the email client 1500 to perform step 603, step 609, step 613, and step 1001 - step 1006, step 1001b, step 1002b, step 1003 - step 1004, step 1005 - step 1006, step 1201 - step 1204 And/or other processes for the techniques described herein.
  • the communication module 1603 may execute step 1001 - step 1006, step 1001b, step 1002b, step 1003 - step 1004, step 1005 - step 1006, step 1201 - step 1204 under the instruction of the processing module 1601.
  • the processing module 1601 may be a processor or a controller, for example, may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application specific integrated circuit (Application-Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication module 1603 can be a transceiver, a transceiver circuit, a communication interface, or the like.
  • the storage module 1602 can be a memory.
  • the processing module 1601 is a processor (such as the processor 501 shown in FIG. 5)
  • the communication module 1603 is a radio frequency circuit (such as the radio frequency circuit 502 shown in FIG. 5)
  • the storage module 1602 is a memory (such as the memory shown in FIG. 5). 503)
  • the terminal in which the above email client is installed in the embodiment of the present application may be the terminal 400 shown in FIG. 5.
  • the communication module 1603 may include not only a radio frequency circuit but also a WiFi module and a Bluetooth module. Communication modules such as radio frequency circuits, WiFi modules, and Bluetooth modules can be collectively referred to as transceivers or communication interfaces.
  • the processor, the communication interface, and the memory may be coupled together by a bus.
  • the application also provides a synchronization system for an email, the synchronization system of the email comprising a plurality of email clients (ie, an email client) and at least one mail server (including the first server).
  • the email synchronization system 10 includes an email client 101, a mail server 103, and an email client 102.
  • the email client and the first server may be used to execute the related method steps in any of FIG. 6, FIG. 10, FIG. 11, FIG. 12, FIG. 13, and FIG. .
  • the embodiment of the present application further provides a computer storage medium, where the computer program code stores a computer program code, and when the processor executes the computer program code, the terminal executes FIG. 6, FIG. 10, FIG. 12.
  • the method steps of any of Figures 13 and 14 implement the method of synchronizing emails in the above embodiments.
  • the embodiment of the present application further provides a computer program product, when the computer program product is run on the terminal, causing the terminal to execute any one of FIG. 6, FIG. 10, FIG. 11, FIG. 12, FIG. 13, and FIG.
  • the related method steps implement the synchronization method of the email in the above embodiment.
  • the email client 1500, the email client 1600, the terminal 400, the computer storage medium or the computer program product provided by the embodiments of the present invention are all used to execute the corresponding method provided above, and therefore, the beneficial effects thereof can be achieved. Reference may be made to the beneficial effects in the corresponding methods provided above, and details are not described herein again.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a flash memory, a mobile hard disk, a read only memory, a random access memory, a magnetic disk, or an optical disk, and the like, which can store program codes.

Abstract

Selon certains modes de réalisation, la présente invention se rapporte au domaine technique des communications. L'invention concerne un procédé de synchronisation de courriels et un terminal, permettant une charge réduite de ressources pour un client de courriel et, en même temps, de fournir au client de courriel de l'efficacité dans la transmission et dans la réception de courriels. Une solution spécifique comprend les étapes suivantes : un client de courriel détermine, en fonction d'un premier identifiant, si un premier courriel est sauvegardé dans un premier serveur, le premier identifiant étant un identifiant de courriel attribué au premier courriel par le client de courriel et servant à identifier de manière unique le premier courriel ; lorsque le premier courriel est sauvegardé dans le premier serveur, le client de courriel ne transmet pas le premier courriel au premier serveur ; et lorsque le premier courriel n'est pas sauvegardé dans le premier serveur, le client de courriel transmet le premier courriel au premier serveur, le premier courriel portant le premier identifiant.
PCT/CN2017/106194 2017-10-09 2017-10-13 Procédé de synchronisation de courriels et terminal WO2019071617A1 (fr)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201780094850.4A CN111095877B (zh) 2017-10-09 2017-10-13 一种电子邮件的同步方法及终端

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710931815 2017-10-09
CN201710931815.5 2017-10-09

Publications (1)

Publication Number Publication Date
WO2019071617A1 true WO2019071617A1 (fr) 2019-04-18

Family

ID=66101264

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/106194 WO2019071617A1 (fr) 2017-10-09 2017-10-13 Procédé de synchronisation de courriels et terminal

Country Status (2)

Country Link
CN (1) CN111095877B (fr)
WO (1) WO2019071617A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124925A (zh) * 2020-08-25 2022-03-01 华为技术有限公司 一种电子邮件的同步方法及电子设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009516A (zh) * 2006-01-26 2007-08-01 华为技术有限公司 一种进行数据同步的方法及系统
US20080201431A1 (en) * 2004-08-17 2008-08-21 Nhn Corporation Method and System For Providing Permanent Mail Service
CN101711386A (zh) * 2007-04-24 2010-05-19 丹吉尔股份有限公司 在外部和/或本地电子邮件服务器和/或无线设备之间同步电子邮件消息
CN103595615A (zh) * 2012-08-15 2014-02-19 腾讯科技(深圳)有限公司 电子邮件的发送和接收方法、终端
CN104537516A (zh) * 2014-11-21 2015-04-22 北京国信冠群技术有限公司 一种新型电子邮件系统限制邮件附件只读的系统及方法
CN105978786A (zh) * 2016-04-19 2016-09-28 乐视控股(北京)有限公司 邮件存储方法和装置
CN107104889A (zh) * 2017-07-06 2017-08-29 青岛海信移动通信技术股份有限公司 一种基于imap协议的草稿邮件同步方法、装置和终端

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098313B (zh) * 2006-06-30 2011-08-10 华为技术有限公司 一种邮件转发方法及系统
US7788576B1 (en) * 2006-10-04 2010-08-31 Trend Micro Incorporated Grouping of documents that contain markup language code

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080201431A1 (en) * 2004-08-17 2008-08-21 Nhn Corporation Method and System For Providing Permanent Mail Service
CN101009516A (zh) * 2006-01-26 2007-08-01 华为技术有限公司 一种进行数据同步的方法及系统
CN101711386A (zh) * 2007-04-24 2010-05-19 丹吉尔股份有限公司 在外部和/或本地电子邮件服务器和/或无线设备之间同步电子邮件消息
CN103595615A (zh) * 2012-08-15 2014-02-19 腾讯科技(深圳)有限公司 电子邮件的发送和接收方法、终端
CN104537516A (zh) * 2014-11-21 2015-04-22 北京国信冠群技术有限公司 一种新型电子邮件系统限制邮件附件只读的系统及方法
CN105978786A (zh) * 2016-04-19 2016-09-28 乐视控股(北京)有限公司 邮件存储方法和装置
CN107104889A (zh) * 2017-07-06 2017-08-29 青岛海信移动通信技术股份有限公司 一种基于imap协议的草稿邮件同步方法、装置和终端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124925A (zh) * 2020-08-25 2022-03-01 华为技术有限公司 一种电子邮件的同步方法及电子设备
CN114124925B (zh) * 2020-08-25 2023-05-12 华为技术有限公司 一种电子邮件的同步方法及电子设备

Also Published As

Publication number Publication date
CN111095877A (zh) 2020-05-01
CN111095877B (zh) 2022-04-22

Similar Documents

Publication Publication Date Title
CN110839078B (zh) 代理推送
CN108702318B (zh) 一种rcs通信方法及设备
US11068551B2 (en) Method and apparatus for displaying contents of group chat
US10958459B2 (en) Method and apparatus for processing group chat message
US8769418B2 (en) Enhanced message handling
US20160277903A1 (en) Techniques for communication using audio stickers
EP2757758B1 (fr) Appareil et procédé de partage de contenu
WO2018090933A1 (fr) Procédé, appareil et système de résolution d'adresse de plateforme de service
CN108702602B (zh) 分享图像的方法、电子设备及系统
CN108667884B (zh) 镜像分发方法、镜像获取方法及装置
JP6557741B2 (ja) ピクチャ結合方法、端末、及びピクチャ結合システム
CN110622123A (zh) 一种显示方法及装置
US11321407B2 (en) Search method, and apparatus
JP2017521899A (ja) インタラクティブ情報を獲得するための方法、端末、サーバ、およびシステム
KR20150069172A (ko) 전자 장치의 위치 정보 공유 방법 및 장치
KR20190142368A (ko) 이미지 공유 방법 및 전자 디바이스
WO2018166202A1 (fr) Procédé de positionnement de réseau, équipement informatique et support d'informations lisible non volatil
TW201502986A (zh) 使用於瀏覽器網頁的應用程式訊息通知顯示方法、相關設備與系統
WO2015043163A1 (fr) Procédé et appareil pour saisir des informations de compte
WO2013173038A1 (fr) Architecture d'ordinateur serveur local/distant intégré pour un transfert de données électroniques
WO2019071617A1 (fr) Procédé de synchronisation de courriels et terminal
EP3097667B1 (fr) Dérivation de fils de communications atomiques à partir de messages adressables indépendamment
US9922094B1 (en) Sharing data based on user ranking
CN106657281B (zh) 文件共享方法及装置
CN106209601B (zh) 状态更新消息的推送方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17928643

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17928643

Country of ref document: EP

Kind code of ref document: A1