Mail operation processing method and device, storage medium, electronic equipment and product

By obtaining the mailbox information and historical email data of the migrated server, users are allowed to view and reply to emails during the migration process, which solves the problem of restricted email operations during the migration process and improves user experience and migration efficiency.

CN118555265APending Publication Date: 2024-08-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310204455.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

When an enterprise changes its email service provider, the process of migrating email data is large and time-consuming. As a result, users cannot perform email operations on the migrating server, causing inconvenience and affecting migration efficiency.

Method used

By obtaining the mailbox information of the target user from the migrating server, historical email data is obtained, and users are allowed to view and reply to email data during the migration process. The migrating server is used to send reply emails to implement asynchronous operations to avoid affecting the migration process.

Benefits of technology

During the email data migration process, users can freely operate historical email data, which improves operational flexibility and convenience while ensuring migration efficiency. Users can access and reply to emails during the migration process, avoiding long-term occupation of the migrated server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555265A
    Figure CN118555265A
Patent Text Reader

Abstract

The invention discloses a mail operation processing method and device, a storage medium, electronic equipment and a product. The method comprises the steps that in the process of migrating overall mail data of an emigration server to an immigration server, first mailbox information, corresponding to a target user, of the emigration server is acquired, and the first mailbox information comprises a sender domain name indicating the target user to correspond to the emigration server and a mail protocol adopted by the emigration server; according to the first mailbox information, obtaining historical mail data of the target user from an emigration server; in response to a viewing operation for the historical mail data, displaying the historical mail data; and in response to a reply operation for the historical mail data, sending reply mail data of the historical mail data to a reply object indicated by the reply operation through the immigration server. The method and the device can be conveniently used by a user in a mail data migration process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, storage medium, electronic device and product for processing mail operations. Background Art

[0002] Email is an electronic information space for users to communicate. It has its own corresponding email service providers to provide operation services, and different email service providers have their own corresponding email servers for email management. When an enterprise changes its email service provider, it is also necessary to migrate the overall email data in the old email server to the new email server.

[0003] Generally, the overall mail data can be downloaded from the old mail server first, and then uploaded to the new mail server. When the amount of the overall mail data to be migrated is large, the migration takes a long time.

[0004] Furthermore, since email operations cannot be performed during the overall email data migration process, it brings inconvenience to users. Summary of the invention

[0005] The present application provides a method, device, storage medium, electronic device and product for processing email operations, which can facilitate user use during email data migration.

[0006] The email processing method provided by this application includes:

[0007] In the process of migrating the overall mail data of the outgoing server to the incoming server, obtaining the first mailbox information of the outgoing server corresponding to the target user, the first mailbox information including the sender domain name indicating the target user corresponding to the outgoing server, and the mail protocol adopted by the outgoing server;

[0008] According to the first mailbox information, historical email data of the target user is obtained from the migration server;

[0009] In response to a viewing operation on historical email data, displaying the historical email data;

[0010] In response to the reply operation on the historical mail data, the reply mail data of the historical mail data is sent to the reply object indicated by the reply operation through the migration server.

[0011] The email operation processing device provided by the present application includes:

[0012] An information acquisition module, used to acquire first mailbox information of a target user corresponding to the outgoing server during the process of migrating the overall mail data of the outgoing server to the incoming server, wherein the first mailbox information includes a sender domain name indicating the target user corresponding to the outgoing server and a mail protocol adopted by the outgoing server;

[0013] An email acquisition module, used to acquire historical email data of a target user from a migration server according to the first mailbox information;

[0014] An email viewing module, used to display historical email data in response to a viewing operation on the historical email data;

[0015] The mail reply module is used for responding to the reply operation on the historical mail data and sending the reply mail data of the historical mail data to the reply object indicated by the reply operation through the migration server.

[0016] The storage medium provided in the present application stores a computer program thereon, and when the computer program is loaded by a processor, the steps in the method for processing mail operations provided in the present application are executed.

[0017] The electronic device provided in the present application includes a processor and a memory, the memory stores a computer program, and the processor is used to execute the steps in the mail operation processing method provided in the present application by loading the computer program.

[0018] In the present application, in the process of migrating the overall mail data of the outgoing server to the incoming server, by obtaining the first mailbox information corresponding to the target user of the outgoing server, the first mailbox information includes the sender domain name indicating the target user corresponding to the outgoing server, and the mail protocol adopted by the outgoing server, according to the first mailbox information, the historical mail data of the target user can be obtained from the outgoing server. After obtaining the historical mail data, the user can perform a viewing operation or a reply operation on the historical mail data. And when viewing the historical mail data, the historical mail data is displayed by responding to the viewing operation. When replying to the historical mail data, the reply mail data of the historical mail data is sent to the reply object indicated by the reply operation through the ingoing server by responding to the reply operation. In this way, in the process of migrating the overall mail data of the outgoing server to the ingoing server, the user can operate the historical mail data, and the two do not affect each other. Under the premise of ensuring the convenience of user use, the normal migration of the overall mail data can also be guaranteed, which greatly improves the flexibility and convenience of operating the historical mail data of the target user. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 A framework diagram of the mail system provided for an embodiment of the present application.

[0021] Figure 2 A schematic diagram of an application scenario of the method for processing email operations provided in an embodiment of the present application.

[0022] Figure 3 A flowchart of a method for processing email operations provided in an embodiment of the present application.

[0023] Figure 4 A schematic diagram of cyclically pulling historical email data in the method provided in an embodiment of the present application.

[0024] Figure 5 A schematic diagram of an interface showing prompt information indicating completion of pulling of historical email data in the method provided in an embodiment of the present application.

[0025] Figure 6 A schematic diagram of a process for cyclically extracting the header and body of historical email data in the method provided in an embodiment of the present application.

[0026] Figure 7 A schematic diagram of the process of re-pulling emails to be re-pulled through a circular list in the method provided in an embodiment of the present application.

[0027] Figure 8 A schematic diagram of obtaining historical email data and current email data in parallel in the method provided in an embodiment of the present application.

[0028] Fig. 9 A schematic diagram of the interaction between the migration server and the mail client in the method provided in an embodiment of the present application.

[0029] Fig.10 A schematic diagram of an interface showing merged email data in the method provided in an embodiment of the present application.

[0030] Fig.11 A schematic diagram of an interface for displaying prompt information in the method provided in an embodiment of the present application.

[0031] Fig.12 A detailed flowchart of the method for processing email operations provided in an embodiment of the present application.

[0032] Fig.13It is a structural block diagram of the processing device for email operations provided in an embodiment of the present application.

[0033] Fig.14 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] It should be noted that the principles of the present application are illustrated by implementing in an appropriate computing environment. The following description is based on the illustrated specific embodiments of the present application, which should not be construed as limiting other specific embodiments not described in detail herein. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0035] The relational terms such as first and second involved in the following embodiments of the present application are only used to distinguish one object or operation from another object or operation, and are not used to limit the actual sequential relationship between these objects or operations. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0036] First, the terms involved in this application are introduced and explained as follows:

[0037] Email is an asynchronous communication method that does not require both parties to be present at the same time. Email sends emails to the email server used by the recipient and puts them in the recipient's mailbox. The recipient can read them from the email server at any time by activating his or her own email client.

[0038] A mail client is an application that can provide users with functions such as sending, receiving, and storing emails. When using a mail client, users first need to register their email addresses on the server corresponding to the mail client to realize the function of receiving emails. When sending emails, they also need to determine the recipient's email address. The mail client can store emails locally in a preset format (such as .eml format), so that when you want to forward the email to other applications, you can send it as a file.

[0039] An email protocol is a set of defined rules that ensures that email messages can be exchanged in a standard way between various mail servers and mail clients.

[0040] A mail server is a device responsible for the management of sending and receiving emails. A mail client has its corresponding mail server, and different mail servers exchange mail data through mail protocols.

[0041] POP (Post Office Protocol): Post Office Protocol, used for receiving e-mails, mainly used to support the remote management of e-mails on the mail server using mail clients.

[0042] SMTP (Simple Mail Transfer Protocol): Email transfer protocol, is a specification for transmitting emails from a source address to a destination address. It is mainly used for email information delivery in email systems and provides notifications about incoming emails.

[0043] IMAP (Internet Message Access Protocol): also known as the Interactive Mail Access Protocol, is an application layer protocol. The main function of IMAP is that the mail client can obtain mail information from the mail server and download attachments through this mail protocol.

[0044] EAS (Exchange ActiveSync): is a Microsoft Exchange synchronization protocol. Through the EAS protocol, devices can synchronize emails, calendars, contacts, and tasks over the air with Microsoft Exchange, Outlook.com, and other servers that implement the protocol.

[0045] MX Record: A Mail Exchanger Record is a type of resource record in the Domain Name System (DNS) that specifies the mail server that handles mail sent to the recipient's domain name. An MX record allows you to set a priority, and when multiple mail servers are available, the server that delivers the mail is determined based on this value. The Email Transfer Protocol (SMTP) determines the mail routing process based on the value of the MX record.

[0046] MX migration: Switch MX records from one mail server to another.

[0047] The email operation processing method, device, storage medium, electronic device and product provided in this application are intended to solve the above technical problems in the prior art.

[0048] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0049] In order to clearly describe the solution provided by this application, a mail system is first described here to assist in understanding the solution of this application. Figure 1 , Figure 1 A framework diagram of an email system provided for an embodiment of the present application, wherein the email system includes a first email client used by a sender, the first email client being provided with management services by a first email server, the sender generating an email request by operating the first email client to send an email, the first email server corresponding to the first email client responding to the email request, and forwarding the sent email to a recipient corresponding to the email request. The email system also includes a second email client used by a recipient, the second email client being provided with management services by a second email server. The first email server and the second email server perform email interaction through corresponding email protocols, and after the first email server forwards the email sent by the sender to the recipient's second email server, the second email server sends the email to the second email client used by the recipient, and receives the email through the second email client.

[0050] Organizations such as enterprises or social groups can choose mail servers to provide mail services. Among them, there are many mail service providers, and when enterprises change mail service providers, they often face the problem of changing mail servers. When changing mail servers, the old mail server before the change is called the outgoing server, and the new mail server after the change is called the incoming server. In the process of changing mail servers in the prior art, it is necessary to first download the overall mail data of all members of the enterprise from the outgoing server, and then upload the overall mail data to the incoming server for continued use by enterprise members. Since the amount of data covered by the overall mail data is large, it takes a long time to migrate the overall mail data. As a result, the outgoing server is occupied for a long time. During the period when the outgoing server is occupied, enterprise members cannot access or operate the overall mail data in the outgoing server through the mail client, which brings inconvenience to enterprise members.

[0051] In addition, during the period when the outbound server is occupied, even if enterprise members want to access or operate the outbound server through the mail client, they must first suspend the migration of the overall mail data before they can use the overall mail data in the outbound server. This method will also affect the migration progress of the overall mail data and reduce the efficiency of the overall mail data migration.

[0052] To this end, the present application provides a method, device, storage medium, electronic device and product for processing mail operations to solve the above technical problems. Among them, the execution subject of the method for processing mail operations can be the processing device for mail operations provided by the present application, or an electronic device integrating the processing device for mail operations, or a computer program product running on an electronic device. The electronic devices include, for example, smart phones, foldable screen phones, tablet computers, laptops, desktop computers, smart watches, learning machines, etc.

[0053] Here, the application scenario of the present application is described by taking the method for processing email operations as a computer program product running on an electronic device as an example. Figure 2 , Figure 2 Schematic diagram of an application scenario of the method for processing mail operations provided in the embodiment of the present application. Figure 2 The computer shown in the figure is an electronic device, and the user can use the mailbox section of the computer program product to communicate via email. The computer program product acts as an email client corresponding to the migration server, and sends the email operation request to the migration server for response.

[0054] In the following embodiments, a computer program product is used as an email client as an example to describe in detail the method for processing email operations provided in the embodiments of the present application. It can be understood that the application scenarios of the present application scheme are not limited to computer program products.

[0055] See also Figure 3 , Figure 3 The flowchart of the method for processing the mail operation provided in the embodiment of the present application is as follows. Figure 3 As shown, the process of the method for processing email operations provided in the embodiment of the present application can be as follows:

[0056] In S110, in the process of migrating the overall mail data of the outgoing server to the incoming server, the first mailbox information of the target user corresponding to the outgoing server is obtained, and the first mailbox information includes the sender domain name indicating the target user corresponding to the outgoing server and the mail protocol adopted by the outgoing server.

[0057] When changing the mail server, the old mail server used by the enterprise is called the migration server. As the name implies, the migration server is the mail server from which all mail data needs to be migrated. The new mail server used by the enterprise is called the migration server, which is the mail server to which all mail data of the migration server needs to be migrated.

[0058] The overall mail data covers the mail data of all users corresponding to the outgoing server. When the overall mail data is migrated, the overall mail data of the outgoing server is migrated to the incoming server in the background.

[0059] A specific user among all users served by the mail server is considered as the target user. Taking an enterprise as an example, a specific enterprise member among all enterprise members served by the outgoing server is considered as the target user. Different enterprise members have an email account associated with the outgoing server. Enterprise members can log in to their email accounts through email clients and then communicate using emails.

[0060] The email account is registered using a domain name. The first email information associated with the target user in the outbound server includes the sender domain name used by the target user and the email protocol used by the outbound server. After obtaining the first email information, the outbound server can be accessed using the first email information.

[0061] The mail protocol may include one of IMAP, POP, and EAS.

[0062] Exemplarily, the mailbox information corresponding to each user in the outgoing server can be migrated to the incoming server. When the first mailbox information of the target user corresponding to the outgoing server needs to be called, the target user can obtain the first mailbox information from the incoming server through the mail client corresponding to the incoming server.

[0063] In S120, historical email data of the target user is obtained from the migration server according to the first mailbox information.

[0064] After the target user obtains the first mailbox information through the mail client used by the target user, the target user can access the migration server according to the first mailbox information and obtain the historical mail data of the target user from the migration server when accessing the migration server.

[0065] After obtaining the historical email data, the target user can use the email client to perform email operations on the historical email data, such as viewing, replying, forwarding, receiving, deleting, etc.

[0066] In an optional embodiment, obtaining the historical email data of the target user from the migration-out server includes: pulling the historical email data of the target user from the migration-out server.

[0067] Among them, pulling the historical email data of the target user can unify the format of the historical email data, making it convenient for users to perform email operations.

[0068] As described above, in the process of migrating the overall mail data of the outgoing server to the incoming server, for the target user, by obtaining the first mailbox information of the target user corresponding to the outgoing server, the historical mail data corresponding to the target user in the outgoing server is accessed with the first mailbox information. In this way, in the process of migrating the overall mail data, the target user can access the corresponding historical mail data in the outgoing server, and further can view the historical mail data, and perform mail operations on the historical mail data, so as to facilitate the user to use the historical mail data. In addition, the target user's access to the historical mail data and the migration of the overall mail data by the ingoing server can be performed asynchronously, and the two do not affect each other, and the migration efficiency of the overall mail data can also be ensured to be unaffected.

[0069] In an optional embodiment, pulling the historical email data of the target user from the migration server includes:

[0070] When pulling the target user's historical email data from the migration server, count the number of emails pulled;

[0071] Determine whether the number of emails reaches a preset number;

[0072] If not, continue to pull the unpulled emails in the historical email data until the number of pulled emails reaches a preset number.

[0073] Among them, for the historical email data corresponding to the target user in the migration server, when the historical email data is pulled from the migration server through the target user's email client, the historical email data that has been pulled is called pulled email, and the historical email data that has not yet been pulled is called unpulled email.

[0074] Here is an example, for example, the historical mail data of the target user is stored in the migration server, and when the historical mail data is pulled through the mail client of the target user, a storage location or cache location can be determined first. The pulled mail is stored in the storage location or cache location, and the unpulled mail is not stored in the storage location or cache location.

[0075] For example, the email client can be pre-set to automatically and cyclically pull historical email data in the background. Figure 4 , Figure 4 A schematic diagram of cyclically pulling historical email data in the method provided in an embodiment of the present application. By presetting a preset number of pulled emails, in the process of pulling the historical email data of the target user from the outgoing server, the number of pulled emails is counted, and the number of emails is compared with a preset number to determine whether the number of emails has reached the preset number. When the number of emails reaches the preset number, the operation of pulling historical email data from the outgoing server can be stopped. When the number of emails does not reach the preset number, the operation of pulling historical email data from the outgoing server can continue. Specifically, continue to pull unpulled emails from the outgoing server until the number of pulled emails reaches the preset number, and then stop the operation of pulling historical email data from the outgoing server.

[0076] Exemplarily, the preset number may be the maximum number of emails that need to be pulled. For example, the total number of historical email data is obtained according to the email list of the target user about the historical email data, and the total number is used as the preset number, wherein the email list can be obtained from the migration server according to the first mailbox information. For another example, a number is set as the preset number according to an empirical value. For another example, the preset number is set by the user when using it. Since there are many possible implementation methods, they will not be described in detail here.

[0077] In this embodiment, by automatically and cyclically pulling historical email data from the migration server, the pulling operation can be run in the background of the email client, and the user does not need to stay in the pulling interface until the pulling is completed, which makes it convenient for the user to perform other operations during the pulling of historical email data, providing more flexibility for user operations.

[0078] In an optional embodiment, after determining whether the number of emails reaches a preset number, the method further includes:

[0079] If yes, it will prompt that the historical email data has been retrieved.

[0080] After the historical email data is pulled through the email client, the email client issues a prompt, so that the target user can learn the information indicated by the prompt and perform further operations on the historical email data.

[0081] Exemplarily, the prompting method includes: prompting by sound, notifying by sending a text message, prompting by displaying a prompt message in an email client, etc.

[0082] Here is an example of displaying a prompt message in the email client. Figure 5 , Figure 5 A schematic diagram of an interface showing a prompt message indicating that the historical email data has been pulled in the method provided in an embodiment of the present application. After the historical email data has been pulled, a corporate email reminder can be displayed in the message prompt bar of the corporate email. The user can view the prompt message by opening the corporate email reminder, wherein the prompt message is displayed in the content box of the corporate email reminder, and the prompt message may be, for example, "The historical email data has been pulled, please continue to use it." When the corporate email reminder is displayed in the message prompt bar of the corporate location, a prompt tone can also be output to remind the user that a new message has been received, or the icon of the email client can be controlled to flash to remind the user that a new message has been received.

[0083] In an optional embodiment, the historical mail data includes a plurality of emails, and the emails include a header and a body. When pulling the historical mail data, the header and the body in the historical mail data can be pulled separately.

[0084] The header of an email includes the time when the email was created, the sender, the email address of the recipient, the subject, the email address of the CC recipient, etc. The body of an email includes the main text and attachments, and the attachments include documents, files, compressed packages, pictures, videos, etc.

[0085] Exemplarily, when pulling the letter header and the letter body separately, an asynchronous pulling method may be used to pull them so as to improve the pulling efficiency.

[0086] In this embodiment, by asynchronously pulling the header and body of the historical email data, the resource occupation and blocking of the email client can be avoided, and the efficiency of pulling the historical email data can be improved. The following describes the implementation methods of pulling the header and body separately.

[0087] As an implementation method, when pulling the header of historical mail data from the migration server, the following steps are performed:

[0088] In the process of pulling the headers of the target user's historical email data from the migration server, count the number of pulled headers;

[0089] Determine whether the number of letterheads reaches a preset number;

[0090] If not, continue to pull the unpulled letterheads in the historical mail data until the number of pulled letterheads reaches a preset number.

[0091] Similar to the above-mentioned implementation method of pulling historical mail data, in the process of pulling letterheads, the number of letterheads that have been pulled is counted, and the number of letterheads is compared with the preset number to determine whether the number of letterheads has reached the preset number. When the number of letterheads reaches the preset number, the operation of pulling letterheads can be stopped. When the number of letterheads does not reach the preset number, the operation of pulling the unpulled letterheads can be continued until the number of letterheads that have been pulled reaches the preset number, and then the operation of pulling letterheads is stopped.

[0092] The preset number here is consistent with the preset number used in pulling the historical email data mentioned above.

[0093] As another implementation, when pulling the body of the historical mail data from the migration server, the following steps are performed:

[0094] In the process of pulling the message body of the target user's historical email data from the migration server, count the number of message bodies that have been pulled;

[0095] Determine whether the number of message bodies reaches the preset number;

[0096] If not, continue to pull the unpulled message bodies in the historical mail data until the number of pulled message bodies reaches a preset number.

[0097] In the process of pulling the letter header, the number of letter bodies that have been pulled is counted and compared with the preset number. When the number of letter bodies does not reach the preset number, the operation of pulling the unpulled letter bodies continues until the number of letter bodies that have been pulled reaches the preset number.

[0098] For the above-mentioned operations of pulling the header and body of the message, a flowchart is provided here to describe it. Figure 6 , Figure 6 A schematic diagram of a process for cyclically extracting the header and body of historical email data in the method provided in an embodiment of the present application.

[0099] Pull the target user's historical email data from the migration server. The historical email data includes a header and a body. Pull the header and the body separately. In the process of pulling the header, count the number of headers that have been pulled, and judge whether the number of headers has reached a preset number. If so, it is determined that the header pulling is completed. If not, return to continue pulling the header until the number of headers that have been pulled reaches a preset number. In the process of pulling the body, count the number of body that has been pulled, and judge whether the number of body has reached a preset number. If so, it is determined that the body pulling is completed. If not, return to continue pulling the body until the number of body that has been pulled reaches a preset number.

[0100] This embodiment can relieve the pressure of resource occupation and improve the efficiency of pulling the header and body of the email by asynchronously and automatically looping the header and body of the historical email data. In addition, after pulling the header and body, the header and body of the same email are merged to obtain a complete email.

[0101] In an optional embodiment, in the process of pulling historical email data from the migration server, the method further includes:

[0102] For the emails that have not been successfully retrieved from the historical email data and need to be re-retrieved, add them to the loop list for re-retrieval;

[0103] The mails to be re-pulled that are successfully re-pulled from the circular list are determined as the pulled mails;

[0104] The mails to be re-pulled that failed to be re-pulled in the circular list are re-pulled in the circular list until the number of times the mails to be re-pulled in the circular list reaches a preset number.

[0105] When pulling historical mail data, there are still some historical mail data that have not been pulled successfully, which are called mails to be pulled again. Among them, when the migration server cannot be accessed or the mail client is disconnected from the migration server, there is a situation where the historical mail data cannot be pulled successfully.

[0106] In the process of pulling historical mail data from the migration server, each mail to be re-pulled is added to the circular list one by one in order, wherein the circular list is used to control the re-pulling of the mails to be re-pulled added therein one by one.

[0107] When re-pulling the mails to be re-pulled through the circular list control, the mails to be re-pulled that are successfully re-pulled can be marked as pulled mails, and further classified into the collection of pulled mails. For the mails to be re-pulled that fail to be pulled again, they are re-pulled in the circular list until the number of pulls of the mails to be re-pulled in the circular list reaches the preset number.

[0108] Exemplarily, the method of re-pulling the mails to be re-pulled that failed to be re-pulled in the circular list includes: for each mail to be re-pulled in the circular list, setting the number of re-pulling times when the re-pulling fails to be a preset number.

[0109] Here is an example. For example, according to the order of adding the mails to be re-pulled in the circular list, there are mails A to be re-pulled, mails B to be re-pulled, mails C to be re-pulled, and mails D to be re-pulled in the circular list. When re-pulling, mail A to be re-pulled is re-pulled first. If the re-pulling is successful, mail A to be re-pulled is marked as a pulled mail. If the re-pulling fails, mail A to be re-pulled is re-pulled again. If mail A to be re-pulled fails to be pulled again, re-pulling continues until the number of times mail A to be re-pulled reaches the preset number, and then mail B to be re-pulled is switched to be re-pulled, and so on, until all mails to be re-pulled in the circular list are traversed.

[0110] Exemplarily, the method of re-pulling the mails to be re-pulled that failed to be re-pulled in the circular list also includes: setting the mails to be re-pulled in the circular list as a circular queue, and the mails to be re-pulled that failed to be re-pulled in the circular list can be moved to the end of the circular queue for queuing and re-pulling.

[0111] Here we continue to use mail A to be re-pulled, mail B to be re-pulled, mail C to be re-pulled, and mail D to be re-pulled as examples. When re-pulling, the order of the circular queue is mail A to be re-pulled, mail B to be re-pulled, mail C to be re-pulled, and mail D to be re-pulled. First, re-pull mail A to be re-pulled. If the re-pull is successful, mail A to be re-pulled is marked as a pulled mail and removed from the circular queue. If the re-pull fails, mail A to be re-pulled is moved to the end of the circular queue, and the new circular queue is mail B to be re-pulled, mail C to be re-pulled, mail D to be re-pulled, and mail A to be re-pulled. After that, mail B to be re-pulled is re-pulled first according to the new circular queue, and so on, until the number of pulls of the mails to be re-pulled in the circular list reaches the preset number, then the circular list is controlled to stop the re-pulling operation. For example, if there are still mails B and C to be re-pulled in the final circulation list, and the number of times mails B and C are pulled is consistent with the preset number, the circulation list is controlled to stop the re-pulling operation.

[0112] It is understandable that the number of times the emails to be re-pulled in the circular list have been pulled is at least once. The preset number of times can be 2 times, 3 times, 4 times, 5 times, etc., which can be set according to actual needs and is not limited here.

[0113] In this embodiment, the unsuccessfully retrieved emails to be re-retrieved are added to a circular list for re-retrieval, thereby preventing too much historical email data from being unable to be displayed in the email client for user use due to unsuccessful retrieval, thereby improving the integrity of the retrieval of historical email data.

[0114] Accordingly, in the process of pulling the headers in the historical mail data, the headers to be pulled again that have not been pulled successfully can also be added to the circulation list for re-pulling in the same way. In the process of pulling the body of the historical mail data, the body of the message to be pulled again that has not been pulled successfully can also be added to the circulation list for re-pulling in the same way. The specific implementation method can refer to the above-mentioned content, which will not be repeated here.

[0115] Specifically, see Figure 7 , Figure 7 A schematic diagram of a process for re-pulling emails to be re-pulled through a circular list in the method provided in an embodiment of the present application. Figure 7 The schematic diagram combines Figure 6 The contents mentioned are elaborated as follows:

[0116] In the process of pulling the headers, the headers to be pulled again that have not been pulled successfully are also added to the circulation list. The circulation list is controlled to re-pull the headers to be pulled again. For the headers to be pulled again that have been pulled successfully, they are classified into the pulled header set. For the headers to be pulled again that have failed to be pulled again, they are re-pulled in the circulation list until the number of pulling times reaches the preset number, then the pulling stops.

[0117] In the process of pulling the message body, the unpulled message body to be re-pulled is also added to the circulation list. The circulation list is controlled to re-pull the message body to be re-pulled. For the message body to be re-pulled that is successfully re-pulled, it is classified into the pulled message body set. For the message body to be re-pulled that fails to be re-pulled, it is re-pulled in the circulation list until the number of pulls reaches the preset number, then the pulling stops.

[0118] Exemplarily, after the number of times of pulling the emails to be pulled again in the circular list reaches a preset number, the method further includes:

[0119] It prompts that the historical email data has been retrieved.

[0120] Specifically, the prompt method for completing the extraction of historical email data can refer to the above-mentioned content, which will not be repeated here.

[0121] In an optional embodiment, obtaining the historical email data of the target user from the migration-out server includes: pulling the historical email data of the target user from the migration-out server and storing it locally.

[0122] When the mail client pulls the historical mail data of the target user from the migration server, the mail client is used as a storage to store the historical mail data pulled from the migration server. After the historical mail data is stored locally, the user can call the historical mail data locally in real time for processing, thereby improving the processing efficiency of the historical mail data.

[0123] In S130 , in response to the viewing operation on the historical mail data, the historical mail data is displayed.

[0124] When the target user views historical mail data through the mail client, the mail client responds to the viewing operation on the historical mail data by calling the historical mail data stored locally for interface rendering, thereby displaying the historical mail data on the interface of the mail client.

[0125] Taking the mail client as an example, when the user clicks the "Mail" control on the main interface of the mail client, the mail client displays the "Mail" interface, which displays the mail list including historical mail data. The user can view the specific content of the selected historical mail by further selecting any historical mail in the mail list.

[0126] In this embodiment, the mail client responds to the user's viewing operation on the historical mail data, and then renders the interface by calling the historical mail data stored locally, so as to display the historical mail data to the user, so that the user can view the required historical mail data. In this way, in the process of migrating the overall mail data of the outgoing server to the incoming server, the user can also view the corresponding historical mail data through the mail client, and the two do not affect each other, which not only ensures the smooth migration of the overall mail data of the incoming server, but also guarantees the user's use demand for the historical mail data, so as to facilitate the user's use.

[0127] In S140 , in response to the reply operation on the historical mail data, the reply mail data of the historical mail data is sent to the reply object indicated by the reply operation through the migration server.

[0128] When the target user performs a reply operation based on the displayed historical email data through the email client, the email client sends the reply email data of the historical email data to the migration server, and the migration server sends the reply email data to the reply object indicated by the reply operation, which can be the email server where the recipient is located. After the email server where the recipient is located receives the reply email data, it forwards the reply email data to the email client used by the recipient.

[0129] In this embodiment, the email client responds to the user's reply operation on the historical email data, and obtains the reply email data based on the historical email data by calling the historical email data stored locally, and then sends the reply email data to the migration server, and the migration server forwards the reply email data to the corresponding reply object. In this way, in the process of migrating the overall email data of the migration server to the migration server, the user can also use the email client to reply to the historical email data, which does not affect the normal migration of the overall email data, and can also ensure that the user can perform corresponding email operations on the historical email data according to the use requirements, which is convenient for the user.

[0130] In an optional embodiment, in response to a reply operation on historical mail data, sending reply mail data of the historical mail data to a reply object indicated by the reply operation through the migration server includes:

[0131] In response to a reply operation on the historical email data, determining whether there is an attachment in the historical email data;

[0132] If yes, extract the attachment from the historical email data and load the attachment into the reply email data of the historical email data;

[0133] The reply email data with the attachment is sent to the reply object through the migration server.

[0134] Since the mail server corresponding to the target user has been changed from the outgoing server to the incoming server, when a reply operation is performed on the historical mail data, the reply operation cannot be responded to by the outgoing server. Therefore, in this embodiment, the historical mail data is converted across domain names, so that the reply mail data of the converted historical mail data is then sent to the reply object through the incoming server.

[0135] Specifically, the body of the historical mail data is identified to identify whether it contains attachments. If it contains attachments, the attachments are extracted and loaded into the reply mail data of the historical mail data, and then the reply mail data loaded with attachments is sent to the reply object through the mail client. Thus, the reply object can view the reply mail data, and view the corresponding historical mail data and attachments based on the reply mail data. If there is no attachment in the body of the message, the historical mail data is uploaded to the migration server, and the reply mail data of the historical mail data is sent to the reply object indicated by the reply mail data through the migration server.

[0136] The attachments may include pictures, files, compressed packages, folders, videos, etc., and the specific types of attachments can be loaded by the email client and are not limited here.

[0137] For example, the body of the historical mail data also includes embedded pictures, tables or links. If there are embedded pictures in the historical mail data, the pictures need to be converted so that the format of the pictures is compatible with the picture format corresponding to the migration server.

[0138] Specifically, the body of the historical mail data is identified to identify whether it contains embedded images. If it contains embedded images, the embedded images are extracted and intelligently replaced using the image format supported by the migration server. The replaced images are then embedded into the historical mail data, and the historical mail data with the embedded replaced images and the corresponding reply mail data are uploaded to the migration server, and then the reply mail data is sent to the reply object through the migration server. Thus, the reply object can view the reply mail data, and view the corresponding historical mail data and embedded images based on the reply mail data.

[0139] Correspondingly, tables or links can also be processed for cross-domain name conversion in the same manner, and the specific implementation method will not be described in detail here.

[0140] It is understandable that the email client can also respond to a forwarding operation on historical email data. The implementation method of the forwarding operation is similar to that of the reply operation, and will not be described in detail here.

[0141] In this embodiment, by performing cross-domain conversion on historical email data, users can perform normal reply operations on historical email data without affecting the migration of overall email data, which is convenient for users.

[0142] As described above, in the process of migrating the overall mail data of the outgoing server to the incoming server, the embodiment of the present application obtains the first mailbox information of the target user corresponding to the outgoing server, and then obtains the historical mail data of the target user from the outgoing server through the first mailbox information and stores it locally, so that the target user can perform mail operations on the historical mail data in real time through the mail client corresponding to the incoming server, wherein the executable mail operations include viewing operations, reply operations, forwarding operations, deletion operations, favorite operations, moving operations, marking as unread operations, marking as read operations, star-top operations, marking as spam operations, etc. In this way, the solution provided by the embodiment of the present application realizes that in the process of overall mail data migration, users can flexibly perform mail operations on historical mail data according to actual needs, which is convenient for users to use.

[0143] In the above embodiments, the content of obtaining historical mail data and executing mail operations is described. In this application, the mail data corresponding to the outgoing server is referred to as historical mail data, and the mail data corresponding to the incoming server is referred to as current mail data. In the following embodiments, the content of obtaining current mail data and executing mail operations is described in detail, and specific reference is made to the embodiments provided below.

[0144] In an optional embodiment, during the process of migrating the overall mail data of the outgoing server to the incoming server, the method further includes:

[0145] In 210, the second mailbox information of the target user corresponding to the migration server is obtained, and the second mailbox information includes a sender domain name indicating the target user corresponding to the migration server, and the mail protocol adopted by the migration server.

[0146] When changing the mail server, an email account associated with the migration server is also created for the enterprise members based on the second mailbox information corresponding to the migration server. Enterprise members can log in to their email accounts through the mail client corresponding to the migration server, and use email to communicate through the migration server.

[0147] The second mailbox information associated with the target user in the migration server includes the sender domain name used by the target user and the mail protocol used by the migration server. After knowing the second mailbox information, the second mailbox information can be used to access the migration server. The mail protocol can include one of IMAP, POP, and EAS.

[0148] The second mailbox information may be stored in the migration server. When the second mailbox information of the target user corresponding to the migration server needs to be called, the target user may obtain the second mailbox information from the migration server through the mail client corresponding to the migration server.

[0149] In 220, according to the second mailbox information, the current mail data of the target user is obtained from the migration server.

[0150] After the target user obtains the second mailbox information by using the mail client, he can access the migration server according to the second mailbox information. When accessing the migration server, the current mail data of the target user is also obtained from the migration server.

[0151] After obtaining the current email data, the target user can use the email client to perform email operations on the current email data, such as receiving operations, viewing operations, writing operations, replying operations, forwarding operations, deleting operations, moving operations, adding to favorites, marking as unread operations, marking as read operations, pinning operations with stars, and reading operations.

[0152] In an optional embodiment, the current mail data of the target user can be obtained from the migration server in parallel, and the historical mail data of the target user can be obtained from the migration server in parallel. Figure 8 , Figure 8 A schematic diagram of obtaining historical email data and current email data in parallel in the method provided in an embodiment of the present application.

[0153] Among them, the target user uses the mail client corresponding to the migration server to first obtain the first mailbox information of the target user corresponding to the migration server, and obtain the second mailbox information of the target user corresponding to the migration server. When it is necessary to use historical mail data, the target user connects to the migration server through the mail client according to the first mailbox information to obtain the historical mail data from the migration server and stores it locally. When it is necessary to use current mail data, the target user connects to the migration server through the mail client according to the second mailbox information to obtain current mail data from the migration server. After obtaining the historical mail data or the current mail data, the mail client can be used to perform mail operations on the historical mail data or the current mail data.

[0154] Exemplarily, before obtaining the first mailbox information and the second mailbox information, the migration server sends a mailbox information notification to the mail client. After the mail client receives the mailbox information notification, it obtains the first mailbox information and the second mailbox information according to the mailbox information notification.

[0155] Specifically, see Fig. 9 , Fig. 9A schematic diagram of the interaction between the migration server and the mail client in the method provided in an embodiment of the present application.

[0156] When the overall email data of the outgoing server begins to be migrated to the incoming server, the incoming server first generates an email information notification based on the first email information of the target user corresponding to the outgoing server and the second email information of the target user corresponding to the incoming server, and sends the email information notification to the email client of the target user. After the email client receives the email information notification, it can obtain the first email information of the outgoing server and the second email information of the incoming server from the email information notification. The email client can obtain the historical email data of the target user from the outgoing server based on the first email information, and obtain the current email data of the target user from the incoming server based on the second email information.

[0157] Exemplarily, before starting to migrate the overall mail data, the method further includes:

[0158] The MX record of the outgoing server is migrated to the incoming server. After the MX migration is completed, the incoming server generates an email information notification based on the first email information and the second email information to remind the target user that he can use the first email information to access the outgoing server and use the second email information to access the incoming server. After the MX record migration is completed, the mail server change from the outgoing server to the incoming server can be completed.

[0159] In this embodiment, by sending an email message notification from the migration server to the target user's email client, on the one hand, the target user can be reminded that the email server is being changed, and on the other hand, the target user can be reminded that the first email information can be used to access the migration server, and the second email information can be used to access the migration server, thereby ensuring the effective transmission of the first email information and the second email information, and facilitating the user to flexibly use the first email information and / or the second email information to obtain email data according to actual needs.

[0160] In an optional embodiment, after S320, the method further includes:

[0161] S230: In response to a read operation on the current mail data, obtaining a mail attachment corresponding to the read operation from the migration server.

[0162] The current mail data is the mail data of the target user corresponding to the migration server, that is, all mail data about the target user stored in the migration server after the migration server starts to be used.

[0163] Exemplarily, the reading operation includes reading attachments, pictures, videos, etc. of the current email data. Taking attachment reading as an example, when reading attachments, the attachments can be obtained from the migration server in real time through the second mailbox information to download the attachments to the email client. It can be understood that for the current email data that has not been read, its attachments can be downloaded from the migration server without the email client, thereby avoiding excessive storage space of the email client from being occupied.

[0164] In an optional embodiment, after S220, the method further includes:

[0165] S240 , in response to a reply operation on the current mail data, sending reply mail data of the current mail data to a reply object indicated by the reply operation through the migration server.

[0166] The email client may respond to the reply operation for the current email data to send the reply email data of the current email data to the migration server through the second mailbox information, and then the migration server forwards the reply email data to the reply object indicated by the reply operation.

[0167] Of course, the user can also perform forwarding operations, writing operations, receiving operations, viewing operations, deleting operations, collecting operations, moving operations, marking operations, etc. on the current mail data. The specific implementation method can refer to the above-mentioned content, which will not be repeated here.

[0168] The above embodiments respectively provide methods for obtaining the historical mail data of the target user corresponding to the outgoing server according to the first mailbox information, and obtaining the current mail data of the target user corresponding to the incoming server according to the second mailbox information. After obtaining the historical mail data and the current mail data, the two are merged so that the merged mail data can be displayed through the mail client corresponding to the target user of the incoming server. In the following embodiments, a specific implementation method for merging the historical mail data and the current mail data is provided.

[0169] In an optional embodiment, after S220, the method further includes:

[0170] The historical mail data and the current mail data are merged to obtain the merged mail data.

[0171] Among them, historical email data is obtained from the outgoing server and current email data is obtained from the incoming server in parallel. Since the two correspond to different email accounts of the same target user, after obtaining the historical email data and the current email data, they are merged and displayed to the email client, so that the interface of the historical email data and the current email data displayed by the email client is concise and clear, which is convenient for users to view.

[0172] Exemplarily, the method of merging the historical mail data and the current mail data includes, but is not limited to: sorting and integrating the historical mail data and the current mail data, classifying the historical mail data and the current mail data, etc. Among them, the method of sorting and integrating is, for example, merging the historical mail data and the current mail data according to the order of mail time. The method of classifying is, for example, merging the historical mail data and the current mail data according to the mail type. Since there are many possible implementation methods, they are not listed here. It can be understood that any method that can realize the merging of the historical mail data and the current mail data can be applied to this embodiment.

[0173] In an optional embodiment, historical mail data and current mail data are merged to obtain merged mail data, including:

[0174] According to the email type, the historical email data and the current email data are classified into the mailboxes of the corresponding email type;

[0175] According to the mail merging strategy corresponding to the mail boxes of each mail type, the mail data of each mail box is merged to obtain the merged mail data.

[0176] Among them, the mailbox includes the inbox, sent mailbox, deleted mailbox, draft box, spam mailbox, label mailbox, etc. Among them, the mail type corresponding to the inbox is the received mail, the mail type corresponding to the sent mailbox is the sent mail, the reply mail and the forwarded mail, the mail type corresponding to the deleted mailbox is the deleted mail, the mail type corresponding to the draft box is the mail that is written and saved but not sent, the mail type corresponding to the spam mailbox is the mail marked as spam, and the label mailbox is the mail marked as unread or marked as read or with a custom label.

[0177] In this embodiment, the historical mail data and the current mail data are first classified according to the mail type, so as to be classified into the mailboxes of the corresponding mail type. Then, the corresponding merging operations are performed for the mailboxes of different mailbox types, so that the historical mail data and the current mail data of the corresponding mail type are displayed in different mailboxes.

[0178] Among them, the mail merge strategies adopted by different mailboxes may be the same or different. For example, for the inbox, the historical mail data and the current mail data may be merged according to the receipt time, or the historical mail data and the current mail data may be merged according to the sender. For the sent mailbox, the historical mail data and the current mail data may be merged according to the mail header, or the historical mail data and the current mail data may be merged according to the sender. It can be understood that there are many mail merge strategies adopted for different mailboxes, which are not listed here. Any implementation method that can realize mail merge based on the historical mail data and the current mail data provided in the embodiments of the present application belongs to the protection scope required by the present application.

[0179] In an optional embodiment, the mailbox includes an inbox, and according to the mail merging strategy corresponding to the mailbox of each mail type, the mail data of each mailbox is merged to obtain the merged mail data, including:

[0180] Sorting the email data in the inbox according to the receipt time to obtain sorted email data;

[0181] According to the receiving time of the mail data, the sorted mail data is deduplicated to obtain the merged mail data.

[0182] After the historical mail data and the current mail data are classified into the inbox according to the mail type, the mail data in the inbox is sorted according to the receipt time, so that the mail data belonging to the historical mail data and the current mail data in the inbox are re-sorted to obtain sorted mail data.

[0183] In addition, in the process of obtaining historical email data from the migration server, there is also a situation of repeated acquisition. In order to avoid email redundancy, this embodiment also performs deduplication processing on the sorted email data. The deduplication processing is based on the email content. Specifically, for the sorted email data with the same email content, only one is retained.

[0184] Exemplarily, the email content includes the recipient, sender, carbon copy, blind copy, email title and email body. When all the covered contents are consistent, it is determined that the email contents of the two sorted email data are consistent.

[0185] Among them, when performing deduplication processing, the sorted email data corresponding to the latest receiving time can be retained according to the receiving time, and the sorted email content of the same email content before the latest receiving time can be deleted. Of course, the sorted email data corresponding to the previous receiving time can also be retained. There are many specific implementation methods, which are not listed here. When implementing it, it can be selected according to actual needs.

[0186] In this embodiment, by sorting and deduplicating the email data in the inbox, it is convenient for users to find the required email data, and it is also possible to avoid redundancy of email data, thereby improving the efficiency of users finding email data. It can be understood that the email merging strategy can also be used for sent email boxes, deleted email boxes, draft boxes, spam boxes, label email boxes, etc. The specific implementation method can refer to the content mentioned in the embodiment of the inbox, and will not be repeated here.

[0187] In an optional embodiment, the mailbox includes a sent mailbox, and according to the mail merging strategy corresponding to the mailbox of each mail type, the mail data of each mailbox is merged to obtain the merged mail data, including:

[0188] Sorting the mail data in the sent mail box according to the sending time to obtain sorted mail data;

[0189] When executing a reply operation on the mail data belonging to the historical mail data, the configuration converts the historical mail data according to the preset conversion method, and then sends the corresponding reply mail data to the migration server.

[0190] Specifically, when the email client responds to a reply operation on historical email data, the method of converting the historical email data according to a preset conversion method may include the method mentioned above, that is, first identifying the attachments or embedded images in the historical email data, and when it contains attachments or embedded images, uploading the attachments or embedded images to the migration server, so that the reply email data of the historical email data can be sent to the reply object corresponding to the reply operation through the migration server.

[0191] Of course, it can also be configured that when forwarding operation is performed on mail data belonging to historical mails, the historical mail data is converted according to the above-mentioned preset conversion method, and then the corresponding forwarded mail data is sent to the migration server.

[0192] Exemplarily, after the email data in the sent mailbox are sorted according to the sending time, they can also be deduplicated according to the sending time. The deduplication method is referred to the above-mentioned content and will not be described here.

[0193] In addition, it is also configured that when sending an email, the second mailbox information is used to send an email to the migration server for response. That is, when performing operations related to sending emails for historical email data, after converting the historical email data, the second mailbox information is used to send an email to the migration server for response. When performing operations related to sending emails for current email data or sending newly written emails, the second mailbox information is used to send an email to the migration server for response.

[0194] For example, for the merged email data in the inbox, the merged email data may only include the header and the body of the email. The merged email strategy for the sent email box may also include: when it is necessary to read the attachments of the merged email data, the attachments belonging to the historical email data in the merged email data are called from the local storage, or the attachments belonging to the current email data in the merged email data are pulled from the migration server on demand through the second mailbox data. This avoids taking up too much storage space and ensures the smoothness of email communication.

[0195] Specifically, in response to a viewing operation on the attachment of the merged mail data, if the merged mail data belongs to historical mail data, the attachment of the merged mail data can be displayed in real time according to the viewing operation. If the merged mail data belongs to current mail data, the attachment corresponding to the merged mail data is pulled from the migration server through the second mailbox information, and then the attachment is displayed.

[0196] In this embodiment, on the one hand, a concise and clear merged sent email box can be provided for the user, and the user can also perform normal sending operations on historical email data and current email data, thereby facilitating user use. In addition, an on-demand reading operation is configured for the current email data to save storage space.

[0197] In an optional embodiment, the mailbox includes a draft box, and according to the mail merge strategy corresponding to the mailbox of each mail type, the mail data of each mailbox is merged to obtain the merged mail data, including:

[0198] Sorting the mail data in the draft box according to the saving time to obtain sorted mail data;

[0199] Configure the use of a second mailbox information to save drafts.

[0200] In this embodiment, when configuring to write a letter, the second mailbox information is used to write the email and save the draft.

[0201] As described above, the embodiment of the present application provides a method for merging historical email data and current email data. After the merging, the display interface of the email client will display the email data contained in the corresponding mailbox. Fig.10 , Fig.10 A schematic diagram of an interface showing merged email data in the method provided in an embodiment of the present application. Fig.10The mailboxes shown in the figure include the Inbox, Sent Mailbox, Deleted Mailbox, Drafts and Spam Mailbox. Different mailboxes contain corresponding merged mail data, and the merged mail data in different mailboxes are arranged in chronological order. Taking the Inbox as an example, the Inbox includes Mail 1, Mail 2, Mail 3, etc. The merged mail data in the Inbox includes received mails belonging to historical mail data and received mails belonging to current mail data, among which the received mails belonging to historical mail data are marked with squares, and the received mails belonging to current mail data are marked with circles.

[0202] In an optional embodiment, in the process of migrating the overall mail data of the outgoing server to the incoming server, the method further includes:

[0203] Recording the first mail operation on the historical mail data, where the first mail operation includes a viewing operation and a reply operation;

[0204] According to the first mailbox information, the first email operation is reported to the migration server to synchronize the email operation.

[0205] In this embodiment, in the process of migrating the overall mail data of the outgoing server to the incoming server, the first mail operation performed on the historical mail data is also recorded and retained. The first mail operation includes the above-mentioned viewing operation and reply operation, and may also include forwarding operation, receiving operation, reading operation, deleting operation, moving operation, favorite operation, marking as unread operation, star operation, etc.

[0206] The first mail operation is for historical mail data stored locally. After the first mail operation is performed on the historical mail data, the first mail operation can also be reported to the migration server for synchronization of the mail operation, so that the mail status of the mail data in the migration server remains up to date.

[0207] Specifically, the email client reports the first email operation to the migration server according to the first mailbox information, and then the migration server synchronously performs the email operation on the email data stored therein according to the first email operation, so that the email data corresponding to the target user in the migration server is consistent with the email status of the historical email data stored locally.

[0208] Exemplarily, the first mail data may be reported to the outgoing server for synchronization of mail operations during the available period of the outgoing server, wherein the outgoing server is in the available period before the overall mail data is completely migrated to the incoming server.

[0209] In this embodiment, by synchronizing the mail operation on the migration server according to the first mail operation while the migration server is available, the status of the mail data in the migration server is updated in real time, so that other mail clients can obtain the latest mail data when they access the migration server according to the first mailbox information.

[0210] In an optional embodiment, reporting the first email operation to the migration server for synchronization of the email operation according to the first mailbox information includes:

[0211] Merge the first email operation according to the email content and the operation time to obtain a merged first email operation;

[0212] According to the first mailbox information, the merged first email operation is reported to the migration server to synchronize the email operation.

[0213] Among them, the email content of the same historical email is the same. For the same historical email, if the same historical email has corresponding at least two first email operations, the email status corresponding to the last first email operation shall prevail, that is, the at least two first email operations executed successively shall be merged as the merged first email operation.

[0214] Here is an example. For example, for a certain historical email, the first email operations include first performing the mark as unread operation and then performing the delete operation. The email status corresponding to the last first email operation is delete and mark as unread. In this case, the delete and mark as unread email operations will be used as the first email operation after the merger.

[0215] In this embodiment, by merging the first email operation and then reporting it to the migration server for synchronization of the email operation, the number of email operations on the same email data by the migration server is reduced, and the risk of disordered order of email operations is avoided, thereby ensuring the orderliness of the email operations performed by the migration server and the efficiency of synchronous email operations.

[0216] In an optional embodiment, the method further includes:

[0217] In the process of migrating the overall mail data, a first mail operation on the historical mail data and a second mail operation on the current mail data are recorded, wherein the first mail operation includes a viewing operation and a reply operation;

[0218] After the overall mail data migration is completed, the first mail operation and the second mail operation are reported to the migration server according to the second mailbox information to synchronize the mail operations.

[0219] In this embodiment, in the process of migrating the overall mail data of the outgoing server to the incoming server, the first mail operation on the historical mail data and the second mail operation on the current mail data are also recorded. The second mail operation includes receiving operation, viewing operation, writing operation, replying operation, forwarding operation, deleting operation, moving operation, favorite operation, marking as unread operation, marking as read operation, star operation, reading operation, etc.

[0220] After the overall mail data migration is completed, the first mail operation and the second mail operation are also reported to the migration server for synchronization of the mail operations to update the mail status of the mail data in the migration server.

[0221] In this embodiment, the mail status of the mail data in the migrated server is updated according to the first mail operation and the second mail operation, so that the mail status in the migrated server is kept up to date, so that the latest mail data can be called when the historical mail data and / or the current mail data in the migrated server are called later.

[0222] In an optional embodiment, reporting the first mail operation and the second mail operation to the migration server for synchronization of the mail operations according to the second mailbox information includes:

[0223] According to the email content and the operation time, the first email operation and the second email operation are merged respectively to obtain a merged first email operation and a merged second email operation;

[0224] According to the second mailbox information, the merged first mail operation and the merged second mail operation are reported to the migration server for synchronization of mail operations.

[0225] Among them, for the same historical email, at least two first email operations successively executed on the same historical email are merged as the merged first email operation. For the same current email, at least two second email operations successively executed on the same current email are merged as the merged second email operation. Afterwards, the email status of the email data corresponding to the historical email data in the migrated server is updated with the merged first email operation, and the email status of the email data corresponding to the current email data in the migrated server is updated with the merged second email operation.

[0226] In an optional embodiment, the method further includes:

[0227] After the overall mail data migration is completed, the first mailbox information is deleted.

[0228] The deleting the first mailbox information includes: deleting the first mailbox information in response to a migration completion notification sent by the migration server.

[0229] After the overall mail data migration is completed, the target user stops using the migration server. By deleting the first mailbox information, the target user avoids mistakenly accessing the migration server through the first mailbox information, reduces the risk of mistaken access to mail data, and also avoids data confusion.

[0230] In an optional embodiment, before obtaining the first mailbox information of the target user corresponding to the migration server, the method further includes:

[0231] Display a prompt message, which is used to indicate whether to migrate the historical email data of the corresponding target user from the migration server;

[0232] Get the first mailbox information of the target user corresponding to the migration server, including:

[0233] In response to a confirmation operation on the prompt information, first mailbox information of a target user corresponding to the migration server is obtained.

[0234] Among them, the prompt information can be displayed in the form of text, pop-up box, audio, etc. When displayed in the form of text, a user interface can be rendered to remind the target user, and the user interface displays text content about whether to migrate the historical email data of the corresponding target user from the migration server. For example, the text content is "You have old mailbox data that needs to be migrated, please confirm whether to migrate." When displayed in the form of a pop-up box, a pop-up box can be displayed on the current interface of the email client, and the pop-up box displays text content about whether to migrate the historical email data of the corresponding target user from the migration server. When displayed in the form of audio, audio about whether to migrate the historical email data of the corresponding target user from the migration server can be played.

[0235] After displaying the prompt information, the email client also displays an interface control for the prompt information. When the interface control is used to perform a confirmation operation, the target user can trigger the interface control to start the migration operation, thereby first obtaining the first mailbox information corresponding to the target user from the migration server, and then obtaining the historical email data of the target user from the migration server according to the first mailbox information. Of course, the email client can also display an interface control for performing a cancel operation. When the interface control is triggered, the migration operation will not be started.

[0236] See also Fig.11 , Fig.11 A schematic diagram of an interface for displaying prompt information in the method provided in an embodiment of the present application. Fig.11The prompt information is displayed in text form. When the email client receives the email reminder, it expands the email reminder to display the corresponding prompt information in the email reminder interface. For example, the prompt information is "The company has migrated the @blzmailtest1.com email service to the email client. Your email account is: XX@blzmailtest1.com. Please send and receive emails on the email client in the future. If this email has historical emails, you can migrate the historical emails from the email client." The interface control for the prompt information is "Migrate Historical Emails" in the figure. When the target user triggers the interface control of "Migrate Historical Emails", the historical email data of the corresponding target user in the migrated server will be migrated to the email client.

[0237] Furthermore, after the target user triggers the interface control of "migrate historical emails", it also jumps to the next user login interface, on which the target user can unlock and start the migration operation by entering the email account and password.

[0238] In this embodiment, a prompt message is displayed to remind the target user whether to migrate the corresponding historical email data from the migration server. After the target user performs a confirmation operation according to the prompt message, the migration operation can be started. This method allows the user to flexibly decide the timing of starting the migration operation and whether to migrate the historical email data according to the actual situation.

[0239] In summary, the method for processing mail operations provided by the embodiment of the present application, in the process of migrating the overall mail data of the outgoing server to the incoming server, on the one hand, obtains the historical mail data of the corresponding target user from the outgoing server by obtaining the first mailbox information, and on the other hand, obtains the current mail data of the corresponding target user from the incoming server by obtaining the second mailbox information. In this way, the user can operate the historical mail data during the mail server change, which is convenient for the user. In addition, during the overall mail data migration, the mail operations performed on the historical mail data and the current mail data are merged, and the mail status of the outgoing server is updated in time, and the mail status of the incoming server is synchronously updated after the overall mail data migration is completed, so that the mail operations performed by the user during the migration can be fully synchronized, realizing the unification of the mail status of the mail client and the mail server, which is convenient for the user.

[0240] For the above mentioned methods, a detailed flowchart is provided here for details. For details, please refer to Fig.12 , Fig.12 A detailed flow chart of the method for processing email operations provided in the embodiment of the present application. The content is as follows:

[0241] S310, in response to the mailbox information notification sent from the migration server, obtain the first mailbox information of the target user corresponding to the migration server and the second mailbox information of the target user corresponding to the migration server from the migration server according to the email information notification. The mailbox information notification is sent after the MX record of the migration server is migrated to the migration server.

[0242] The operations for historical email data are as follows:

[0243] S3211. Pull historical email data of the target user from the migration server according to the first mailbox information, and in the process of pulling the historical email data, count the number of pulled emails.

[0244] S3212: Determine whether the number of emails reaches a preset number.

[0245] If so, execute S3213 and prompt that the pulling of historical email data is completed.

[0246] If not, execute S3214 and continue to pull the unpulled emails in the historical email data until the number of pulled emails reaches a preset number.

[0247] S3215. For the emails to be re-pulled that have not been successfully pulled out in the historical email data, add the emails to be re-pulled out to a loop list for re-pulling.

[0248] S3216. Determine the emails to be re-pulled that are successfully re-pulled in the circular list as the pulled emails.

[0249] S3217, re-pull the emails to be re-pulled that failed to be re-pulled in the circulation list, until the number of times the emails to be re-pulled in the circulation list have been pulled reaches a preset number, and then execute S3213.

[0250] S3311. In response to a viewing operation on historical email data, display the historical email data.

[0251] S3312. In response to a reply operation on the historical email data, determine whether there is an attachment in the historical email data.

[0252] S3313. If yes, extract the attachment from the historical email data and load the attachment into the reply email data of the historical email data.

[0253] S3314. Send the reply email data with the attachment to the reply object through the migration server.

[0254] The operations for the current mail data are as follows:

[0255] S322. According to the second mailbox information, obtain the current mail data of the target user from the migration server.

[0256] S3321. In response to a read operation on current mail data, obtain a mail attachment corresponding to the read operation from the migration server.

[0257] S3322. In response to a reply operation on the current mail data, the reply mail data of the current mail data is sent to the reply object indicated by the reply operation through the migration server.

[0258] S341. According to the email type, the historical email data and the current email data are classified into the mailboxes of the corresponding email type.

[0259] S342: According to the mail merging strategy corresponding to the mail boxes of each mail type, the mail data of each mail box is merged to obtain merged mail data.

[0260] S351. Record the first email operation on historical email data.

[0261] S352: Merge the first email operation according to the email content and the operation time to obtain a merged first email operation.

[0262] S353: According to the first mailbox information, the merged first email operation is reported to the migration server to synchronize the email operation.

[0263] S361. In the process of migrating the overall mail data, a first mail operation on the historical mail data and a second mail operation on the current mail data are recorded.

[0264] S362: After the overall mail data migration is completed, the first mail operation and the second mail operation are respectively merged according to the mail content and the operation time to obtain a merged first mail operation and a merged second mail operation;

[0265] S363: According to the second mailbox information, the merged first email operation and the merged second email operation are reported to the migration server to synchronize the email operations.

[0266] S370: After the overall mail data migration is completed, delete the first mailbox information.

[0267] Please refer to Fig.13 In order to better implement the method for processing the mail operation provided by the present application, the present application further provides a mail operation processing device 400, such as Fig.13 As shown, the processing device 400 for the mail operation includes:

[0268] The information acquisition module 410 is used to acquire the first mailbox information of the target user corresponding to the outgoing server during the process of migrating the overall mail data of the outgoing server to the incoming server, wherein the first mailbox information includes the sender domain name indicating the target user corresponding to the outgoing server and the mail protocol adopted by the outgoing server;

[0269] The email acquisition module 420 is used to acquire the historical email data of the target user from the migration server according to the first mailbox information;

[0270] The email viewing module 430 is used to display the historical email data in response to the viewing operation on the historical email data;

[0271] The mail reply module 440 is used to respond to the reply operation on the historical mail data and send the reply mail data of the historical mail data to the reply object indicated by the reply operation through the migration server.

[0272] In an optional embodiment, the information acquisition module 410 is further used to:

[0273] Acquire the second mailbox information of the target user corresponding to the migration server, the second mailbox information including the sender domain name indicating the target user corresponding to the migration server, and the mail protocol adopted by the migration server;

[0274] The email acquisition module 420 is also used for:

[0275] According to the second mailbox information, the current mail data of the target user is obtained from the migration server.

[0276] In an optional embodiment, the mail operation processing device 400 further includes a mail operation processing module, and the mail operation processing module is used to:

[0277] The historical mail data and the current mail data are merged to obtain the merged mail data.

[0278] In an optional embodiment, the mail operation processing module is further used for:

[0279] According to the email type, the historical email data and the current email data are classified into the mailboxes of the corresponding email type;

[0280] According to the mail merging strategy corresponding to the mail boxes of each mail type, the mail data of each mail box is merged to obtain the merged mail data.

[0281] In an optional embodiment, the mailbox includes an inbox, and the mail operation processing module is further used for:

[0282] Sorting the email data in the inbox according to the receipt time to obtain sorted email data;

[0283] According to the receiving time of the mail data, the sorted mail data is deduplicated to obtain the merged mail data.

[0284] In an optional embodiment, the email reply module 440 is further configured to:

[0285] In response to a reply operation on the historical email data, determining whether there is an attachment in the historical email data;

[0286] If yes, extract the attachment from the historical email data and load the attachment into the reply email data of the historical email data;

[0287] The reply email data with the attachment is sent to the reply object through the migration server.

[0288] In an optional embodiment, in the process of migrating the overall mail data of the outgoing server to the incoming server, the mail operation processing module is further used to:

[0289] Recording the first mail operation on the historical mail data, where the first mail operation includes a viewing operation and a reply operation;

[0290] According to the first mailbox information, the first email operation is reported to the migration server to synchronize the email operation.

[0291] In an optional embodiment, the mail operation processing module is further used for:

[0292] In the process of migrating the overall mail data, a first mail operation on the historical mail data and a second mail operation on the current mail data are recorded, wherein the first mail operation includes a viewing operation and a reply operation;

[0293] After the overall mail data migration is completed, the first mail operation and the second mail operation are reported to the migration server according to the second mailbox information to synchronize the mail operations.

[0294] In an optional embodiment, the information acquisition module 410 is further used to:

[0295] After the overall mail data migration is completed, the first mailbox information is deleted.

[0296] In an optional embodiment, the mail operation processing device 400 further includes an information prompt module, and the information prompt module is used to:

[0297] Display a prompt message, which is used to indicate whether to migrate the historical email data of the corresponding target user from the migration server;

[0298] The information acquisition module 410 is also used for:

[0299] In response to a confirmation operation on the prompt information, first mailbox information of a target user corresponding to the migration server is obtained.

[0300] It should be noted that the mail operation processing device 400 provided in the embodiment of the present application and the mail operation processing method in the above embodiment belong to the same concept, and its specific implementation process is detailed in the above related embodiments and will not be repeated here.

[0301] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the processor is used to execute the steps in the method for processing mail operations provided in this embodiment by calling a computer program stored in the memory.

[0302] Please refer to Fig.14 , Fig.14 A schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application.

[0303] The electronic device 500 may include components such as a network interface 510, a memory 520, a processor 530, and a screen assembly. Those skilled in the art will appreciate that Fig.14 The structure of the electronic device 500 shown in the figure does not constitute a limitation on the electronic device 500, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0304] The network interface 510 may be used to establish a network connection between devices.

[0305] The memory 520 may be used to store computer programs and data. The computer programs stored in the memory 520 include executable codes. The computer programs may be divided into various functional modules. The processor 530 executes various functional applications and data processing by running the computer programs stored in the memory 520.

[0306] The processor 530 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire electronic device 500, and executes various functions of the electronic device 500 and processes data by running or executing computer programs stored in the memory 520 and calling data stored in the memory 520, thereby controlling the electronic device 500 as a whole.

[0307] In the embodiment of the present application, the processor 530 in the electronic device 500 will load the executable code corresponding to one or more computer programs into the memory 520 according to the following instructions, and the processor 530 will execute the steps in the processing method of the email operation provided by the present application, for example:

[0308] In the process of migrating the overall mail data of the outgoing server to the incoming server, obtaining the first mailbox information of the outgoing server corresponding to the target user, the first mailbox information including the sender domain name indicating the target user corresponding to the outgoing server, and the mail protocol adopted by the outgoing server;

[0309] According to the first mailbox information, historical email data of the target user is obtained from the migration server;

[0310] In response to a viewing operation on historical email data, displaying the historical email data;

[0311] In response to the reply operation on the historical mail data, the reply mail data of the historical mail data is sent to the reply object indicated by the reply operation through the migration server.

[0312] It should be noted that the electronic device 500 provided in the embodiment of the present application and the method for processing mail operations in the above embodiment belong to the same concept, and its specific implementation process is detailed in the above related embodiments and will not be repeated here.

[0313] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program stored therein is executed on the processor of the electronic device provided in the embodiment of the present application, the processor of the electronic device executes the steps in any of the above processing methods for mail operations suitable for electronic devices. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0314] The above is a detailed introduction to the processing method, device, storage medium, electronic device and product for email operations provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for processing mail operations, characterized in that: include: In the process of migrating the overall mail data of the outgoing server to the incoming server, obtaining the first mailbox information of the outgoing server corresponding to the target user, the first mailbox information including the sender domain name indicating the target user corresponding to the outgoing server, and the mail protocol adopted by the outgoing server; According to the first mailbox information, obtaining the historical email data of the target user from the migration server; In response to a viewing operation on the historical email data, displaying the historical email data; In response to a reply operation on the historical mail data, the reply mail data of the historical mail data is sent to a reply object indicated by the reply operation through the migration server.

2. The method for processing mail operations according to claim 1, characterized in that: In the process of migrating the overall mail data of the outgoing server to the incoming server, the method further includes: Acquire the second mailbox information of the migration server corresponding to the target user, wherein the second mailbox information includes a sender domain name indicating the target user corresponding to the migration server and a mail protocol adopted by the migration server; According to the second mailbox information, current mail data of the target user is obtained from the migration server.

3. The method for processing mail operations according to claim 2, characterized in that: The method further comprises: The historical mail data and the current mail data are merged to obtain merged mail data.

4. The method for processing mail operations according to claim 3, characterized in that: The merging of the historical mail data and the current mail data to obtain the merged mail data includes: According to the mail type, the historical mail data and the current mail data are classified into mail boxes of the corresponding mail type respectively; According to the mail merging strategy corresponding to the mail boxes of each mail type, the mail data of each mail box is merged to obtain the merged mail data.

5. The method for processing mail operations according to claim 4, characterized in that: The mailbox includes an inbox, and the mail merging strategy corresponding to the mailboxes of each mail type is used to merge the mail data of each mailbox to obtain the merged mail data, including: Sorting the email data in the inbox according to the receipt time to obtain sorted email data; According to the receiving time of the mail data, the sorted mail data is deduplicated to obtain the merged mail data.

6. The method for processing mail operations according to claim 1, characterized in that: In response to the reply operation on the historical mail data, sending the reply mail data of the historical mail data to the reply object indicated by the reply operation through the migration server includes: In response to a reply operation on the historical email data, determining whether there is an attachment in the historical email data; If yes, extract the attachment from the historical email data, and load the attachment into the reply email data of the historical email data; The reply mail data carrying the attachment is sent to the reply object through the migration server.

7. The method for processing mail operations according to any one of claims 1 to 6, characterized in that: In the process of migrating the overall mail data of the outgoing server to the incoming server, the method further includes: Recording a first mail operation on the historical mail data, where the first mail operation includes the viewing operation and the reply operation; According to the first mailbox information, the first email operation is reported to the migration server to synchronize the email operation.

8. The method for processing mail operations according to any one of claims 2 to 6, characterized in that: The method further comprises: In the process of migrating the overall mail data, recording a first mail operation on the historical mail data and a second mail operation on the current mail data, wherein the first mail operation includes the viewing operation and the reply operation; After the overall mail data migration is completed, the first mail operation and the second mail operation are reported to the migration server according to the second mailbox information to synchronize the mail operations.

9. The method for processing mail operations according to any one of claims 1 to 6, characterized in that: The method further comprises: After the overall mail data migration is completed, the first mailbox information is deleted.

10. The method for processing mail operations according to any one of claims 1 to 6, characterized in that: Before obtaining the first mailbox information of the target user corresponding to the migration server, the method further includes: Displaying prompt information, wherein the prompt information is used to indicate whether to migrate the historical email data corresponding to the target user from the migration server; The obtaining the first mailbox information of the target user corresponding to the migration server includes: In response to a confirmation operation on the prompt information, first mailbox information of the migration-out server corresponding to the target user is obtained.

11. A processing device for mail operation, characterized in that: include: An information acquisition module, used for acquiring first mailbox information of a target user corresponding to the outgoing server during the process of migrating the overall mail data of the outgoing server to the incoming server, wherein the first mailbox information includes a sender domain name indicating that the target user corresponds to the outgoing server and a mail protocol adopted by the outgoing server; An email acquisition module, configured to acquire the historical email data of the target user from the migration server according to the first mailbox information; An email viewing module, configured to display the historical email data in response to a viewing operation on the historical email data; The mail reply module is used for responding to the reply operation on the historical mail data and sending the reply mail data of the historical mail data to the reply object indicated by the reply operation through the migration server.

12. A storage medium having a computer program stored thereon, characterized in that: When the computer program is loaded by the processor, the steps in the method for processing mail operations according to any one of claims 1 to 10 are executed.

13. An electronic device comprising a processor and a memory, wherein the memory stores a computer program, wherein: The processor is configured to execute the steps in the mail operation processing method according to any one of claims 1 to 10 by loading the computer program.

14. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps in the method for processing mail operations according to any one of claims 1 to 10 are implemented.