Mail synchronization method and computing device

By using a two-way linked list to record the location and ID of emails in the email client, the problem of operation conflicts during the synchronization process is solved, achieving complete synchronization of email operations and improving user experience.

CN118740784APending Publication Date: 2024-10-01UNIONTECH SOFTWARE TECH CO LTD
View PDF -1 Cites 2 Cited by

Patent Information

Application Number
CN202410764255.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing email clients are prone to conflicts between local operations and server synchronization during the synchronization process, resulting in poor user experience and the inability to continue operations on emails being synchronized.

Method used

A two-way linked list is used to record the location and ID of emails before and after movement. Unsynchronized email IDs are set to negative values, and synchronized emails are set to positive values. Email operations are recorded through the recording order and ID type of nodes to ensure that operations are not lost and allow synchronization. Continue during the process.

Benefits of technology

It achieves complete synchronization of email operations, improves user operation efficiency and experience, and avoids the problem of emails being locked during synchronization. Users can continue email operations during synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740784A_ABST
    Figure CN118740784A_ABST
Patent Text Reader

Abstract

The invention discloses a mail synchronization method and computing equipment, and the method comprises the steps: generating second mail information at a second position according to first mail information at a first position, and transmitting a first synchronization request of a first operation to a server; setting a first node in a double linked list according to the first position and a first mail ID of the first mail information, and setting a second node according to the second position and a second mail ID of the second mail information; according to the first mail information of the second moving position, fourth mail information is generated at the third position, and a second synchronization request of the first moving operation is sent to the server; setting a fourth node in the double linked list according to the third position and a fourth mail ID of the fourth mail information; setting a third node between the second node and the fourth node according to the third mail information; and setting a fifth node behind the fourth node according to the fifth mail information, modifying the fourth mail ID according to a fifth mail ID in the fifth mail information, and generating the fifth mail information stored at the third position.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mail processing, and in particular to a mail synchronization method and computing equipment. Background Art

[0002] With the development of Internet technology, the traditional way of disseminating information by letter has evolved into a new way of exchanging information, such as email. Email sends and receives emails by transmitting electronic information on the Internet. Through email, users can get in touch with Internet users in any corner of the world at a very low price and in a very fast way.

[0003] In the prior art, people can send and receive emails through email clients running in their devices. Email clients are important office software for enterprises and individuals, and are often used in daily office life. In order to maximize the advantages of email clients, email clients often need to support offline operations, that is, emails can be operated smoothly without a network, and local emails can be synchronized with the server when the network is unobstructed.

[0004] However, when using an email client, users may perform email operations on multiple devices or perform email operations during email synchronization, which may cause some problems. For example, the results saved locally offline may conflict with the versions stored on other devices when uploading; it takes a certain amount of time to communicate with the server during synchronization, and if you continue to perform some local operations on the emails being synchronized, some local conflicts will also occur. Generally, in order to prevent similar conflicts, emails will be locked during email synchronization and no further operations will be allowed or the emails will be directly hidden, and will be unlocked or displayed after the synchronization is completed, which results in a poor user experience.

[0005] To do this, a new method of email synchronization is needed. Summary of the invention

[0006] To this end, the present invention provides an email synchronization method to try to solve or at least alleviate the above problems.

[0007] According to a first aspect of the present invention, there is provided an email synchronization method, which runs in a computing device, and the method comprises: in response to receiving a first move operation to move an email from a first location to a second location, generating a second email information at the second location according to the first email information at the first location, and sending a first synchronization request for the first operation to the server; setting a first node in a bidirectional linked list according to the first location and the first email ID of the first email information, and setting a second node according to the second location and the second email ID of the second email information, wherein the second node is connected to the first node; in response to receiving a second move request to move an email from the second location to a third location, generating a fourth email information at the third location according to the first email information at the second move location, and sending a second synchronization request for the first move operation to the server; in the bidirectional linked list, setting a second node in a bidirectional linked list according to the third location The method further comprises the following steps: setting a fourth node according to the fourth email ID of the server and the fourth email information, wherein the fourth node is connected to the second node; in response to receiving the third email information returned by the server according to the first synchronization request, setting a third node between the second node and the fourth node according to the third email information, and the third node is connected to the second node and the fourth node, and sending the node information of the third node and the fourth node to the server, so that the server synchronizes the second move request according to the node information of the third node and the fourth node; in response to receiving the fifth email information returned by the server according to the second synchronization request, setting a fifth node after the fourth node according to the fifth email information, and modifying the fourth email ID according to the fifth email ID in the fifth email information, so as to generate a fifth email information stored in the third position.

[0008] Optionally, in the method according to the present invention, generating the second email information at the second location based on the first email information at the first location includes: copying the first email information at the first location to the second location, generating the copied first email information at the second location; modifying the first email ID in the copied first email information to generate a second email ID, and obtaining the second email information at the second location.

[0009] Optionally, in the method according to the present invention, the first email ID is a positive value and the second email ID is a negative value, and the method further includes: after sending the first synchronization request, in response to receiving a node information acquisition request returned by the server according to the first synchronization request; determining the node with a positive email ID and the node with a negative email ID at the very end of the bidirectional linked list; sending the node information of the first node and the second node to the server, so that the server synchronizes the first move operation according to the node information of the first node and the second node, the node information including the email ID and the storage location of the email information.

[0010] Optionally, in the method according to the present invention, the server returns the third email information according to the first synchronization request, including: when the server synchronizes the first move operation according to the node information of the first node and the second node, the server copies the first email information of the email from the first location to the second location, generating the first email information copied in the server at the second location; modifying the first email ID of the first email information copied in the server at the second location to generate a third email ID, obtaining the third email information stored in the second location in the server, sending the third email information to the computing device, and the third email ID is a positive value.

[0011] Optionally, in the method according to the present invention, the fourth email ID is a negative value, and the method further includes: after sending the second synchronization request, in response to receiving a node information acquisition request returned by the server according to the second synchronization request; determining the node with a positive email ID and the node with a negative email ID at the very end in the bidirectional linked list; determining the third node as the node with a positive email ID at the very end, and determining the fourth node as the node with a negative email ID at the very end, so that the server synchronizes the second move operation according to the node information of the third node and the fourth node.

[0012] Optionally, in the method according to the present invention, the fifth email information returned by the server according to the second synchronization request includes: when the server synchronizes the second move operation according to the node information of the third node and the fourth node, the server copies the third email information of the email from the second location to the third location, and generates the third email information copied at the third location in the server; modifies the third email ID of the third email information copied at the third location in the server to generate a fifth email ID, obtains the fifth email information stored at the third location in the server, sends the fifth email information to the computing device, and the fifth email ID is a positive value.

[0013] Optionally, the method according to the present invention further includes: if the second move request is not received, modifying the second email ID according to the third email ID in the third email information to generate the third email information stored in the second location.

[0014] According to a second aspect of the present invention, a computing device is provided, comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing the email synchronization method according to the present invention.

[0015] According to a third aspect of the present invention, there is provided a computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions which, when executed by a computing device, cause the computing device to execute the mail synchronization method according to the present invention.

[0016] According to a fourth aspect of the present invention, there is provided a computer program product, comprising a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the mail synchronization method of the present invention.

[0017] In the mail synchronization method of the present invention, a bidirectional linked list is established locally to store the storage location and mail ID of mails before and after the move, and the mail ID of the unsynchronized mail is set to a negative value, and the mail ID of the synchronized mail is set to a positive value, so that according to the recording order of the nodes in the bidirectional linked list and whether the mail ID of each node is a positive value or a negative value, the mail movement process is recorded in the bidirectional linked list, and it is convenient for the server to determine the information of the mail before and after the move, and synchronize the local operation of the mail. The present invention ensures that the user's local operation on the mail is not lost, and all operations can be completely synchronized; and the mail user who is being synchronized can also operate, and the mail being synchronized is not locked, thereby improving the user's operation efficiency and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to achieve the above and related purposes, certain illustrative aspects are described herein in conjunction with the following description and accompanying drawings, which indicate various ways in which the principles disclosed herein can be practiced, and all aspects and their equivalents are intended to fall within the scope of the claimed subject matter. By reading the following detailed description in conjunction with the accompanying drawings, the above and other purposes, features and advantages disclosed by the present invention will become more apparent. Throughout the present disclosure, the same reference numerals generally refer to the same parts or elements.

[0019] Figure 1 A schematic diagram showing a communication connection between a computing device and a mail server according to an exemplary embodiment of the present invention;

[0020] Figure 2 A flowchart of a mail synchronization method 200 according to an exemplary embodiment of the present invention is shown;

[0021] Figure 3 A schematic diagram of a bidirectional linked list after a first move operation according to an exemplary embodiment of the present invention is shown;

[0022] Figure 4 A schematic diagram of a bidirectional linked list after a second move operation according to an exemplary embodiment of the present invention is shown;

[0023] Figure 5A schematic diagram of setting a third node according to an exemplary embodiment of the present invention is shown;

[0024] Figure 6 shows a schematic diagram of setting a fifth node according to an exemplary embodiment of the present invention;

[0025] Figure 7 A schematic diagram showing deleting all nodes before the fifth node according to an exemplary embodiment of the present invention is shown;

[0026] Figure 8 A structural block diagram of a computing device according to an exemplary embodiment of the present invention is shown. DETAILED DESCRIPTION

[0027] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to enable the scope of the present disclosure to be fully conveyed to those skilled in the art. The same reference numerals generally refer to the same components or elements.

[0028] In order to solve the above technical problems, the present invention proposes an email synchronization method. Through the email synchronization method of the present invention, the user can trigger synchronization after performing local operations on the email, and can continue to operate the email without errors during the synchronization time, and will continue to synchronize the operated content to the server afterwards. The operation of the email during the synchronization process will not block the asynchronous upload of the email. The client and the email server complete the mutual synchronization process, which remains transparent to the user. When performing email operations, the user only needs to use the email management software as if the client is completely local.

[0029] According to one embodiment of the present invention, in a computing device, a user can use an email client to operate emails, and the present invention does not limit the way in which the user operates emails. The operation of emails includes moving, modifying, collecting and sending emails. The email client can be specifically implemented as a software that uses the IMAP / POP protocol to send and receive emails. IMAP is an email acquisition protocol, which allows the email client to obtain email information from the email server, download emails, etc. through the protocol.

[0030] According to one embodiment of the present invention, a computing device may be communicatively connected to a server, which may be implemented as a mail server. The mail server may be connected to other mail servers to receive mails sent by other users on the Internet and forward them to a client, as well as to send mails instructed to be sent by the client to other users via the Internet.

[0031] Figure 1 FIG. 2 is a schematic diagram showing a communication connection between a computing device and a mail server according to an exemplary embodiment of the present invention. Figure 1 As shown, a mail client 500 is running in the computing device 400. The computing device 400 is in communication connection with a mail server 600. The mail server 600 is in communication connection with other mail servers 610, 620, and 630. The mail server 600 is used to receive mails from other users sent by other mail servers and forward them to the mail client 500; it can also forward mails sent by the mail client 500 to other mail servers so as to send mails to other users.

[0032] According to one embodiment of the present invention, a computing device is connected to a server for communication, and the computing device and the server store emails in multiple folders in synchronization, and each folder can store one or more emails. The present invention does not limit the number of folders set and the number of emails stored in each folder. Each folder can be set with a corresponding function, such as a receiving folder, a favorite folder, a sending folder, or a user-defined classification folder, etc. The present invention does not limit the function and purpose of each folder.

[0033] According to an embodiment of the present invention, a computing device may set a dedicated file path locally to store emails, and multiple folders may be set under the file path, and each folder may store a corresponding number of emails. When an operation is performed locally on the emails under the file path, such as creating or deleting a folder, or creating, deleting, modifying or moving an email, the server synchronizes the operation and executes the corresponding operation on the cloud storage server, ensuring that the versions and storage location relationships of all emails stored in the cloud storage server are the same as those locally.

[0034] According to an embodiment of the present invention, if a user adds a mark to a local email, such as a star operation, the server synchronizes the mark operation, such as performing a corresponding mark operation in the storage server, and adds a mark to the email stored in the storage server. In specific execution, the storage server and the locally stored emails are first compared, and if there are differences, it is determined what operation the user performed; if it is determined to be a mark operation, the mark operation is performed on the email in the storage server, and the changes in the local email are uploaded to the storage server.

[0035] According to one embodiment of the present invention, an email includes email information and email content. When a computing device stores emails locally, a database can be established and the emails can be stored in the database. In the database, the email information of the email is stored in the form of a key-value pair. The email information includes an email ID, email header information, and a file path (the file path is the file path where the email content is stored on the disk). The key-value pair uses the email ID as the key and the email header information and the file path as the value. The email header information includes information such as the email title and the sender. The present invention does not limit the specific content and form of the email header information. The email content includes the body and attachments of the email, etc. The present invention does not limit the specific form of the email content, such as the connection attached to the email, etc. When storing the content of the email in the computing device, the email content can be encrypted and stored in the disk as a file in eml format, and the file path where the email content is stored on the disk is stored in the email information.

[0036] According to an embodiment of the present invention, in the email information, the email ID is a unique identifier for each email, and the stored email ID can be set to a non-negative number. As the number of stored emails increases, the email ID can be set to continue to increase.

[0037] According to one embodiment of the present invention, when moving an email, only the email information is moved without changing the storage location and information of the email content. Therefore, after each email is moved, only the email information is modified, reducing the movement of large files and improving the efficiency of the move operation.

[0038] Figure 2 FIG. 2 shows a flow chart of a mail synchronization method 200 according to an exemplary embodiment of the present invention. Figure 2 As shown, firstly, step 210 is performed, in response to receiving a first move operation to move an email from a first location to a second location, generating a second email message at the second location according to the first email message at the first location, and sending a first synchronization request for the first operation to the server. Generating the second email message at the second location according to the first email message at the first location includes: copying the first email message at the first location to the second location to generate the copied first email message at the second location; modifying the first email ID in the copied first email message to generate the second email ID, and obtaining the second email message at the second location.

[0039] According to one embodiment of the present invention, after the first email information stored in the first location is copied to the second location, the email ID in the copied first email information is modified and set to a negative number, thereby obtaining the second email information stored in the second location. The first location and the second location both refer to the local storage locations of the email information. The email ID in the first email information is the first email ID, and the email ID in the second email information is the second email ID.

[0040] In order to record the first move operation, the first position is provided with removal information, such as moveto information, pointing to the second position, so as to indicate that the mail at the position is moved to the second position. When displaying the mail, the user can be shown that the mail at the first position has been moved according to the moveto information, and the user can be shown that the mail can be hidden, etc. The present invention does not limit the specific method of prompting the user that the mail has been moved.

[0041] The move information, such as movefrom information, is set in the second position, pointing to the first position, so as to indicate that the mail at the position is moved from the first position. When displaying the mail, the user can be shown that the mail has been moved to the second position according to the moveform information, specifically by displaying the mail at the second position. The present invention does not limit the specific method of prompting the user that the mail has been moved to the second position.

[0042] Then, step 220 is executed to set a first node in the bidirectional linked list according to the first position and the first email ID of the first email information, and set a second node according to the second position and the second email ID of the second email information, and the second node is connected to the first node.

[0043] According to an embodiment of the present invention, in order to synchronize the server with local operations such as moving, the present invention sets a bidirectional linked list to represent the position relationship of the email. Specifically: a first node is set according to a first position; a second node is set according to a second position, and the first node and the second node are connected and point to each other. The node information of each node in the bidirectional linked list includes the email ID of the email and the local storage location of the email information.

[0044] Figure 3 FIG. 4 is a schematic diagram showing a bidirectional linked list after a first move operation according to an exemplary embodiment of the present invention. Figure 3 As shown, the bidirectional linked list includes a first node and a second node, the first node and the second node are connected, and both can be traversed upward or downward. Setting the linked list as a bidirectional linked list can improve the traversal speed and search efficiency of the linked list.

[0045] When synchronizing the first move operation of the mail, the server sends a node information acquisition request to the computing device.

[0046] After sending the first synchronization request, the computing device responds to receiving the node information acquisition request returned by the server according to the first synchronization request; determines the node with a positive mail ID and the node with a negative mail ID at the end of the bidirectional linked list; traverses the linked list at this time, wherein the first node is the head, the second node is the tail, and the second node is the end node; determines that the first node is the node with a positive mail ID at the end, and determines that the second node is the node with a negative mail ID at the end. Then, the node information of the first node and the second node is sent to the server, so that the server synchronizes the first move operation according to the node information of the first node and the second node, and the node information includes the mail ID and the storage location of the mail information.

[0047] The node with a positive email ID at the end is determined according to the bidirectional linked list, so that the server can determine the position of the email before it is moved, i.e., the first position, based on the node information; the node with a negative email ID at the end is determined, so that the server can determine the position of the email after it is moved, i.e., the second position, based on the node information.

[0048] According to one embodiment of the present invention, the server may store emails locally or in a storage server connected to the server; when performing operation synchronization, the server may perform operation synchronization locally or in a storage server. The present invention does not limit the specific manner in which the server stores emails or the specific manner in which operations are synchronized.

[0049] According to one embodiment of the present invention, the server executes the first move operation in the storage server, that is, executes the move instruction for the email. When the server moves the email information from the first location to the second location in the cloud, the email ID in the email information stored in the second location is set to be positive, and for distinction, the email information is stored in the second location in the cloud as a third email information. Subsequently, the server returns the third email information to the computing device, and the email ID included in the third email information is a positive third email ID.

[0050] In response to receiving the third email information returned by the server, the second email ID is modified according to the third email ID in the third email information so that the email ID becomes a positive value, and the second email information is also changed to the third email information.

[0051] After receiving the third email information, a third node is further set after the second node, and the third node includes a third email ID and a second location where the third email information is stored locally.

[0052] If the user does not move the email in the second location again after the first move operation and before the server returns the third email information, the server will complete the synchronization operation on the email and delete all nodes before the last node in the linked list, that is, delete the first node and the second node before the third node, and only retain the third node.

[0053] Currently, related technologies prohibit users from performing another move operation on the email during the period from the first move operation to the server returning the third email information. The user may not be able to see the email in the second location during the email synchronization process on the server. The email is hidden from the user at this time to prevent the user from operating on it, which may cause errors in email synchronization.

[0054] The present invention allows users to continue to operate on emails instead of blocking and waiting for emails to be completed. After the email is moved, when the server has not completed synchronization, the user can still operate it, and the newly generated operation record will also be retained waiting for the next synchronization. The whole process is very smooth, and the user does not need to worry about whether it is currently being synchronized, and there will be no situation where the email being synchronized cannot be operated, which saves the user's time and improves the efficiency of email use and user experience.

[0055] Subsequently, step 230 is executed. In response to receiving a second move request to move the email from the second location to the third location, fourth email information is generated at the third location according to the first email information at the second move location, and a second synchronization request for the first move operation is sent to the server.

[0056] Before receiving the third email information returned by the server, in response to receiving the second move operation for moving the email from the second location to the third location, the second email information stored in the second location is copied to the second location, and the email ID in the copied second email information is modified and also set to a negative number, thereby obtaining the fourth email information stored in the third location. The email ID in the fourth email information is a negative fourth email ID.

[0057] Then, step 240 is executed to set a fourth node in the bidirectional linked list according to the third position and the fourth mail ID of the fourth mail information, and the fourth node is connected to the second node. In order to record the second move operation, the move-out information is set in the second position, and the move-in information is set in the third position. Then, the fourth node is set according to the third position, and the fourth node is connected to the second node and points to each other. The fourth node includes the fourth mail ID and the third position where the fourth mail information is stored.

[0058] Figure 4 FIG. 4 is a schematic diagram showing a bidirectional linked list after the second move operation according to an exemplary embodiment of the present invention. Figure 4 As shown, a newly added fourth node is set after the second node.

[0059] Subsequently, step 250 is executed. In response to receiving the third email information returned by the server according to the first synchronization request, a third node is set between the second node and the fourth node according to the third email information, the third node is connected to the second node and the fourth node, and the node information of the third node and the fourth node is sent to the server, so that the server synchronizes the second move request according to the node information of the third node and the fourth node.

[0060] Figure 5 FIG. 2 shows a schematic diagram of setting a third node according to an exemplary embodiment of the present invention. Figure 5 As shown, after completing the second move operation locally, in response to receiving the third email information sent by the server, a third node is set between the second node and the fourth node according to the third email information, and the third node is connected to the second node and the fourth node and points to each other.

[0061] After sending the second synchronization request, in response to receiving the node information acquisition request returned by the server according to the second synchronization request; determine the node with a positive email ID and the node with a negative email ID at the very end of the bidirectional linked list; determine the third node as the node with a positive email ID at the very end, and determine the fourth node as the node with a negative email ID at the very end, so that the server synchronizes the second move operation according to the node information of the third node and the fourth node.

[0062] The fifth email information returned by the server according to the second synchronization request includes: when the server synchronizes the second move operation according to the node information of the third node and the fourth node, the server copies the third email information of the email from the second location to the third location, and generates the third email information copied at the third location in the server; the third email ID of the third email information copied at the third location in the server is modified to generate a fifth email ID, and the fifth email information stored at the third location in the server is obtained, and the fifth email information is sent to the computing device, and the fifth email ID is a positive value.

[0063] Finally, execute step 260. In response to receiving the fifth email message returned by the server according to the second synchronization request, set the fifth node after the fourth node according to the fifth email message, modify the fourth email ID according to the fifth email ID in the fifth email message, and generate the fifth email message stored in the third location.

[0064] Figure 6 FIG. 4 shows a schematic diagram of setting a fifth node according to an exemplary embodiment of the present invention. Figure 5 As shown, after receiving the fifth email information, a fifth node is set after the fourth node, and the fifth node includes the fifth email ID and the third position of the fifth email information stored locally.

[0065] The present invention then determines whether there are other nodes after the fifth node. If there are no other nodes, it means that the server completes the synchronization of all operations and deletes all nodes before the fifth node.

[0066] Figure 7 FIG. 4 shows a schematic diagram of deleting all nodes before the fifth node according to an exemplary embodiment of the present invention, as shown in FIG. Figure 7 As shown, after deleting all nodes before the fifth node, only the fifth node is retained in the doubly linked list.

[0067] In the mail synchronization method of the present invention, a bidirectional linked list is established locally to store the storage location and mail ID of the mail before and after the move, and the mail ID of the unsynchronized mail is set to a negative value, and the mail ID of the synchronized mail is set to a positive value, so that according to the recording order of the nodes in the bidirectional linked list and whether the mail ID of each node is positive or negative, the mail moving process is recorded in the bidirectional linked list, and it is convenient for the server to determine the information of the mail before and after the move, and synchronize the mail operation locally. The present invention ensures that the user's local operation on the mail is not lost, and all operations can be completely synchronized; and the mail user who is being synchronized can also operate, and the mail being synchronized is not locked, thereby improving the user's operation efficiency and user experience. When the present invention moves the mail, the storage location of the mail content on the disk is not changed, the steps of the disk operating on the file are reduced, the disk usage efficiency is improved, only the storage location of the mail information is modified, the mail content is avoided from being moved, and the management efficiency of the mail is improved.

[0068] The mail synchronization method provided by the present invention is suitable for being executed in a computing device. The server or mail server, other mail servers and storage servers can be implemented as a computing device. Figure 8 8 shows a block diagram of a computing device according to an exemplary embodiment of the present invention. In a basic configuration, computing device 800 includes at least one processing unit 820 and system memory 810. According to one aspect, depending on the configuration and type of computing device, system memory 810 includes, but is not limited to, volatile storage (e.g., random access memory), non-volatile storage (e.g., read-only memory), flash memory, or any combination of such memories. According to one aspect, system memory 810 includes operating system 811.

[0069] According to one aspect, operating system 811, for example, is suitable for controlling the operation of computing device 800. Furthermore, examples may be practiced in conjunction with graphics libraries, other operating systems, or any other application programs, and are not limited to any particular application or system. Figure 8This basic configuration is illustrated in FIG by those components within dashed line 815. According to one aspect, computing device 800 has additional features or functionality. For example, according to one aspect, computing device 800 includes additional data storage devices (removable and / or non-removable), such as magnetic disks, optical disks, or tapes.

[0070] As stated above, according to one aspect, the program module 812 is stored in the system memory 810. According to one aspect, the program module 812 can be implemented as one or more computer program products, and the present application does not limit the type of computer program products, for example, it can include: email, word processing application, spreadsheet application, database application, slide show application, painting or computer-aided application, web browser, etc. In some embodiments according to the present application, the computer program / instructions related to the mail synchronization method 800 are packaged as a computer program product, and when these computer programs / instructions are executed by the processor (i.e., the processing unit 820), the mail synchronization method 800 according to the present application is implemented.

[0071] According to one aspect, the examples may be practiced on a circuit comprising discrete electronic components, a packaged or integrated electronic chip containing logic gates, a circuit utilizing a microprocessor, or a single chip containing electronic components or a microprocessor. Figure 8 Each or many components shown in can be integrated in a system on chip (SOC) on a single integrated circuit to practice examples. According to one aspect, such a SOC device may include one or more processing units, a graphics unit, a communication unit, a system virtualization unit, and various application functions, all of which are integrated (or "burned") into a chip substrate as a single integrated circuit. When operated via SOC, the functions described in this article can be operated via a dedicated logic integrated with other components of the computing device 800 on a single integrated circuit (chip). Embodiments of the present invention can also be practiced using other technologies capable of performing logical operations (such as AND, OR, and NOT), including but not limited to mechanical, optical, fluid, and quantum technologies. In addition, embodiments of the present invention can be practiced in a general-purpose computer or in any other circuit or system.

[0072] According to one aspect, the computing device 800 may also have one or more input devices 831, such as a keyboard, a mouse, a pen, a voice input device, a touch input device, etc. Output devices 832 may also be included, such as a display, a speaker, a printer, etc. The aforementioned devices are examples and other devices may also be used. The computing device 800 may include one or more communication connections 833 that allow communication with other computing devices 840. Examples of suitable communication connections 833 include, but are not limited to: RF transmitters, receivers and / or transceiver circuits; Universal Serial Bus (USB), parallel and / or serial ports. The computing device 400 may be communicatively connected to other computing devices 840 via the communication connection 833.

[0073] The embodiment of the present invention also provides a non-transitory readable storage medium, which stores instructions, and the instructions are used to make the computing device perform a method according to an embodiment of the present invention. The readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be a computer-readable instruction, a data structure, a module of a program, or other data. Examples of readable storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, tape disk storage or other magnetic storage device or any other non-transitory readable storage medium.

[0074] According to one aspect, communication media is implemented by computer readable instructions, data structures, program modules, or other data in a modulated data signal (e.g., a carrier wave or other transport mechanism), and includes any information delivery media. According to one aspect, the term "modulated data signal" describes a signal that has one or more characteristics set or changed in a manner that encodes information in the signal. By way of example and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), infrared, and other wireless media.

[0075] It should be noted that, although the computing device shown above only includes a processing unit 420, a system memory 410, an input device 431, an output device 432, and a communication connection 433, in a specific implementation, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the device may only include components necessary for implementing the embodiments of the present specification, and need not include all the components shown in the figure.

[0076] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0077] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof.

[0078] In the case where the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store the program code; the processor is configured to execute the email synchronization method of the present invention according to the instructions in the program code stored in the memory.

[0079] By way of example and not limitation, computer readable media include computer storage media and communication media. Computer readable media include computer storage media and communication media. Computer storage media stores information such as computer readable instructions, data structures, program modules or other data. Communication media generally embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and includes any information delivery medium. Any combination of the above is also included within the scope of computer readable media.

[0080] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and instructional purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art. The disclosure of the present invention is illustrative, rather than restrictive, with respect to the scope of the present invention.

Claims

1. An email synchronization method, executed in a computing device, the computing device being in communication connection with a server, the method comprising: In response to receiving a first move operation to move an email from a first location to a second location, generating second email information at the second location according to the first email information at the first location, and sending a first synchronization request for the first operation to the server; In the bidirectional linked list, a first node is set according to the first position and the first email ID of the first email information, and a second node is set according to the second position and the second email ID of the second email information, wherein the second node is connected to the first node; In response to receiving a second move request to move the email from the second location to the third location, generating fourth email information at the third location according to the first email information at the second move location, and sending a second synchronization request for the first move operation to the server; In the bidirectional linked list, a fourth node is set according to the third position and the fourth mail ID of the fourth mail information, and the fourth node is connected to the second node; In response to receiving a third email message returned by the server according to the first synchronization request, a third node is set between the second node and the fourth node according to the third email message, the third node is connected to the second node and the fourth node, and node information of the third node and the fourth node is sent to the server, so that the server synchronizes the second move request according to the node information of the third node and the fourth node; In response to receiving the fifth email information returned by the server according to the second synchronization request, a fifth node is set after the fourth node according to the fifth email information, and the fourth email ID is modified according to the fifth email ID in the fifth email information, so as to generate the fifth email information stored in the third location.

2. The method of claim 1, wherein: Generating the second email information at the second location according to the first email information at the first location includes: Copying the first mail information at the first location to the second location to generate a copy of the first mail information at the second location; The first email ID in the copied first email information is modified to generate a second email ID, and the second email information at the second position is obtained.

3. The method according to claim 1 or 2, wherein: The first mail ID is a positive value, the second mail ID is a negative value, and the method further includes: After sending the first synchronization request, in response to receiving a node information acquisition request returned by the server according to the first synchronization request; Determine the node with a positive email ID and the node with a negative email ID at the end of the bidirectional linked list; The node information of the first node and the second node is sent to the server so that the server synchronizes the first moving operation according to the node information of the first node and the second node, wherein the node information includes the mail ID and the storage location of the mail information.

4. The method according to any one of claims 1 to 3, wherein: The server returns the third email information according to the first synchronization request, including: When the server synchronizes the first move operation according to the node information of the first node and the second node, the server copies the first mail information of the mail from the first location to the second location, and generates the first mail information copied in the server at the second location; The first email ID of the first email message copied at the second location in the server is modified to generate a third email ID, and the third email message stored at the second location in the server is obtained. The third email message is sent to the computing device, and the third email ID is a positive value.

5. The method according to any one of claims 1 to 4, wherein: The fourth mail ID is a negative value, and the method further includes: After sending the second synchronization request, in response to receiving a node information acquisition request returned by the server according to the second synchronization request; Determine the node with a positive email ID and the node with a negative email ID at the end of the bidirectional linked list; The third node is determined as the node with a positive email ID at the end, and the fourth node is determined as the node with a negative email ID at the end, so that the server synchronizes the second move operation according to the node information of the third node and the fourth node.

6. The method according to any one of claims 1 to 5, wherein: The fifth email information returned by the server according to the second synchronization request includes: When the server synchronizes the second move operation according to the node information of the third node and the fourth node, the server copies the third mail information of the mail from the second location to the third location, and generates the third mail information copied at the third location in the server; The third email ID of the third email message copied at the third location in the server is modified to generate a fifth email ID, the fifth email message stored at the third location in the server is obtained, the fifth email message is sent to the computing device, and the fifth email ID is a positive value.

7. The method according to any one of claims 1 to 6, further comprising: If the second move request is not received, the second email ID is modified according to the third email ID in the third email information to generate the third email information stored in the second location.

8. A computing device comprising: one or more processors; Memory; as well as One or more programs, wherein the one or more programs are stored in a memory and configured to be executed by one or more processors, and the one or more programs include instructions for executing the method according to any one of claims 1-7.

9. A computer-readable storage medium storing one or more programs, the one or more programs comprising instructions which, when executed by a computing device, cause the computing device to perform the method according to any one of claims 1 to 7.

10. A computer program product comprising a computer program / instructions, wherein: When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Mail operation method and electronic equipment

    CN119232697A