Mail display method and device, medium and computing equipment

Repeat the email to the server through the client to repeat the original text of the email and process the return results, and the server is processed abnormal email when reaching the preset threshold threshold to solve the readability and consultation experience caused by the analysis of abnormalities in the email display. More accurate and readable email display.

CN119342031APending Publication Date: 2025-01-21NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411500707.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

During the email display process, the client cannot foresee and handle all possible parsing exceptions, resulting in erroneous email format, incomplete content display or garbled code, reducing the readability of the email and user review experience.

Method used

By repeatedly sending the original text to the server on the client, the original text of the email was repeatedly requested, and the receipted return results were parsed and processed until the analysis was successful. If the number of sending times reaches the preset threshold, the server trigger an abnormal mail processing process, and generates the original text of the processing mail and returns to the client.

Benefits of technology

It improves the accuracy and readability of email display, solves the problem of users being unable to quickly and accurately obtain key information in emails due to parsing anomalies, and improves users' email viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342031A_ABST
    Figure CN119342031A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a mail display method and device, a medium and computing equipment, and the method comprises the steps: initiating a mail original text synchronization request for a mail original text which is analyzed abnormally for multiple times when a client side is analyzed abnormally, and carrying out the synchronization of the mail original text through a repeated retry mechanism for pulling the mail original text. The server side identifies that the mail original text belongs to the analyzed abnormal mail, triggers the server side to reorganize the mail original text to generate a processed mail original text, and sends the processed mail original text to the client side, and the client side analyzes and displays the received processed mail original text. Therefore, on the premise of not changing an email protocol between the client and the server of the email system, the accuracy and readability of email display are improved, the problem that a user is difficult to quickly and accurately obtain key information in the email due to analysis abnormity is effectively solved, and the email consulting experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of communication technology, and more specifically, embodiments of the present invention relate to a mail display method, apparatus, medium, and computing device. Background Art

[0002] This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.

[0003] Email display involves the interactive access between the client and server of the email system. Currently, after the server transmits the original email to the client through the email protocol, the client will parse the information in the email header of the original email, render the email display interface according to the content of the email body, and finally display it on the client for users to view.

[0004] In the above process of parsing the original email, the final display result of the original email on the client mainly depends on the email parsing capability of the client, which requires the client to be able to flexibly handle various parsing exceptions. However, since the client cannot foresee and handle all possible exceptions, in the event of a parsing exception, the email display may show problems such as incorrect email format, incomplete content display or garbled characters, which reduces the readability of the email and the user's reading experience, making it difficult for users to quickly and accurately obtain key information in the email. Summary of the invention

[0005] In view of this, in order to solve the above problems, the embodiments of the present invention are intended to provide a mail display method, device, medium and computing device to achieve

[0006] In a first aspect of an embodiment of the present invention, a mail display method is provided, which is applied to a client, and the method includes:

[0007] Send a request to the server to synchronize the original text of the email to be displayed;

[0008] Receiving the original email text returned by the server in response to the email text synchronization request, and parsing the original email text according to the set email parsing rules;

[0009] In case of parsing exception, repeatedly send the email original text synchronization request of the email to be displayed to the server, and parse the return result received from the server until the parsing is successful, and display the parsed email content on the client;

[0010] Among them, when the number of times the email original text synchronization request is sent does not reach the preset number threshold, the returned result is the original email original text; when the number of times the sending reaches the number threshold, the returned result is the processed email original text obtained by processing the original email original text according to the set abnormal email processing process.

[0011] Optionally, the method further comprises:

[0012] When the number of times the original email synchronization request is received reaches the number threshold, the server obtains the email body from the original email text;

[0013] Converting the first content for text display in the body of the email into the second content in text form;

[0014] The email body is updated according to the second content to obtain the processed email original text.

[0015] Optionally, the method further comprises:

[0016] The server adds a prompt text to the second content;

[0017] Among them, the prompt text includes at least one of the first type of prompt and the second type of prompt; the first type of prompt is used to indicate that the email content parsing of the email to be displayed is abnormal; the second type of prompt is used to indicate viewing the email to be displayed parsed by the server through the hyperlink address.

[0018] Optionally, the method further comprises:

[0019] In case of the parsing exception, a loading animation is displayed on the client interface.

[0020] In a first aspect of an embodiment of the present invention, a mail display method is provided, which is applied to a server, and the method includes:

[0021] Receiving a synchronization request for the original text of the email to be displayed from the client, and recording the number of times the synchronization request for the original text of the email to be displayed is received;

[0022] When the number of receptions is less than a preset number threshold, searching for a matching original email text according to the email text synchronization request and returning the original email text to the client;

[0023] When the number of receptions reaches the number threshold, the original email text is processed according to the set abnormal email processing flow, and a processed email text is generated and returned to the client.

[0024] Optionally, the email original text synchronization request includes a unique identifier of the email to be displayed; and the recording of the number of times the email original text synchronization request of the email to be displayed is received includes:

[0025] According to the unique identifier, the number of times the original email synchronization request corresponding to the unique identifier is received is tracked and counted.

[0026] Optionally, the method further comprises:

[0027] After the processed email original text is generated and returned to the client, the number of times the email original text synchronization request corresponding to the unique identifier is received is reset to zero after a set period of time.

[0028] Optionally, the processing of the original email text according to a set abnormal email processing process includes:

[0029] Obtaining the email body from the original email text;

[0030] Converting the first content for text display in the body of the email into the second content in text form;

[0031] The email body is updated according to the second content to obtain the processed email original text.

[0032] Optionally, the method further comprises:

[0033] Adding a prompt text to the second content;

[0034] Among them, the prompt text includes at least one of the first type of prompt and the second type of prompt; the first type of prompt is used to indicate that the email content parsing of the email to be displayed is abnormal; the second type of prompt is used to indicate viewing the email to be displayed parsed by the server through the hyperlink address.

[0035] In a third aspect of the embodiments of the present invention, there is provided a mail display device, which is applied to a client, and the device includes:

[0036] The sending module is used to send a synchronization request of the original text of the email to be displayed to the server;

[0037] A first parsing module, configured to receive the original email text returned by the server in response to the email text synchronization request, and parse the original email text according to a set email parsing rule;

[0038] A repeated synchronization and parsing module is used to repeatedly send a synchronization request for the original email to be displayed to the server in the case of parsing exception, and parse the return result received from the server until the parsing is successful, and display the parsed email content on the client;

[0039] Among them, when the number of times the email original text synchronization request is sent does not reach the preset number threshold, the returned result is the original email original text; when the number of times the sending reaches the number threshold, the returned result is the processed email original text obtained by processing the original email original text according to the set abnormal email processing process.

[0040] Optionally, the device further comprises:

[0041] When the number of times the original email synchronization request is received reaches the number threshold, the server obtains the email body from the original email text;

[0042] Converting the first content for text display in the body of the email into the second content in text form;

[0043] The email body is updated according to the second content to obtain the processed email original text.

[0044] Optionally, the device further comprises:

[0045] The server adds a prompt text to the second content;

[0046] Among them, the prompt text includes at least one of the first type of prompt and the second type of prompt; the first type of prompt is used to indicate that the email content parsing of the email to be displayed is abnormal; the second type of prompt is used to indicate viewing the email to be displayed parsed by the server through the hyperlink address.

[0047] Optionally, the device further comprises:

[0048] In case of the parsing exception, a loading animation is displayed on the client interface.

[0049] In a fourth aspect of the embodiments of the present invention, another mail display device is provided, which is applied to a server, and the device includes:

[0050] The receiving and recording module is used to receive the original text synchronization request of the email to be displayed from the client, and record the number of times the original text synchronization request of the email to be displayed is received;

[0051] The response module is used to search for the matching original email text according to the email unique identifier and return it to the client when the number of reception times is less than the preset number threshold; when the number of reception times reaches the number threshold, process the original email text according to the set abnormal email processing process, generate a processed email text and return it to the client.

[0052] Optionally, the email original text synchronization request includes a unique identifier of the email to be displayed; and the receiving and recording module is specifically configured to:

[0053] According to the unique identifier, the number of times the original email synchronization request corresponding to the unique identifier is received is tracked and counted.

[0054] Optionally, the device further comprises:

[0055] After the processed email original text is generated and returned to the client, the number of times the email original text synchronization request corresponding to the unique identifier is received is reset to zero after a set period of time.

[0056] Optionally, the response module is specifically used to:

[0057] Obtaining the email body from the original email text;

[0058] Converting the first content for text display in the body of the email into the second content in text form;

[0059] The email body is updated according to the second content to obtain the processed email original text.

[0060] Optionally, the device further comprises:

[0061] Adding a prompt text to the second content;

[0062] Among them, the prompt text includes at least one of the first type of prompt and the second type of prompt; the first type of prompt is used to indicate that the email content parsing of the email to be displayed is abnormal; the second type of prompt is used to indicate viewing the email to be displayed parsed by the server through the hyperlink address.

[0063] In a fifth aspect of the embodiments of the present invention, a readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned email display method is implemented.

[0064] In a sixth aspect of the implementation of the present invention, a computing device is provided, comprising: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the above-mentioned email display method by calling the computer program.

[0065] According to the email display method provided by the embodiment of the present invention, when a parsing exception occurs on the client, the method initiates multiple email original text synchronization requests for the email original text with the parsing exception, and through a multiple retry mechanism of pulling the email original text, the server recognizes that the email original text belongs to a parsing exception email, and triggers the server to reorganize the email original text and generate a processed email original text to send to the client. The client parses and displays the received processed email original text, thereby improving the accuracy and readability of email display without changing the email protocol between the client and server of the email system, effectively solving the problem that users find it difficult to quickly and accurately obtain key information in emails due to parsing exceptions, and improving the user's email reading experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] The above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, in which:

[0067] Figure 1 The following schematically shows the interaction between the client and the server in a mail display method according to an embodiment of the present invention;

[0068] Figure 2A A flowchart of a method for displaying mails applied to a client according to an embodiment of the present invention is schematically shown;

[0069] Figure 2B An example of MIME encoding of a mail header of an email according to an embodiment of the present invention is schematically shown;

[0070] Figure 3A A schematic diagram of an original email text in a MIME encoding format retrieved by a server according to an embodiment of the present invention is shown schematically;

[0071] Figure 3B A schematic diagram of a first content for text display in an email body according to an embodiment of the present invention is schematically shown;

[0072] Figure 3C A schematic diagram showing conversion of first content for text display in a body of an email into second content in text form according to an embodiment of the present invention is shown;

[0073] Figure 3D A schematic diagram schematically shows a processed email original text obtained by an original email original text through an abnormal email processing flow according to an embodiment of the present invention;

[0074] Figure 4A flowchart of a method for displaying mails applied to a server according to an embodiment of the present invention is schematically shown;

[0075] Figure 5 The following schematically shows an interaction diagram between a client and a server in an exemplary scenario according to an embodiment of the present invention;

[0076] Fig. 6A A block diagram of a mail display device applied to a client according to an embodiment of the present invention is schematically shown;

[0077] Figure 6B A block diagram of a mail display device applied to a server according to an embodiment of the present invention is schematically shown;

[0078] Figure 7 A schematic diagram of a medium according to an embodiment of the present invention is schematically shown;

[0079] Figure 8 A schematic diagram of a computing device according to an embodiment of the present invention is schematically shown.

[0080] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION

[0081] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.

[0082] Those skilled in the art know that the embodiments of the present invention can be implemented as a system, device, apparatus, method or computer program product. Therefore, the present invention can be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0083] It should be understood herein that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.

[0084] The principle and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention.

[0085] The original email refers to the original email content stored by the server of the email system without any processing. It is a complete email and contains all the components of the email from the email header to the email content. Among them, the email header contains the metadata of the email, that is, information about the email itself, not the email content itself. The metadata may include but is not limited to: the sender's email address, one or more recipients' email addresses, CC and BCC email addresses, email subject / title, email sending timestamp, and other header information such as the MIME (Multipurpose Internet Mail Extensions) version of the email, content type, character set, etc. The email content includes the email body and any attachments. The email body is the main part of the email used to convey the sender's intentions and information. It can be in plain text or HTML format, and can also contain multimedia content such as pictures and links.

[0086] Email display involves interactive access between the client and server of the email system. Currently, after the server transmits the original email to the client via the email protocol, the client will parse the information in the email header of the original email, render the email display interface according to the content of the email body, and finally display it on the client for the user to view. In the email display process, the email protocol defines how to transmit email data in the network, but does not involve the specific display method of the email content. Therefore, the final display result of the original email on the client mainly depends on the email parsing ability of the client.

[0087] In the above process of parsing the original email, the client needs to handle various parsing anomalies compatibly, such as abnormal email body format, abnormal attachment content format, etc. After the original email parsing is completed, the client will try to display the final parsed email for the user to view, to ensure the basic accessibility of the email. However, since the client cannot foresee and handle all possible abnormal situations, in the event of a parsing anomaly, the email display may have problems such as incorrect email format, incomplete content display or garbled characters, which not only reduces the readability and display effect of the email, but also affects the user's reading experience, making it difficult for users to quickly and accurately obtain key information in the email.

[0088] In addition, the client will continue to correct known email original text parsing anomalies through version updates. However, since the client releases new versions periodically, the client cannot immediately resolve existing parsing anomalies before the new version is released, resulting in the above-mentioned problems still existing in email display.

[0089] In view of this, the present invention proposes an email display method suitable for email display scenarios. The method involves interaction between a client and a server in an email system. When a parsing exception occurs on the client, the method initiates multiple email original text synchronization requests for the email original text with the parsing exception. Through a multiple retry mechanism for pulling the email original text, the server recognizes that the email original text belongs to a parsing exception email, and triggers the server to reorganize the email original text to generate a processed email original text and send it to the client. The client parses and displays the received processed email original text, thereby improving the accuracy and readability of email display without changing the email protocol between the client and the server of the email system, effectively solving the problem that users find it difficult to quickly and accurately obtain key information in emails due to parsing exceptions, and improving the user's email reading experience.

[0090] After introducing the basic principles of the present invention, various non-limiting embodiments of the present invention are described in detail below.

[0091] Exemplary Methods

[0092] Reference below Figure 1-Figure 8 The email display method provided by the present invention relates to the interaction between the client and the server in the email scenario, such as Figure 1 As shown, the server is used to receive the email original text synchronization request sent by the client and respond to it, return the corresponding original email original text to the client, and when identifying the email original text with parsing exceptions on the client, obtain the email original text with parsing exceptions and reorganize it to generate a processed email original text and return it to the client; the client is used to access the server to request the email original text, and it initiates an email original text synchronization request to the server, receives the response result returned by the server for parsing, and repeatedly initiates the email original text synchronization request in the case of parsing exceptions to repeatedly pull the email original text with parsing exceptions from the server. When the number of repeated pulls reaches the number agreed by both parties, the server response result received by the client is the processed email original text reorganized by the server, and the email content is directly displayed after parsing the processed email original text.

[0093] The client may include a software application installed on a user's device for receiving, sending, and managing emails, such as an XX mailbox APP (Application) for accessing email services. The client provides a graphical user interface that enables users to view emails, compose new emails, and manage email accounts.

[0094] The server may include a mail server that provides services such as storage, processing and forwarding of emails. When a user sends or receives emails through a client, data is actually exchanged with the server. The server communicates with the client to respond to the client's request, such as sending emails, receiving emails, querying email status, etc.

[0095] Based on the above description of the interaction process between the client and the server, in order to more clearly illustrate the email display method provided by the present invention, the email display method is described in detail from the perspective of the client, taking the client of the email system as the method execution subject. Figure 2A An exemplary flowchart of a method for displaying mails applied to the client is shown. The method may include at least the following steps:

[0096] S201, sending a request for synchronizing the original text of the email to be displayed to the server;

[0097] The mail to be displayed includes at least one email that the user wants to view on the client, and the mail is stored on the server of the mail system, waiting for synchronization and display by the user.

[0098] The original email synchronization request refers to a request sent by the client to request the server to obtain the original email for display on the client, which can be implemented through the email communication protocol between the client and the server. That is, the client needs to display the email content to the user in response to the user operation, so it communicates with the server through the preset email protocol to request to obtain the detailed data of the original email indicated by the user operation. The request sent by the client and the server in communication can be used as the original email synchronization request.

[0099] In this embodiment, the email original text synchronization request may include the unique identifier of the email to be displayed, so that when the server receives the email original text synchronization request, it can accurately retrieve the email text of the email to be displayed from the database according to the unique identifier. In addition, the email original text synchronization request may also include user authentication information such as a session token to ensure that the server can verify the legitimacy of the requester's identity and improve communication security.

[0100] Sending a mail original text synchronization request to the server can be implemented according to the email communication protocol between the client and the server. Different email communication protocols use different instruction formats and transmission mechanisms to implement mail original text synchronization. For example, the email communication protocol can include but is not limited to any one of the IMAP protocol (Internet Mail Access Protocol) and the ActiveSync protocol (Exchange ActiveSync). In the case where the email communication protocol between the client and the server is the IMAP protocol, the mail original text synchronization request may include the Fetch instruction of the IMAP protocol; in the case where the email communication protocol between the client and the server is the ActiveSync protocol, the mail original text synchronization request may include the Sync instruction of the ActiveSync protocol.

[0101] Among them, the Fetch instruction is an instruction under the IMAP protocol, which is used by the communication client of the IMAP protocol to read emails from the server. The client can use the Fetch instruction to obtain specific part or all of the content of the email from the server, such as the email header, email body, attachments, etc., which allows the client to selectively download email content as needed, thereby reducing network traffic consumption.

[0102] In the ActiveSync protocol, the Sync command is the main way for the client to obtain email data on the server. The client can interact with the server through the Sync command to synchronize emails. It supports incremental synchronization, that is, only synchronizing data that has changed since the last synchronization, thereby reducing synchronization time and network bandwidth usage.

[0103] For example, when a mailbox APP notifies that there is a new email to be read, when the user clicks on the subject of the new email to view the email content details, the client can send an email original text synchronization request to the server. The request can carry the identification ID of the new email, with the purpose of obtaining the complete email content of the new email from the server.

[0104] S202, receiving the original email text returned by the server in response to the email text synchronization request, and parsing the original email text according to the set email parsing rules;

[0105] The original email text refers to the complete email content of the email to be displayed retrieved from the server storage by the server in response to the email text synchronization request, including all components such as email header information, body content and attachments.

[0106] For the server, in response to receiving the original email synchronization request from the client, the server can retrieve the complete email content corresponding to the unique identifier from the database or storage space according to the unique email identifier carried in the original email synchronization request, and package the complete email content into a format suitable for network transmission such as JSON or HTML according to the email communication protocol and return it to the client. In order to improve the security of communication, after receiving the original email synchronization request, the server can also verify the legitimacy and security of the request first, and retrieve the complete email content when confirming that the request comes from an authenticated account.

[0107] The set email parsing rules include a series of rules and algorithms for parsing and processing the original email text. The email parsing rules predefine how to parse different components of the original email text, how to extract useful information, and how to process special content in the email text such as HTML formatted text, encrypted attachments, etc.

[0108] For example, in a MIME-encoded email, the message content is organized into multiple MIME parts, each with its own specific content type and encoding. Figure 2B An example of MIME encoding of an email header is shown, in which different email header information is encoded separately by setting field types, and a boundary string boundary is also defined to separate different parts of the email original text. Based on the MIME encoding format, the set email parsing rules may include a rule set for parsing emails in MIME encoding format, covering everything from basic email header parsing to complex multi-part MIME structure processing, as well as special content processing and error handling, to ensure that the various components of the original email original text can be correctly extracted to render and generate the client's email display interface so that the user can obtain the email content.

[0109] For the client, after sending an email original text synchronization request to the server, in response to receiving the original email text returned by the server, the encoding format of the original email text can be identified, and the original email text can be parsed according to the email parsing rules that match the encoding format to extract various parts of the email, such as the email header, email body, attachments, etc.

[0110] S203, in case of parsing exception, repeatedly sending a synchronization request for the original email of the email to be displayed to the server, parsing the return result received from the server until the parsing is successful, and displaying the parsed email content on the client;

[0111] Among them, when the number of times the email original text synchronization request is sent does not reach the preset number threshold, the returned result is the original email original text; when the number of times the sending reaches the number threshold, the returned result is the processed email original text obtained by processing the original email original text according to the set abnormal email processing process.

[0112] The parsing exception is used to indicate that the client encounters any known or unknown error in the process of parsing the original email text, resulting in the client being unable to successfully parse the various components of the email according to the preset email parsing rules. The parsing exception may include but is not limited to format errors, encoding problems, lost data that cannot be read, unknown or unsupported MIME types, or other situations that result in the inability to correctly parse the email content, etc. In this embodiment, if a parsing exception occurs during the client parsing process, the parsing of the original email text is temporarily stopped, and a request for email text synchronization is resent to the server.

[0113] The preset number threshold is used to limit the number of times the client sends email original text synchronization requests to the server, which can prevent the client from falling into an invalid cycle of repeatedly sending email original text synchronization requests due to parsing exceptions. At the same time, the preset number threshold serves as a critical value for the server to identify whether the email to be displayed is a parsing exception. It is used to trigger the server to process the original email text of the abnormal email according to the set abnormal email processing flow to obtain the processed email text.

[0114] The abnormal email processing process is used to reorganize the original email text that the client cannot parse normally by reducing the complex format of the original email text without changing the key information of the email, and generate a processed email text corresponding to the original email text. The processed email text is processed by the server and returned as the email content that can be parsed by the client, thereby improving the reliability of email display. For example, the original email text can be converted into a simplified text form readable by the user through reorganization, such as parsing the email header and body to extract the basic information and body content of the email, ensuring that the user can obtain the key information of the email, and parsing the email body into the simplest text form to avoid parsing anomalies caused by complex formats. The reorganization process can also provide additional text information and hyperlink access methods so that users can view the complete email content by accessing the hyperlink through a browser.

[0115] In this embodiment, for the parsing process described in step S202, when a parsing exception occurs during the parsing process, the client temporarily stops parsing the original email text and resends the email text synchronization request to the server. When the number of sending times does not reach the preset number threshold, the server is not triggered to identify that the email to be displayed is an abnormal email. The server responds to the latest received email text synchronization request (the email text synchronization request resent by the client) and returns the original email text. The client continues to receive the original email text and parses it: if the parsing is successful, stop sending the email text synchronization request, and render and display the email display page according to the parsing result; otherwise, if the parsing fails, continue to send the email text synchronization request.

[0116] After multiple rounds of resending the original email synchronization request, receiving the original email and parsing the abnormal operation, if the current original email synchronization request meets the preset number of times, the server will be triggered to identify the email to be displayed as an abnormal email and enter the abnormal email processing process. The server will process the original email to be displayed according to the preset abnormal email processing process to obtain the processed email text and return the processed email text to the client. For the client, when the current original email synchronization request meets the preset number of times, based on the original email synchronization request, the result returned by the server received by the client will be the processed email text instead of the original email text. After the client successfully parses the processed email text, it will render and display the email display page according to the parsing result.

[0117] For example, assuming that the preset number threshold is 3, the client requests the original email text M1 of the email to be displayed and performs parsing processing through steps S201 and S202. When a parsing exception occurs:

[0118] Stop parsing and send the second email text synchronization request. At this time, the server still returns the original email text M12. The client parses the newly returned original email text M1. If the parsing is successful, the email display page is rendered. Otherwise, if the parsing is abnormal:

[0119] Stop parsing and send the email original text synchronization request for the third time. When the number of times the request is sent reaches the preset threshold, the server enters the abnormal email processing process and returns the processed email original text M2. The client parses the newly returned processed email original text M2 and renders the generated email display page after successful parsing.

[0120] In this embodiment, the value of the preset number threshold is greater than or equal to 2. In order to avoid client email parsing exceptions caused by errors in the network data transmission process, the value of the preset number threshold can be set to be greater than or equal to 3. When the number threshold is not reached, the client always receives the original email text constructed by the server in response to the email original text synchronization request. The parsing of the original email can effectively verify whether the parsing exception is caused by a network transmission error, thereby reducing unnecessary server-side abnormal email processing process execution triggered by transmission errors.

[0121] In the disclosed embodiment, when the client parses the original text of the email, the client does not abandon or parse or directly display the erroneous content in response to the abnormal parsing situation, but chooses to repeatedly send the original text synchronization request of the email to the server and re-parse the return result of the server until the parsing is successful. When the number of times the original text synchronization request of the email is sent reaches a preset number threshold, the abnormal email dynamic perception of the server is triggered, so that the server will return the processed email original text reorganized and generated by the abnormal email processing flow, so that the server can correctly parse and extract the key information of the email to be displayed based on the processed email original text. Under the premise of not changing the email communication protocol between the client and the server in the email system, the method triggers the abnormal email dynamic perception of the server by using the mechanism of repeatedly pulling the original text of the email in the email communication protocol, introduces the abnormal email processing flow of the server and returns the processed email original text, greatly enhances the fault tolerance and success rate of email parsing, improves the accuracy and readability of email display, avoids the display failure caused by the client's inability to handle the exception, effectively solves the problem that users are difficult to quickly and accurately obtain key information in the email due to parsing exceptions, enhances the flexibility and robustness of email display, and improves the user's email reading experience.

[0122] In some embodiments, regarding the processed email original text obtained by processing the original email original text according to the set abnormal email processing flow in step S203 in the above embodiment, the processed email original text can be generated by the server, that is, it can be implemented through the following steps a1-a3:

[0123] a1, when the number of times the original email synchronization request is received reaches the number threshold, the server obtains the email body from the original email text;

[0124] When the number of times the client repeatedly sends the original email text synchronization request for the email to be displayed reaches a preset threshold number of times, that is, the number of times the original email synchronization request is received in the server reaches the threshold number of times, when responding to the most recently received original email synchronization request, the server no longer directly encapsulates the original email text of the email to be displayed retrieved from the database or storage space into a network transmission format and returns it to the client, but processes the original email text of the retrieved email to be displayed through a pre-set abnormal email processing flow to generate a processed email text and return it to the client as a response result.

[0125] Specifically, in this embodiment, the body of the email is first extracted from the original email text of the retrieved email to be displayed, that is, the core content of the original email text used to convey the information or request expressed by the sender to the recipient. The body of the email is the text area in the email used to write and display specific information, usually located after the email header (including sender, recipient, subject, etc.) and before the attachment part, which can include plain text format and HTML format that supports richer layout and style.

[0126] For example, see Figure 3A An exemplary diagram of an original email text in MIME encoding format retrieved by a server is shown, in which the three components of the original email text, namely, the email header, the email body and the attachment, are clearly identified, wherein the email body is the text content in HTML format.

[0127] a2, converting the first content for text display in the body of the email into the second content in text form;

[0128] That is, the email body is converted into the simplest text format to avoid parsing anomalies caused by complex formats. Figure 3A The first content of the email body used for text display is as follows Figure 3B As shown, the text content is extracted and converted into plain text, and the converted second content in text form is shown in 3C. During the conversion process of the first content, all HTML tags in the first content are removed. <h1>, ,, etc., retaining the text content between tags. At the same time, in order to clearly display the structure of the original information in plain text format, the line breaks between paragraphs can also be retained.

[0129] a3, updating the email body according to the second content to obtain the processed email original text.

[0130] That is, while keeping other parts of the original email text, such as the email header and attachment parts, unchanged, the first content in the original email text is replaced with the second content in text form, and the replaced email text is used as the processed email text.

[0131] For example, for Figure 3A The original email text shown in the Figure 3C After updating the email body with the second content shown in Figure 3D The processed email original text is shown as an example, and the content of the email body is updated.

[0132] In the disclosed embodiment, when the number of times the original email synchronization request is sent reaches the preset number threshold, the server performs necessary conversion and processing on the original email text through the set abnormal email processing process, avoiding the influence of complex formats on the client email parsing, and returns the processed email text to the client, so that the client can finally receive a parsable email content, thereby improving the reliability of email display. At the same time, converting the email body into text format ensures that the user can obtain valid information in the email, reduces the amount of data transmitted over the network, and enhances the flexibility of client email parsing.

[0133] In some embodiments, based on considerations of improving the readability of email content and user convenience, and in order to provide users with clearer information and guidance when handling email display anomalies, if the first content used for text display in the email body described in the aforementioned step a2 is itself in plain text format, then new prompt text can be added for the first content; or, the prompt text can also be added for the second content in text form converted in step a2.

[0134] Among them, the prompt text includes at least one of the first type of prompt and the second type of prompt; the first type of prompt is used to indicate that the email content parsing of the email to be displayed is abnormal; the second type of prompt is used to indicate viewing the email to be displayed parsed by the server through the hyperlink address.

[0135] That is, the first type of prompt is used to clearly inform the user that the current email encountered a problem during the parsing process, resulting in the inability to display it in its original format or a richer format, so that the user can understand the possible missing information or errors and make corresponding treatment accordingly. For example, the prompt text can be "Note: The parsing of the email content is abnormal, and the following is displayed in plain text format", "There is an abnormality in the parsing, please contact the sender" or similar expressions.

[0136] The second type of prompt provides an alternative solution for users, that is, if users want to view the email content that has been fully parsed and formatted by the server, they can click on the provided hyperlink address to view the email content adapted by the server through the browser. The email version indicated by the hyperlink address is presented through the email display interface of the server, which can accurately display the HTML format, attachments and other contents of the email, ensuring that users can obtain complete email information. For example, the prompt text can be "Click here to view the email parsed by the server" or similar expressions, with a hyperlink to the email viewing page on the server.

[0137] In the embodiment of the present disclosure, in the event of abnormal client email parsing, the email content that cannot be parsed normally is simplified into plain text, and prompt information and hyperlinks are provided to ensure that users can obtain basic email information and view the complete content through a browser, thereby improving user experience and the reliability of the email system.

[0138] In some embodiments, when the return result of the server received by the client is the processed original email, that is, after the client reaches the preset number of times of the original email synchronization request for the latest email to be displayed, and receives the return result of the server for the latest sent original email synchronization request, based on the fact that the processed original email is the email content that can be parsed by the client, the client can parse the processed original email, and render the email display page according to the parsing result after the parsing is completed. In some extreme cases, when the client parses the processed original email, there is still a parsing anomaly problem, then the parsing of the return result of the server received in the aforementioned step S203 is performed until the parsing is successful, and the following processing steps can also be included, namely: when the return result of the server received by the client is the processed original email (that is, the number of times the original email synchronization request is sent reaches the preset number of times), stop sending the original email synchronization request, parse the processed original email, and render the generated email display page according to the parsing result and display it on the client. That is, if the parsing of the processed original email is still abnormal in extreme cases, the parsing result will still be displayed on the client. Since prompt text can be added to the processed email original text to remind users that they can use the browser to view the email display page adapted by the server through the hyperlink, the impact on user experience caused by the email display in this extreme case is effectively reduced.

[0139] In some embodiments, in order to further optimize the user experience, when a parsing exception occurs during the parsing of the email content, in order to reduce the user's anxiety caused by waiting or uncertainty, a loading animation can also be displayed on the client interface in the event of the parsing exception.

[0140] The loading animation is a dynamic visual element displayed on the client interface, and its purpose is to convey to the user that the system is processing the current problem or is preparing to display alternative content, so as to reduce the user's anxiety caused by waiting or uncertainty.

[0141] For example, the recording animation may include at least any one of the following forms: a rotating icon, a progress bar, a dynamic pattern, a custom animation, and an animation combined with a text prompt. The rotating icon may be a rotating arrow or circle, which intuitively indicates that it is "working"; the dynamic pattern, such as ripples, flashing dots, or gradually changing geometric shapes, attracts the user's attention through dynamic visual changes, while conveying the status of the system processing information; the custom animation may apply the visual style of the brand to design a unique loading animation, such as the gradual appearance of the brand logo or the cyclic change of a specific pattern, which can not only improve the user experience, but also enhance brand recognition; the animation combined with a text prompt refers to adding a short text prompt next to or below the loading animation, such as "Loading email content, please wait..." or "Parsing, please wait patiently", so as to more effectively convey information to the user.

[0142] In the embodiments of the present disclosure, by introducing a loading animation in the client interface, visual dynamic feedback is used to allow the user to perceive that the system is actively processing the loading operation of emails to be displayed, thereby improving the user's perception of the system's responsiveness, diverting the user's attention from long waits or erroneous displays to a certain extent, alleviating the user's anxiety about waiting, and improving the smoothness and user-friendliness of the interaction process.

[0143] In the above embodiment, the email display method provided by the present invention is introduced from the perspective of the client of the email system. In order to more clearly show the entire email display process, this embodiment provides another email display method. The email display method uses the server involved in the above embodiment as the method execution subject, which is used to describe the behavior and processing logic of the server in the email display method. Figure 4 The following is a flowchart of an exemplary method for displaying mails on a server. Through processing on the server, the client can obtain and display the original mail. The method may include at least the following steps:

[0144] S401, receiving a request for synchronizing the original text of an email to be displayed from a client, and recording the number of times the request for synchronizing the original text of the email to be displayed is received;

[0145] After the client initiates the first email text synchronization request for the email to be displayed, it receives the original email text from the server and performs parsing processing. In the event of a parsing exception, the client will repeatedly execute the sending of the email text synchronization request until the parsing is successful. Based on the behavior of the client, the server has established a communication connection with the client, and can receive the email text synchronization request from the client. By processing the email text synchronization request, the object email pointed to by the email text synchronization request can be identified, wherein the received request includes the email text synchronization request for the email to be displayed. The server can record the number of times the email text synchronization request for the email to be displayed is received, and the number of times the email text synchronization request is initialized to 0. Each time a received email text synchronization request points to the email to be displayed, the number of times the corresponding email to be displayed is received is increased by 1.

[0146] For example, if a user requests to view the details of the email content of email A to be displayed through the client interface, the client sends the first email original text synchronization request P_1. When the server receives P_1, it updates the number of receptions corresponding to email A to 1, and returns the original email original text M1 retrieved in response to P_1; if the client performs parsing processing on M1 and there is a parsing exception, it sends the second email original text synchronization request P_2. The server receives P_2 and updates the number of receptions corresponding to email A to 2. It can be understood that the email original text synchronization request P_1 and the email original text synchronization request P_2 are the same request, and different identifiers are used in this embodiment only for description distinction.

[0147] The email original text synchronization request may include the unique identifier of the email to be displayed, so that the server can accurately identify the target email pointed to by the current email original text synchronization request. Based on the unique identifier of the email to be displayed, the recording of the number of times the email original text synchronization request of the email to be displayed is received in the aforementioned step S401 can be implemented according to the unique identifier of the email to be displayed, that is, according to the unique identifier, the number of times the email original text synchronization request corresponding to the unique identifier is received is tracked and counted.

[0148] S402, when the number of receptions is less than a preset number threshold, searching for a matching original email text according to the email text synchronization request and returning the original email text to the client;

[0149] The preset number of times threshold has the same meaning as the preset number of times threshold described in the aforementioned embodiment, and please refer to the relevant records of the aforementioned embodiment for details. In this embodiment, when the number of times the email original text synchronization request of the email to be displayed is received is less than the preset number of times threshold, when the server responds to each received email original text synchronization request, it retrieves the email original text of the email to be displayed from the email original text stored in the server database or storage space as the original email original text, and returns it to the client after encapsulating it into a network transmission format.

[0150] When the email original text synchronization request includes the unique identifier of the email to be displayed, the server extracts the unique identifier from the email original text synchronization request, and based on the unique identifier, retrieves the email original text matching the unique identifier from multiple stored email original texts, and sends it to the client as the original email text of the email to be displayed.

[0151] S403, when the number of receptions reaches the number threshold, the original email text is processed according to the set abnormal email processing flow, and a processed email text is generated and returned to the client.

[0152] For the server, when an email original text synchronization request is received pointing to the email to be displayed, and the number of receptions after the update based on the email original text synchronization request is equal to the preset number threshold, the server is triggered to enter the set abnormal email processing process, that is, after the server retrieves the email original text of the email to be displayed from the email original text stored in the server database or storage space, it no longer directly encapsulates and sends the retrieved email original text, but further processes it, that is, the email original text of the email to be displayed is reorganized according to the preset process, and a processed email original text is generated based on the email original text of the email to be displayed, and the processed email original text is sent to the client.

[0153] Among them, processing the original email text according to the set abnormal email processing process can be achieved through the following steps: obtaining the email body from the original email text; converting the first content for text display in the email body into a second content in text form; updating the email body according to the second content to obtain the processed email text.

[0154] Furthermore, in order to provide users with clearer information and guidance when handling email display anomalies, for the case where the email body in the original email is in plain text format, prompt text can be added to the first content in the email body for text display; or, for the second content in the email body that is converted from the first content in text form for text display, prompt text can be added to the second content; wherein the prompt text includes at least one of a first type of prompt and a second type of prompt; the first type of prompt is used to indicate an abnormality in the parsing of the email content of the email to be displayed; the second type of prompt is used to indicate viewing the email to be displayed that has been parsed by the server through a hyperlink address.

[0155] For the explanation of this embodiment, please refer to the corresponding embodiment described in the aforementioned client perspective, and the present invention will not elaborate on it any more.

[0156] In the disclosed implementation, the server detects the number of times the email original text synchronization request for the same email is received, and when the number of reception times reaches a preset threshold, identifies the email as an abnormal email and enters the abnormal email processing flow, thereby returning the processed email original text reorganized by the server. Without changing the email communication protocol between the client and the server in the email system, the server's dynamic perception of abnormal emails is triggered by utilizing the email communication protocol's mechanism of repeatedly pulling email original texts, and the server cooperates to return the processed email original text, thereby improving the accuracy and readability of email display, reducing the need for manual intervention, and effectively solving the problem that users find it difficult to quickly and accurately obtain key information in emails due to parsing anomalies, enhancing the flexibility of server processing, and improving the user's email reading experience.

[0157] In some embodiments, after tracking and counting the number of times email synchronization requests are received according to the unique identifier of the email to be displayed, in order to ensure that the server can continuously and effectively monitor and process email original text synchronization requests, and to avoid the email to be displayed being marked as an abnormal email once and entering the abnormal email processing flow to generate a processed email original that is continuously returned, resulting in the client being unable to obtain the latest original email text (such as the original email content has been updated or repaired), so as to provide the client with the latest email content and high-quality email display service, the above method also includes the following receiving number reset step, namely: after the processed email original text is generated and returned to the client, the number of times the email original text synchronization requests are received for the email to be displayed is reset to zero after a set period of time. If the email original text synchronization request for the email to be displayed contains the unique identifier of the email to be displayed, then the number of times the email original text synchronization requests corresponding to the unique identifier can be reset to zero after a set period of time. Among them, the set duration can be set according to actual needs, such as a few minutes, a few hours or a day, etc., and it can also be determined according to the time interval for receiving the email original text synchronization request for the email to be displayed. The set duration is greater than the time interval for the server to receive the email original text synchronization request for the email to be displayed, and the value is a multiple of the time interval.

[0158] In some embodiments, since the parsing anomaly of the original text of the email of the client may also be caused by external accidental factors such as errors in the network transmission process, during the process of the client repeatedly sending the original text synchronization request of the email, when the number of sending times does not reach the preset number threshold, that is, the number of times the client receives the original text synchronization request of the email to be displayed does not reach the preset number threshold, the client re-parses the original email text returned by the server successfully, then stops sending the original text synchronization request of the email, and renders the email display interface according to the parsing result. Therefore, regarding the reset reception times, it can also include the following reset operation, that is, when the number of receiving times does not reach the preset number threshold, in response to not receiving the original text synchronization request of the email to be displayed within the first time length, the number of receiving the original text synchronization request of the email to be displayed is reset to 0. Among them, the first time length can be determined according to the time interval of the server receiving the original text synchronization request of the email to be displayed, and the first time length is greater than the time interval, and it can be taken as a multiple of the time interval. In order to improve the accuracy of the determination, the first time length can be much greater than the time interval to avoid misjudgment caused by network delay.

[0159] In the above embodiment, by resetting the number of reception times, when the client tries to obtain the original email text of the email to be displayed again, the server will process it again according to the normal synchronization mechanism, that is, according to the new email text synchronization request, it will search and return the original email text from the stored email text, thereby avoiding the problem that the email is marked as requiring exception processing, resulting in the server returning the processed email text every time the client requests the original text of the email, thereby causing the client to be unable to obtain the latest email content, thereby reducing the processing burden of the server.

[0160] Next, in order to enable those skilled in the art to better understand the present invention, this embodiment takes the client and server of the email system in an example scenario as an example to illustrate the interaction process between the client and the server in implementing the email display method of the present invention.

[0161] See also Figure 5 The schematic diagram of the interaction between the client and the server in the example scenario shown, the example scenario includes an email client application Client and a mail server Server, the client needs to obtain the user's email from the server and display the email content on the client interface. After the user opens the client and requests to view a specific email in the inbox, the email content of the specific email can be displayed on the client through the following steps S501 to S50:

[0162] (1) The client sends a request for original email synchronization for the first time:

[0163] S501, the client sends an email original text synchronization request to the server, requesting the email original text of the specific email;

[0164] S502, the server receives the original email synchronization request and responds, including: S5021, adding one to the number of times the original email synchronization request is received, and retrieving the original email of the specific email from the database; S5022, judging that the number of times the original email is received is less than a preset number threshold 3, encapsulating the original email of the specific email into a network transmission format and sending it to the client;

[0165] S503, after receiving the original email text, the client parses the original email text according to a preset email parsing rule, such as a MIME parsing rule, to extract various components of the original email text;

[0166] S504: If a parsing exception occurs on the client, the client sends a second email original text synchronization request.

[0167] If the parsing is normal, the email display page is rendered according to the parsing result, and the original email synchronization request is stopped.

[0168] (2) The client sends a second email original text synchronization request:

[0169] Since the number of receptions is less than the preset number threshold 3, the server's response process is the same as the client's first email original text synchronization request, that is, the aforementioned steps S501-503 are repeated in this round;

[0170] S505: If a parsing exception occurs on the client, the client sends a third email original text synchronization request.

[0171] If the parsing is normal, the email display page is rendered according to the parsing result, and the sending of email original text synchronization requests is stopped.

[0172] (3) The client sends a third email original text synchronization request:

[0173] S505, the client sends an email original text synchronization request to the server, requesting the email original text of the specific email;

[0174] S506, the server receives the original email synchronization request and responds, including: S5061, adding one to the number of times the original email synchronization request is received, and retrieving the original email of the specific email from the database; S5062, judging that the number of times the request is received is equal to the preset number threshold 3, triggering the abnormal email processing process, recombining the original email of the specific email to generate a processed original email; S5063, encapsulating the processed original email into a network transmission format and sending it to the client;

[0175] S507, after receiving the processed email original text, the client parses the processed email original text according to the preset email parsing rules to extract the various components of the email original text, renders and generates an email display page according to the parsing result, and stops sending the email original text synchronization request.

[0176] In the above embodiment, when a parsing exception occurs on the client side, multiple email original text synchronization requests are initiated for the email original text with the parsing exception. Through a multiple retry mechanism for pulling the email original text, the server side recognizes that the email original text is a parsing exception email, and triggers the server side to reorganize the email original text to generate a processed email original text and send it to the client. The client parses and displays the received processed email original text, thereby improving the accuracy and readability of the email display without changing the email protocol between the client and server of the email system, effectively solving the problem that users find it difficult to quickly and accurately obtain key information in emails due to parsing exceptions, and improving the user's email reading experience.

[0177] Exemplary Devices

[0178] After introducing the method of the exemplary embodiment of the present invention, next, refer to Figure 6A-6B A device according to an exemplary embodiment of the present invention is described.

[0179] The implementation process of the functions and effects of each module in the following device is specifically detailed in the implementation process of the corresponding steps in the above method, which will not be repeated here. For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can be referred to the partial description of the method embodiment.

[0180] Fig. 6A A mail display device according to an embodiment of the present invention is schematically shown, which is applied to a client, and the device includes:

[0181] The sending module 6011 is used to send a synchronization request of the original text of the email to be displayed to the server;

[0182] The first parsing module 6021 is used to receive the original email text returned by the server in response to the email text synchronization request, and parse the original email text according to the set email parsing rules;

[0183] Repeat synchronization and parsing module 6031, used for repeatedly sending the email original text synchronization request of the email to be displayed to the server in case of parsing exception, and parsing the return result received from the server until the parsing is successful, and displaying the parsed email content on the client;

[0184] Among them, when the number of times the email original text synchronization request is sent does not reach the preset number threshold, the returned result is the original email original text; when the number of times the sending reaches the number threshold, the returned result is the processed email original text obtained by processing the original email original text according to the set abnormal email processing process.

[0185] In some embodiments, the apparatus further comprises:

[0186] When the number of times the original email synchronization request is received reaches the number threshold, the server obtains the email body from the original email text;

[0187] Converting the first content for text display in the body of the email into the second content in text form;

[0188] The email body is updated according to the second content to obtain the processed email original text.

[0189] In some embodiments, the apparatus further comprises:

[0190] The server adds a prompt text to the second content;

[0191] Among them, the prompt text includes at least one of the first type of prompt and the second type of prompt; the first type of prompt is used to indicate that the email content parsing of the email to be displayed is abnormal; the second type of prompt is used to indicate viewing the email to be displayed parsed by the server through the hyperlink address.

[0192] In some embodiments, the apparatus further comprises:

[0193] In case of the parsing exception, a loading animation is displayed on the client interface.

[0194] See also Figure 6B As shown, this embodiment also provides another mail display device, which is applied to the server, and the device includes:

[0195] The receiving and recording module 6012 is used to receive the original text synchronization request of the email to be displayed from the client, and record the number of times the original text synchronization request of the email to be displayed is received;

[0196] Response module 6022 is used to search for the matching original email text according to the email unique identifier and return it to the client when the number of reception times is less than the preset number threshold; when the number of reception times reaches the number threshold, process the original email text according to the set abnormal email processing process, generate a processed email text and return it to the client.

[0197] In some embodiments, the email original text synchronization request includes a unique identifier of the email to be displayed; and the receiving and recording module is specifically configured to:

[0198] According to the unique identifier, the number of times the original email synchronization request corresponding to the unique identifier is received is tracked and counted.

[0199] In some embodiments, the apparatus further comprises:

[0200] After the processed email original text is generated and returned to the client, the number of times the email original text synchronization request corresponding to the unique identifier is received is reset to zero after a set period of time.

[0201] In some embodiments, the response module is specifically used to:

[0202] Obtaining the email body from the original email text;

[0203] Converting the first content for text display in the body of the email into the second content in text form;

[0204] The email body is updated according to the second content to obtain the processed email original text.

[0205] In some embodiments, the apparatus further comprises:

[0206] Adding a prompt text to the second content;

[0207] Among them, the prompt text includes at least one of the first type of prompt and the second type of prompt; the first type of prompt is used to indicate that the email content parsing of the email to be displayed is abnormal; the second type of prompt is used to indicate viewing the email to be displayed parsed by the server through the hyperlink address.

[0208] Exemplary Media

[0209] After introducing the method and apparatus of the exemplary embodiment of the present invention, next, reference is made to Figure 7 A readable storage medium according to an exemplary embodiment of the present invention is described.

[0210] In this exemplary embodiment, the above method can be implemented by a program product, such as a portable compact disk read-only memory (CD-ROM) and including program code, and can be run on a device, such as a personal computer. However, the program product of the present invention is not limited to this. In this document, a readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, an apparatus or a device.

[0211] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0212] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0213] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RE, etc., or any suitable combination of the foregoing.

[0214] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as C or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user computing device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0215] Exemplary Computing Devices

[0216] After introducing the method, apparatus and medium of the exemplary embodiments of the present invention, next, reference is made to Figure 8 A computing device according to an exemplary embodiment of the present invention is described.

[0217] Figure 8 The computing device 800 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0218] like Figure 8 As shown, the computing device 800 is in the form of a general computing device. The components of the computing device 800 may include but are not limited to: at least one processing unit 801, at least one storage unit 802, and a bus 803 connecting different system components (including the processing unit 801 and the storage unit 802).

[0219] The bus 803 includes a data bus, a control bus, and an address bus.

[0220] The storage unit 802 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 8021 and / or a cache memory 8022 , and may further include a readable medium in the form of a non-volatile memory, such as a read-only memory (ROM) 8023 .

[0221] The storage unit 802 may also include a program / utility 8025 having a set (at least one) of program modules 8024, such program modules 8024 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0222] The computing device 800 may also communicate with one or more external devices 804 (eg, a keyboard, pointing device, etc.).

[0223] Such communication may be performed via input / output (I / O) interface 805. Furthermore, computing device 800 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via network adapter 806. Figure 8 As shown, the network adapter 806 communicates with other modules of the computing device 800 via the bus 803. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the computing device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0224] It should be noted that although several units / modules or sub-units / modules of the mail display device are mentioned in the above detailed description, such division is only exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided to be embodied by multiple units / modules.

[0225] Although the spirit and principle of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims. < / h1>

Claims

1. A mail display method, characterized in that: Applied to a client, the method comprises: Send a request to the server to synchronize the original text of the email to be displayed; Receiving the original email text returned by the server in response to the email text synchronization request, and parsing the original email text according to the set email parsing rules; In case of parsing exception, repeatedly send the email original text synchronization request of the email to be displayed to the server, and parse the return result received from the server until the parsing is successful, and display the parsed email content on the client; Among them, when the number of times the email original text synchronization request is sent does not reach the preset number threshold, the returned result is the original email original text; when the number of times the sending reaches the number threshold, the returned result is the processed email original text obtained by processing the original email original text according to the set abnormal email processing process.

2. The method according to claim 1, characterized in that The method further comprises: When the number of times the original email synchronization request is received reaches the number threshold, the server obtains the email body from the original email text; Converting the first content for text display in the body of the email into the second content in text form; The email body is updated according to the second content to obtain the processed email original text.

3. The method according to claim 2, characterized in that The method further comprises: The server adds a prompt text to the second content; Among them, the prompt text includes at least one of the first type of prompt and the second type of prompt; the first type of prompt is used to indicate that the email content parsing of the email to be displayed is abnormal; the second type of prompt is used to indicate viewing the email to be displayed parsed by the server through the hyperlink address.

4. A mail display method, characterized in that: Applied to the server, the method includes: Receiving a synchronization request for the original text of the email to be displayed from the client, and recording the number of times the synchronization request for the original text of the email to be displayed is received; When the number of receptions is less than a preset number threshold, searching for a matching original email text according to the email text synchronization request and returning the original email text to the client; When the number of receptions reaches the number threshold, the original email text is processed according to the set abnormal email processing flow, and a processed email text is generated and returned to the client.

5. The method according to claim 4, characterized in that The email original text synchronization request includes the unique identifier of the email to be displayed; The recording of the number of times the email original text synchronization request of the email to be displayed is received includes: According to the unique identifier, the number of times the original email synchronization request corresponding to the unique identifier is received is tracked and counted.

6. The method according to claim 5, characterized in that The method further comprises: After the processed email original text is generated and returned to the client, the number of times the email original text synchronization request corresponding to the unique identifier is received is reset to zero after a set period of time.

7. A mail display device, characterized in that: Applied to a client, the device comprises: The sending module is used to send a synchronization request of the original text of the email to be displayed to the server; A first parsing module, configured to receive the original email text returned by the server in response to the email text synchronization request, and parse the original email text according to a set email parsing rule; A repeated synchronization and parsing module is used to repeatedly send a synchronization request for the original email to be displayed to the server in the case of parsing exception, and parse the return result received from the server until the parsing is successful, and display the parsed email content on the client; Among them, when the number of times the email original text synchronization request is sent does not reach the preset number threshold, the returned result is the original email original text; when the number of times the sending reaches the number threshold, the returned result is the processed email original text obtained by processing the original email original text according to the set abnormal email processing process.

8. A mail display device, characterized in that: Applied to the server, the device comprises: The receiving and recording module is used to receive the original text synchronization request of the email to be displayed from the client, and record the number of times the original text synchronization request of the email to be displayed is received; The response module is used to search for the matching original email text according to the email unique identifier and return it to the client when the number of reception times is less than the preset number threshold; when the number of reception times reaches the number threshold, process the original email text according to the set abnormal email processing process, generate a processed email text and return it to the client.

9. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the mail display method as described in any one of claims 1-3 or 4-6 is implemented.

10. A computing device, characterized in that include: Processor, memory; The memory is used to store computer programs; The processor is used to execute the mail display method as described in any one of claims 1-3 or 4-6 by calling the computer program.