CN114338590A - Method, apparatus, medium, and program product for presenting mail - Google Patents

Method, apparatus, medium, and program product for presenting mail Download PDF

Info

Publication number
CN114338590A
CN114338590A CN202111675644.7A CN202111675644A CN114338590A CN 114338590 A CN114338590 A CN 114338590A CN 202111675644 A CN202111675644 A CN 202111675644A CN 114338590 A CN114338590 A CN 114338590A
Authority
CN
China
Prior art keywords
node
mail
user
target
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111675644.7A
Other languages
Chinese (zh)
Other versions
CN114338590B (en
Inventor
陈大年
苏小舟
长孙海朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zhangmen Science and Technology Co Ltd
Original Assignee
Shanghai Zhangmen Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zhangmen Science and Technology Co Ltd filed Critical Shanghai Zhangmen Science and Technology Co Ltd
Priority to CN202111675644.7A priority Critical patent/CN114338590B/en
Publication of CN114338590A publication Critical patent/CN114338590A/en
Application granted granted Critical
Publication of CN114338590B publication Critical patent/CN114338590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

An object of the present application is to provide a method, apparatus, medium, and program product for presenting a mail, the method including: receiving a first mail sent by network equipment, wherein a receiving and sending object set corresponding to the first mail comprises a first user and at least one second user; and presenting a first session message corresponding to the first mail in a target session page corresponding to a target mail session in which the first mail is located, wherein the first session message comprises summary information corresponding to body information of the first mail, and the target mail session comprises the first user and the at least one second user. According to the method and the device, the user can visually know the actual content of the newly received mail in the conversation page without entering the mail detail page of the newly received mail, and the user can conveniently make further processing decisions on the newly received mail, so that more convenience can be brought to the user, and the mail experience of the user can be obviously improved.

Description

Method, apparatus, medium, and program product for presenting mail
Technical Field
The present application relates to the field of communications, and more particularly, to a technique for presenting mail.
Background
With the development of the times, the application range of the e-mail is wider and wider. Today, the use of mail applications to send and receive mail has also become one of the most common ways people live and work. In the existing mail application program, only the subject information of each mail is usually displayed in the mail list page.
Disclosure of Invention
It is an object of the present application to provide a method, apparatus, medium, and program product for presenting mail.
According to one aspect of the present application, there is provided a method for presenting mail, the method comprising:
receiving a first mail sent by network equipment, wherein a receiving and sending object set corresponding to the first mail comprises a first user and at least one second user;
and presenting a first session message corresponding to the first mail in a target session page corresponding to a target mail session in which the first mail is located, wherein the first session message comprises summary information corresponding to body information of the first mail, and the target mail session comprises the first user and the at least one second user.
According to one aspect of the present application, there is provided a first user device for presenting mail, the device comprising:
a module, configured to receive a first email sent by a network device, where a sending/receiving object set corresponding to the first email includes a first user and at least one second user;
and a second module, configured to present a first session message corresponding to the first email in a target session page corresponding to a target email session in which the first email is located, where the first session message includes summary information corresponding to body information of the first email, and the target email session includes the first user and the at least one second user.
According to an aspect of the application, there is provided a computer device for presenting mail, comprising a memory, a processor and a computer program stored on the memory, wherein the processor executes the computer program to implement the operations of any of the methods described above.
According to an aspect of the application, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the operations of any of the methods described above.
According to an aspect of the application, a computer program product is provided, comprising a computer program which, when executed by a processor, carries out the steps of any of the methods as described above.
Compared with the prior art, the method and the device have the advantages that a first mail sent by network equipment is received, wherein a sending and receiving object set corresponding to the first mail comprises a first user and at least one second user, a first session message corresponding to the first mail is presented in a target session page corresponding to a target mail session where the first mail is located, wherein the first session message comprises summary information corresponding to the text information of the first mail, the target mail session comprises the first user and the at least one second user, so that the user can directly present the summary information corresponding to the text information of a newly received mail belonging to the mail session corresponding to the session page in the session page, so that the user can intuitively know the actual content of the newly received mail in the session page without entering a detail mail page of the newly received mail, and the user can conveniently make further processing decision on the newly received mail, so that more convenience can be brought to the user, and the mail experience of the user can be obviously improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 illustrates a flow diagram of a method for presenting mail according to one embodiment of the present application;
FIG. 2 illustrates a first user equipment structure diagram for presenting mail according to one embodiment of the present application;
FIG. 3 illustrates a presentation diagram for presenting mail according to one embodiment of the present application;
FIG. 4 illustrates an exemplary system that can be used to implement the various embodiments described in this application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (e.g., Central Processing Units (CPUs)), input/output interfaces, network interfaces, and memory.
The Memory may include forms of volatile Memory, Random Access Memory (RAM), and/or non-volatile Memory in a computer-readable medium, such as Read Only Memory (ROM) or Flash Memory. Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, Phase-Change Memory (PCM), Programmable Random Access Memory (PRAM), Static Random-Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other Memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The device referred to in the present application includes, but is not limited to, a terminal, a network device, or a device formed by integrating a terminal and a network device through a network. The terminal includes, but is not limited to, any mobile electronic product, such as a smart phone, a tablet computer, etc., capable of performing human-computer interaction with a user (e.g., human-computer interaction through a touch panel), and the mobile electronic product may employ any operating system, such as an Android operating system, an iOS operating system, etc. The network Device includes an electronic Device capable of automatically performing numerical calculation and information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded Device, and the like. The network device includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud of a plurality of servers; here, the Cloud is composed of a large number of computers or web servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, one virtual supercomputer consisting of a collection of loosely coupled computers. Including, but not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless Ad Hoc network (Ad Hoc network), etc. Preferably, the device may also be a program running on the terminal, the network device, or a device formed by integrating the terminal and the network device, the touch terminal, or the network device and the touch terminal through a network.
Of course, those skilled in the art will appreciate that the foregoing is by way of example only, and that other existing or future devices, which may be suitable for use in the present application, are also encompassed within the scope of the present application and are hereby incorporated by reference.
In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
FIG. 1 shows a flowchart of a method for presenting mail, according to one embodiment of the present application, including step S11 and step S12. In step S11, a first user device receives a first email sent by a network device, where a sending and receiving object set corresponding to the first email includes a first user and at least one second user; in step S12, the first user equipment presents a first session message corresponding to the first email in a target session page corresponding to a target email session where the first email is located, where the first session message includes summary information corresponding to text information of the first email, and the target email session includes the first user and the at least one second user.
In step S11, the first user device receives a first email sent by the network device, where a set of transceiving objects corresponding to the first email includes the first user and at least one second user. In some embodiments, a mail application in the first user equipment receives a first mail sent by a network device corresponding to the mail application, where the mail application includes, but is not limited to, any application for sending and receiving mails, and the first application may be a separately installed application program, or may also be a web page, or may also be an applet. In some embodiments, the recipient of the first mail includes a first user, and the set of transceiving objects corresponding to the first mail may refer to a set of objects consisting of a sender, a recipient, and a transcriber corresponding to the first mail, or the set of transceiving objects may also refer to a set of objects consisting of a sender, a recipient, a transcriber, and a blind transloader corresponding to the first mail. For example, the sender of the first mail is the target second user, the recipient of the first mail is the first user, and the transcription of the first mail is all other second users except the target second user in the at least one second user. For another example, the sender of the first mail is the first target second user, the recipients of the first mail are the first user and at least one second target second user, and the transcription factor of the first mail is all other second users of the at least one second user except the target second user and the at least one second target second user.
In step S12, the first user equipment presents a first session message corresponding to the first email in a target session page corresponding to a target email session where the first email is located, where the first session message includes summary information corresponding to text information of the first email, and the target email session includes the first user and the at least one second user. In some embodiments, the target mail session includes only the first user and the at least one second user. In some embodiments, one or more mails between the first user and the at least one second user belong to the same mail session, e.g., mail 1 sent by user1 to user2, user3, mail 2 sent by user2 to user1, user3, mail 3 sent by user2 to user1, and mail 4 sent by user1 to user2, where mail 1 and mail 2 belong to mail session1 and mail 3 and mail 4 belong to mail session 2. In some embodiments, it may be understood that, for a plurality of mails, if a union set of a sender, a receiver, and a transcriber of each mail in the plurality of mails is the same, the plurality of mails may be considered to belong to the same mail session, and for two mails, if a union set of a sender, a receiver, and a transcriber of the two mails is different, the two mails may be considered to belong to different mail sessions. In some embodiments, each mail conversation corresponds to a conversation page for displaying one or more mails belonging to the mail conversation, the one or more mails including both mails that have been received by the first user and mails that have been sent by the first user. In some embodiments, a session message corresponding to at least one mail (e.g., a first mail) belonging to a target mail session is presented in a target session page, and the session message includes summary information corresponding to body information of the at least one mail, e.g., all or part of content is extracted from the body information as the summary information corresponding to the body information. In some embodiments, the session message corresponding to a certain mail in the target session page further includes, but is not limited to, subject information of the mail, a mailbox address of a sender or a recipient of the mail, a nickname of the sender or the recipient of the mail in a mail application, an avatar, a sending time or a receiving time of the mail, and the like. In some embodiments, similar to the conversation messages presented in the conversation page in the social application, the conversation messages corresponding to a certain email are presented in the target conversation page by way of chatting bubbles. As an example, as shown in fig. 3, session messages corresponding to mails sent by a second user of at least one second user in the target mail session to the first user and all other second users except the user in the at least one second user are displayed on the left side of the target session page, summary information corresponding to text information of the mail received by the first user is presented in a chat bubble on the left side, the time of receiving the mail is presented above the chat bubble, and an avatar of the sender of the mail in the mail application is presented on the left side of the chat bubble. According to the method and the device, the summary information corresponding to the text information of the newly received mail belonging to the mail conversation corresponding to the conversation page is directly presented in the conversation page, so that a user can visually know the actual content of the newly received mail in the conversation page without entering the mail detail page of the newly received mail, and the user can make further processing decision on the newly received mail conveniently, so that more convenience can be brought to the user, and the mail experience of the user can be obviously improved.
In some embodiments, the method further comprises: the first user equipment determines whether the body information of the first mail comprises an HTML label or not; and if so, performing node traversal on the HTML label, and generating abstract information corresponding to the text information according to node content of at least one node obtained through traversal. In some embodiments, it is first determined whether the body information of the first mail includes an HTML (HyperText Markup Language) tag, and if so, traversal is performed on a dom (Document Object Model) node in the HTML tag to obtain at least one dom node and node content in each dom node, where a dom node includes an element node and a text node, and for example, traversal is performed on a dom node in the HTML tag according to a traversal rule from top to bottom and from outside to inside. In some embodiments, the summary information corresponding to the text information is generated according to the node content of the at least one node obtained through traversal, and the specific manner may be to use the node content of the first traversed node as the summary information corresponding to the text information, then add the node content of the currently traversed node to the end of the summary information in sequence, and finally obtain the summary information corresponding to the text information. In some embodiments, traversal may be performed on the dom nodes in the HTML tag until all the dom nodes in the HTML tag are traversed, or traversal may be performed on the dom nodes in the HTML tag until a predetermined traversal stop condition is satisfied, and then traversal is stopped, that is, only a part of the dom nodes in the HTML tag are traversed. In some embodiments, since the at least one node includes an element node and a text node, the summary information corresponding to the body information may be generated according to the node content of one or more text nodes in the at least one node obtained through traversal.
In some embodiments, the method further comprises: and if the text information of the first mail does not comprise an HTML (hypertext markup language) label, the first user equipment takes the text information as abstract information corresponding to the text information. In some embodiments, if the body information of the first email does not include the HTML tag, the body information may be directly used as the summary information corresponding to the body information.
In some embodiments, the performing node traversal on the HTML tag, and generating summary information corresponding to the text information according to node content of at least one node obtained by traversal includes: and performing node traversal on the HTML tag until a preset traversal stop condition is met, stopping the node traversal, and generating abstract information corresponding to the text information according to the node content of at least one node obtained by traversal. In some embodiments, traversal is performed on the dom nodes in the HTML tag until a predetermined traversal stop condition is met, and then traversal is stopped, that is, only a part of the dom nodes in the HTML tag are traversed, and the summary information corresponding to the text information is generated according to the node content of the part of the dom nodes.
In some embodiments, the performing node traversal on the HTML tag until a predetermined traversal stop condition is satisfied includes: and traversing nodes of the HTML label until the number of the currently traversed node lines is greater than or equal to a preset line number threshold. In some embodiments, if the currently traversed node is an element node and the tag type corresponding to the element node is one of body, tr, div, p, br, li, ol, and table, the node may be considered as a new row. In some embodiments, traversal is stopped until the number of rows corresponding to the currently traversed dom node is greater than or equal to a predetermined number of rows threshold (e.g., 10 rows).
In some embodiments, the performing node traversal on the HTML tag until the number of currently traversed node lines is greater than or equal to a predetermined line number threshold includes: and traversing nodes of the HTML label, if the text message is rich text message, until the number of the currently traversed node lines is greater than or equal to a preset first line number threshold, otherwise, until the number of the currently traversed node lines is greater than or equal to a preset second line number threshold, wherein the first line number threshold is less than the second line number threshold. In some embodiments, it is required to determine whether the body information of the first mail is Rich Text (RTF) information, then traverse the dom nodes in the HTML tag, if the body information is Rich Text information, the number of lines corresponding to the currently traversed dom nodes is greater than or equal to a predetermined first line number threshold, otherwise, the number of lines corresponding to the currently traversed dom nodes is greater than or equal to a predetermined line second threshold, wherein the first line number threshold (e.g., 4 lines) is less than the second line number threshold (e.g., 10 lines).
In some embodiments, the performing node traversal on the HTML tag until a predetermined traversal stop condition is satisfied includes: and traversing nodes of the HTML label until the currently traversed first node is a node of a preset type. In some embodiments, traversal is performed on the dom nodes in the HTML tag, and the traversal is stopped until the currently traversed nodes are nodes of a predetermined type, wherein the nodes of the predetermined type include but are not limited to reference nodes, signature nodes and special mark nodes.
In some embodiments, the predetermined type of node comprises at least one of: a reference node; signing nodes; nodes are specially marked. In some embodiments, the reference node is a dom node related to reference information in the mail body, the signature node is a dom node related to user signature information in the mail body, and the special mark node is a dom node with a special mark preset in the first user equipment or the mail application.
In some embodiments, the predetermined type of node comprises a reference node; wherein the method further comprises at least one of: the first user equipment determines whether the first node is a reference node according to an attribute value corresponding to a first preset attribute in the first node; determining whether the first node is a reference node or not according to the label type corresponding to the first node; determining whether the first node is a reference node or not according to the label type corresponding to the first node and the attribute value corresponding to the second preset attribute in the first node; and if the label type corresponding to the first node is a content division label, determining whether the first node is a reference node according to the child node information corresponding to the first node. In some embodiments, whether the node is a reference node may be determined according to an attribute value corresponding to a predetermined attribute in the node, for example, if the attribute value corresponding to the class attribute in the node includes a "blockquote" character, or if the attribute value corresponding to the id attribute in the node includes an "origbody" character, or if the attribute value corresponding to the class attribute in the node includes a "hop _ extra" character, the node may be determined to be a reference node. In some embodiments, whether the node is a reference node may be determined according to a tag type corresponding to the node, for example, if the tag type corresponding to the node is blockquote, the node may be determined to be a reference node. In some embodiments, whether the node is a reference node may be determined according to the tag type corresponding to the node and the attribute value corresponding to the predetermined attribute in the node, for example, if the tag type corresponding to the node is div and the attribute value corresponding to the data-type attribute in the node is "blockquotewrater", the node may be determined to be a reference node, or if the tag type corresponding to the node is not blockquote and the attribute value corresponding to the type attribute in the node is "cite", the attribute value corresponding to the id attribute and the class attribute is null, the node may be determined to be a reference node, or if the tag type corresponding to the node is not blockquote and one of the following conditions is satisfied: 1) the attribute value corresponding to the type attribute ends with "quote"; 2) ending the attribute value corresponding to the id attribute with 'quote'; 3) ending the attribute value corresponding to the class attribute with 'quote'; 4) and if the attribute values corresponding to the id attribute, the class attribute and the type attribute contain "reply", the node can be determined to be a reference node. In some embodiments, if the type of the label corresponding to the node is a content partitioning label (div label), it may be determined whether the node is a reference node according to the child node information corresponding to the node.
In some embodiments, the determining whether the first node is a reference node according to the child node information corresponding to the first node includes at least one of: determining whether the first node is a reference node according to a child node nesting level corresponding to the first node; determining whether the first node is a reference node or not according to the number of child nodes corresponding to the first node; and determining whether the first node is a reference node or not according to whether the label type of the child node corresponding to the first node comprises a table label or not. In some embodiments, whether the node is a reference node may be determined according to a child node nesting level corresponding to the node, where a child node nesting level refers to a maximum nesting level of at least one child node of the node relative to the node, and for example, if the child node nesting level corresponding to the node is greater than a predetermined level threshold (e.g., level 2), it may be determined that the node is a reference node. In some embodiments, it may also be determined whether the node is a reference node according to the number of children nodes corresponding to the node, for example, if the number of children nodes corresponding to the node is greater than a predetermined number threshold (e.g., 25), it may be determined that the node is a reference node. In some embodiments, it may also be determined that the node is a reference node according to whether the child node tag type corresponding to the node includes a table tag (table tag), for example, if there is a child node whose tag type is table in at least one child node of the node. In some embodiments, it is required that the node simultaneously satisfies at least two of the above three conditions, before determining that the node is a reference node, for example, if the number of child nodes corresponding to the node is greater than 25, and the nesting level of the child nodes corresponding to the node is greater than level 2 or the label type of the child nodes corresponding to the node includes a table, it may be determined that the node is a reference node.
In some embodiments, the nodes of the predetermined type comprise signature nodes; wherein the method further comprises: and the first user equipment determines whether the first node is a signature node or not according to the attribute value corresponding to the third preset attribute in the first node. In some embodiments, whether the node is a signature node is determined according to an attribute value corresponding to a predetermined attribute in the node. For example, if the number of characters of the attribute value corresponding to the class attribute in the node is greater than a predetermined number threshold (e.g., 32) and the attribute value includes a predetermined character string (e.g., "signature"), then the node may be determined to be a signature node. For another example, if the number of characters of the attribute value corresponding to the name attribute in the node is greater than a predetermined number threshold (e.g., 32), and the attribute value includes a predetermined character string (e.g., "signature"), it may be determined that the node is a signature node.
In some embodiments, the predetermined type of node comprises a special token node; wherein the method further comprises: and if the label type corresponding to the first node is a content division label, the first user equipment determines whether the first node is a special mark node according to an attribute value corresponding to a fourth preset attribute in the first node. In some embodiments, if the type of the label corresponding to the node is a content partitioning label (div label), it may be determined whether the node is a special mark node according to an attribute value corresponding to a predetermined attribute in the node. For example, if the type of the tag corresponding to the node is div, and the style attribute in the node includes at least one of the character strings "visibility: hidden", "mso-hide: all", "accessibility: 0", "display: none", "width: 0", and "height: 0", it can be determined that the node is a specially marked node.
In some embodiments, the generating the summary information corresponding to the text information includes: and for a second node traversed currently in the at least one node, if the second node is a text node, generating or updating summary information corresponding to the text information according to the node content of the second node. In some embodiments, traversal is performed on a dom node in an HTML tag, for a currently traversed second node, if the second node is a text node, summary information corresponding to the text information may be generated or updated according to node content of the second node, for example, if the summary information is currently empty, the node content of the second node is directly used as the summary information, if the summary information is not currently empty, the node content of the second node is added to the end of the summary information, then traversal is continued for a next node of the second node, and so on, if the second node is an element node, then traversal is continued for a next node of the second node, and so on.
In some embodiments, the method further comprises: and if the second node is an element node and the type of the label corresponding to the second node is a first preset label, the first user equipment adds a line feed character at the tail of the summary information. In some embodiments, if the second node is an element node and the tag type corresponding to the second node is a predetermined tag (e.g., one of body, tr, div, p, br, li, ol, table), a wrapping character is added at the end of the summary information, and the traversal of the next node of the second node is continued, so that the wrapping is performed at the location when the summary information is presented in the target session page.
In some embodiments, the generating or updating the summary information corresponding to the body information according to the node content of the second node includes: if the label type of the father node of the second node is a second preset label, ignoring the node content of the second node; otherwise, generating or updating the summary information corresponding to the text information according to the node content of the second node. In some embodiments, if the tag type of the parent node of the second node is a predetermined tag (e.g., script, style, title), the node content of the second node is directly ignored and the traversal of the next node of the second node is continued without generating or updating the summary information according to the node content of the second node.
In some embodiments, the method further comprises: and if the node content of the second node comprises a line break, replacing the line break by a space character by the second user equipment. In some embodiments, if the node content of the second node includes at least one line break, the at least one line break is replaced with a space break, the summary information is generated or updated according to the replaced node content, and then the next node of the second node is traversed.
In some embodiments, the generating or updating the summary information corresponding to the text information according to the node content of the second node further includes: and if the label type of the ancestor node of the second node is a hyperlink label and the attribute value corresponding to the link target attribute in the ancestor node is not null, setting the attribute value corresponding to the link target attribute as access response information corresponding to the node content in the summary information. In some embodiments, if the second node is a text node, the tag type of the ancestor node (parent node or grandparent node) of the second node is a hyperlink tag (a-tag), and the attribute value corresponding to the link target attribute (href attribute) in the ancestor node is not null, the node content of the second node is added to the end of the summary information, and the attribute value is set to the access response information (e.g., click response) corresponding to the node content in the summary information, so that when the node content in the first session message is accessed (e.g., clicked) in the target session page, the first user jumps to the target page to which the attribute value is linked.
In some embodiments, the generating or updating the summary information corresponding to the text information according to the node content of the second node further includes: and if the node content of the second node comprises a link address, setting the link address as access response information corresponding to the node content in the summary information. In some embodiments, if the second node is a text node and the node content of the second node includes a link address, the node content is added to the end of the summary information, and the link address is set as access response information (e.g., click response) corresponding to the node content or the link address in the summary information, so that when a subsequent first user accesses (e.g., clicks) the node content or the link address in the first session message in a target session page, the subsequent first user jumps to the target page corresponding to the link address.
In some embodiments, the method further comprises: and the first user equipment responds to a first access operation executed by the first user in the target session page aiming at the first session message, and jumps to a mail detail page corresponding to the first mail. In some embodiments, in response to a first access operation (e.g., a click operation) performed by the first user in the target session page for the first session message or the chat bubble, a jump is made to a mail detail page corresponding to the first mail, the presentation form of the mail detail page including, but not limited to, any conventional presentation form used in the prior art for presenting mail details, in which the first user may browse or reply to the first mail. In some embodiments, the target session page is re-skipped in response to an access operation performed by the first user in the mail details page (e.g., clicking a "back" button presented on the mail details page).
In some embodiments, the method further comprises: and if the target text information in the summary information has corresponding access response information, responding to a second access operation executed by the first user in the target session page aiming at the target text information by the first user equipment, and jumping to a target page corresponding to the access response information. In some embodiments, if there is corresponding access response information (e.g., a click response) for a certain piece of target text information in the summary information, in response to a second access operation (e.g., a click operation) performed by the first user in the target session page for the target text information in the first session message, a jump is made to a target page corresponding to or linked to the access response information. In some embodiments, if there is only one piece of target text information in the summary information and there is corresponding access response information, then it is also possible to jump to a target page corresponding to or linked to the access response information in response to a second location operation performed by the first user in the target session page for the first session message.
In some embodiments, the sender of the first mail is a target second user of the at least one second user, the set of received objects of the first mail includes the first user and all other second users of the at least one second user except the target second user, a second mailbox server corresponding to a second mailbox address of the target second user sends the first mail to the first mailbox server, and the first mailbox server sends the first mail to the network device. In some embodiments, the sender of the first mail is a target second user of at least one second user in the target mail conversation, and the receiving object of the first mail is the first user and all other second users except the target second user in the at least one second user, wherein the receiving object may include a recipient, a transcriber of the target mail, or may further include a recipient, a transcriber, and a blind person of the target mail. In some embodiments, the mailbox server of the target second user may send the first mail to the mailbox server of the first user, the mailbox server of the first user may send the first mail to the mail application server corresponding to the mail application, and the mail application server may send the first mail to the first user device. In some embodiments, the first user needs to bind a mailbox address when using the mail application, or the first user may bind a plurality of mailbox addresses and then needs to select one of the plurality of mailbox addresses as the currently used mailbox address. In some embodiments, the manner of binding the mailbox address in the mail application may be to input the mailbox address and a login password of the mailbox address in the mail application, or further input an authorization code of the mailbox address in the mail application, where the authorization code may be obtained from a mailbox server corresponding to the mailbox address.
In some embodiments, if the target mail session is not created, the network device creates the target mail session according to the first mailbox address and the second mailbox address. In some embodiments, the mail application server, upon receiving the target mail, if the target mail session has not yet been created, a target mail session is first created based on the first mailbox address of the first user and the second mailbox address of the at least one second user, the target mail session includes only the first user and the at least one second user, and sends identification information for the target mail session (e.g., session ID, session name, session icon, identification information for the users included in the session, e.g., user ID, user nickname, user avatar) to the first user device, to present the identification information of the target mail conversation in a mail conversation list page of the mail application on the first user device, or, and presenting the identification information of the target mail conversation in a target conversation page corresponding to the target mail conversation of the mail application on the first user equipment.
In some embodiments, the method further comprises: a first user device acquires second mail content input by a first user in an input area of a target session page, presents a second session message corresponding to a second mail corresponding to the second mail content in the target session page in response to a mail sending operation executed by the first user for the second mail content, and sends the second mail to the network device, so that the network device sends the second mail to a first mailbox server, and the first mailbox server sends the second mail to a second mailbox server corresponding to a second mailbox address of at least one second user, wherein the second mail content comprises target text information input by the first user in the input area and/or target attachment information selected by the first user in the input area, the text information of the second e-mail is the target text information, the mail attachment information of the second e-mail is the target attachment information, and the second session message includes summary information corresponding to the text information of the second e-mail. In some embodiments, the recipient of the second email is one or more of the at least one second user and the transcription of the second email is for all but the one or more second users of the at least one second user. In some embodiments, an input area is also presented in the target session page where the user can enter text or where one or more attachments (e.g., pictures, audio, video, files, etc.) can also be selected. In some embodiments, after the first user inputs the mail content in the input area, the first user may perform a mail sending operation on the mail content (for example, click a "send" button in the input area), and then the first user device may generate a corresponding second mail according to the mail content and send the second mail to a mail application server corresponding to the mail application, or the first user device may directly send the mail content to the mail application server, and then the mail application server generates a corresponding second mail according to the mail content. In some embodiments, a second session message corresponding to the second mail is also presented in the target session page, and the second session message includes summary information corresponding to the body information of the second mail, for example, a session message corresponding to a mail sent by the first user to the at least one second user is displayed on the right side of the target session page, summary information corresponding to the body information of the mail sent by the first user is presented in the chat bubble on the right side, the sending time of the mail is presented above the chat bubble, and an avatar of the first user in the mail application is presented on the left side of the chat bubble. In some embodiments, the mail application server may send the second mail to a first mailbox server corresponding to a first mailbox address of the first user, and then the first mailbox server may send the first mail to a second mailbox server corresponding to a second mailbox address of the at least one second user. In some embodiments, the first user may input text in the input area, or may select one or more attachments in the input area, and subsequently, when the second email is generated, the text information of the second email is set as the text input by the user, and the attachment information of the second email is set as the one or more attachments selected by the user. In some embodiments, the user may further input a voice in the input area, and at this time, the audio corresponding to the voice may be used as the attachment information of the second email, or the voice may be recognized as a text first, and the recognized text may be used as the body information of the second email. In the method, a first user can send and receive the mail in an interactive mode based on the mail conversation, so that the mail sending and receiving are close to IM (Instant Messaging) experience, and the IM of the mail is realized.
Fig. 2 shows a block diagram of a first user equipment for presenting mail according to an embodiment of the application, the equipment comprising a one-module 11 and a two-module 12. A module 11, configured to receive a first email sent by a network device, where a sending/receiving object set corresponding to the first email includes a first user and at least one second user; a second module 12, configured to present a first session message corresponding to the first email in a target session page corresponding to a target email session in which the first email is located, where the first session message includes summary information corresponding to text information of the first email, and the target email session includes the first user and the at least one second user.
A module 11, configured to receive a first email sent by a network device, where a sending/receiving object set corresponding to the first email includes a first user and at least one second user. In some embodiments, a mail application in the first user equipment receives a first mail sent by a network device corresponding to the mail application, where the mail application includes, but is not limited to, any application for sending and receiving mails, and the first application may be a separately installed application program, or may also be a web page, or may also be an applet. In some embodiments, the recipient of the first mail includes a first user, and the set of transceiving objects corresponding to the first mail may refer to a set of objects consisting of a sender, a recipient, and a transcriber corresponding to the first mail, or the set of transceiving objects may also refer to a set of objects consisting of a sender, a recipient, a transcriber, and a blind transloader corresponding to the first mail. For example, the sender of the first mail is the target second user, the recipient of the first mail is the first user, and the transcription of the first mail is all other second users except the target second user in the at least one second user. For another example, the sender of the first mail is the first target second user, the recipients of the first mail are the first user and at least one second target second user, and the transcription factor of the first mail is all other second users of the at least one second user except the target second user and the at least one second target second user.
A second module 12, configured to present a first session message corresponding to the first email in a target session page corresponding to a target email session in which the first email is located, where the first session message includes summary information corresponding to text information of the first email, and the target email session includes the first user and the at least one second user. In some embodiments, the target mail session includes only the first user and the at least one second user. In some embodiments, one or more mails between the first user and the at least one second user belong to the same mail session, e.g., mail 1 sent by user1 to user2, user3, mail 2 sent by user2 to user1, user3, mail 3 sent by user2 to user1, and mail 4 sent by user1 to user2, where mail 1 and mail 2 belong to mail session1 and mail 3 and mail 4 belong to mail session 2. In some embodiments, it may be understood that, for a plurality of mails, if a union set of a sender, a receiver, and a transcriber of each mail in the plurality of mails is the same, the plurality of mails may be considered to belong to the same mail session, and for two mails, if a union set of a sender, a receiver, and a transcriber of the two mails is different, the two mails may be considered to belong to different mail sessions. In some embodiments, each mail conversation corresponds to a conversation page for displaying one or more mails belonging to the mail conversation, the one or more mails including both mails that have been received by the first user and mails that have been sent by the first user. In some embodiments, a session message corresponding to at least one mail (e.g., a first mail) belonging to a target mail session is presented in a target session page, and the session message includes summary information corresponding to body information of the at least one mail, e.g., all or part of content is extracted from the body information as the summary information corresponding to the body information. In some embodiments, the session message corresponding to a certain mail in the target session page further includes, but is not limited to, subject information of the mail, a mailbox address of a sender or a recipient of the mail, a nickname of the sender or the recipient of the mail in a mail application, an avatar, a sending time or a receiving time of the mail, and the like. In some embodiments, similar to the conversation messages presented in the conversation page in the social application, the conversation messages corresponding to a certain email are presented in the target conversation page by way of chatting bubbles. As an example, as shown in fig. 3, session messages corresponding to mails sent by a second user of at least one second user in the target mail session to the first user and all other second users except the user in the at least one second user are displayed on the left side of the target session page, summary information corresponding to text information of the mail received by the first user is presented in a chat bubble on the left side, the time of receiving the mail is presented above the chat bubble, and an avatar of the sender of the mail in the mail application is presented on the left side of the chat bubble. According to the method and the device, the summary information corresponding to the text information of the newly received mail belonging to the mail conversation corresponding to the conversation page is directly presented in the conversation page, so that a user can visually know the actual content of the newly received mail in the conversation page without entering the mail detail page of the newly received mail, and the user can make further processing decision on the newly received mail conveniently, so that more convenience can be brought to the user, and the mail experience of the user can be obviously improved.
In some embodiments, the apparatus is further configured to: determining whether the body information of the first mail comprises an HTML label; and if so, performing node traversal on the HTML label, and generating abstract information corresponding to the text information according to node content of at least one node obtained through traversal. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the apparatus is further configured to: and if the text information of the first mail does not comprise an HTML (hypertext markup language) tag, taking the text information as abstract information corresponding to the text information. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the performing node traversal on the HTML tag, and generating summary information corresponding to the text information according to node content of at least one node obtained by traversal includes: and performing node traversal on the HTML tag until a preset traversal stop condition is met, stopping the node traversal, and generating abstract information corresponding to the text information according to the node content of at least one node obtained by traversal. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the performing node traversal on the HTML tag until a predetermined traversal stop condition is satisfied includes: and traversing nodes of the HTML label until the number of the currently traversed node lines is greater than or equal to a preset line number threshold. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the performing node traversal on the HTML tag until the number of currently traversed node lines is greater than or equal to a predetermined line number threshold includes: and traversing nodes of the HTML label, if the text message is rich text message, until the number of the currently traversed node lines is greater than or equal to a preset first line number threshold, otherwise, until the number of the currently traversed node lines is greater than or equal to a preset second line number threshold, wherein the first line number threshold is less than the second line number threshold. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the performing node traversal on the HTML tag until a predetermined traversal stop condition is satisfied includes: and traversing nodes of the HTML label until the currently traversed first node is a node of a preset type. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the predetermined type of node comprises at least one of: a reference node; signing nodes; nodes are specially marked. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the predetermined type of node comprises a reference node; wherein the device is further configured to at least one of: determining whether the first node is a reference node according to an attribute value corresponding to a first preset attribute in the first node; determining whether the first node is a reference node or not according to the label type corresponding to the first node; determining whether the first node is a reference node or not according to the label type corresponding to the first node and the attribute value corresponding to the second preset attribute in the first node; and if the label type corresponding to the first node is a content division label, determining whether the first node is a reference node according to the child node information corresponding to the first node. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the determining whether the first node is a reference node according to the child node information corresponding to the first node includes at least one of: determining whether the first node is a reference node according to a child node nesting level corresponding to the first node; determining whether the first node is a reference node or not according to the number of child nodes corresponding to the first node; and determining whether the first node is a reference node or not according to whether the label type of the child node corresponding to the first node comprises a table label or not. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the nodes of the predetermined type comprise signature nodes; wherein the device is further configured to: and determining whether the first node is a signature node or not according to an attribute value corresponding to a third preset attribute in the first node. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the predetermined type of node comprises a special token node; wherein the device is further configured to: and if the label type corresponding to the first node is a content division label, determining whether the first node is a special mark node according to an attribute value corresponding to a fourth preset attribute in the first node. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the generating the summary information corresponding to the text information includes: and for a second node traversed currently in the at least one node, if the second node is a text node, generating or updating summary information corresponding to the text information according to the node content of the second node. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the apparatus is further configured to: and if the second node is an element node and the type of the label corresponding to the second node is a first preset label, adding a line break character at the tail of the summary information. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the generating or updating the summary information corresponding to the body information according to the node content of the second node includes: if the label type of the father node of the second node is a second preset label, ignoring the node content of the second node; otherwise, generating or updating the summary information corresponding to the text information according to the node content of the second node. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the apparatus is further configured to: and if the node content of the second node comprises a line break, replacing the line break with a space character. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the apparatus is further configured to: and if the label type of the ancestor node of the second node is a hyperlink label and the attribute value corresponding to the link target attribute in the ancestor node is not null, setting the attribute value corresponding to the link target attribute as access response information corresponding to the node content in the summary information. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the apparatus is further configured to: and if the node content of the second node comprises a link address, setting the link address as access response information corresponding to the node content in the summary information. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the apparatus is further configured to: and responding to a first access operation executed by the first user in the target session page aiming at the first session message, and jumping to a mail detail page corresponding to the first mail. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the apparatus is further configured to: and if the target text information in the summary information has corresponding access response information, responding to a second access operation executed by the first user in the target session page aiming at the target text information, and jumping to a target page corresponding to the access response information. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the sender of the first mail is a target second user of the at least one second user, the set of received objects of the first mail includes the first user and all other second users of the at least one second user except the target second user, a second mailbox server corresponding to a second mailbox address of the target second user sends the first mail to the first mailbox server, and the first mailbox server sends the first mail to the network device. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, if the target mail session is not created, the network device creates the target mail session according to the first mailbox address and the second mailbox address. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the apparatus is further configured to: acquiring second mail content input by the first user in an input area of the target session page, presenting a second session message corresponding to a second mail corresponding to the second mail content in the target session page in response to a mail sending operation executed by the first user for the second mail content, and sending the second mail to the network device, so that the network device sends the second mail to the first mailbox server, and the first mailbox server sends the second mail to a second mailbox server corresponding to a second mailbox address of the at least one second user, wherein the second mail content comprises target text information input by the first user in the input area and/or target attachment information selected by the first user in the input area, the text information of the second e-mail is the target text information, the mail attachment information of the second e-mail is the target attachment information, and the second session message includes summary information corresponding to the text information of the second e-mail. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In addition to the methods and apparatus described in the embodiments above, the present application also provides a computer readable storage medium storing computer code that, when executed, performs the method as described in any of the preceding claims.
The present application also provides a computer program product, which when executed by a computer device, performs the method of any of the preceding claims.
The present application further provides a computer device, comprising:
one or more processors;
a memory for storing one or more computer programs;
the one or more computer programs, when executed by the one or more processors, cause the one or more processors to implement the method of any preceding claim.
FIG. 4 illustrates an exemplary system that can be used to implement the various embodiments described herein;
in some embodiments, as shown in FIG. 4, the system 300 can be implemented as any of the devices in the various embodiments described. In some embodiments, system 300 may include one or more computer-readable media (e.g., system memory or NVM/storage 320) having instructions and one or more processors (e.g., processor(s) 305) coupled with the one or more computer-readable media and configured to execute the instructions to implement modules to perform the actions described herein.
For one embodiment, system control module 310 may include any suitable interface controllers to provide any suitable interface to at least one of processor(s) 305 and/or any suitable device or component in communication with system control module 310.
The system control module 310 may include a memory controller module 330 to provide an interface to the system memory 315. Memory controller module 330 may be a hardware module, a software module, and/or a firmware module.
System memory 315 may be used, for example, to load and store data and/or instructions for system 300. For one embodiment, system memory 315 may include any suitable volatile memory, such as suitable DRAM. In some embodiments, the system memory 315 may include a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, system control module 310 may include one or more input/output (I/O) controllers to provide an interface to NVM/storage 320 and communication interface(s) 325.
For example, NVM/storage 320 may be used to store data and/or instructions. NVM/storage 320 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more Hard Disk Drives (HDDs), one or more Compact Disc (CD) drives, and/or one or more Digital Versatile Disc (DVD) drives).
NVM/storage 320 may include storage resources that are physically part of the device on which system 300 is installed or may be accessed by the device and not necessarily part of the device. For example, NVM/storage 320 may be accessible over a network via communication interface(s) 325.
Communication interface(s) 325 may provide an interface for system 300 to communicate over one or more networks and/or with any other suitable device. System 300 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols.
For one embodiment, at least one of the processor(s) 305 may be packaged together with logic for one or more controller(s) (e.g., memory controller module 330) of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be packaged together with logic for one or more controller(s) of the system control module 310 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic for one or more controller(s) of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic for one or more controller(s) of the system control module 310 to form a system on a chip (SoC).
In various embodiments, system 300 may be, but is not limited to being: a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.). In various embodiments, system 300 may have more or fewer components and/or different architectures. For example, in some embodiments, system 300 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Those skilled in the art will appreciate that the form in which the computer program instructions reside on a computer-readable medium includes, but is not limited to, source files, executable files, installation package files, and the like, and that the manner in which the computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Computer-readable media herein can be any available computer-readable storage media or communication media that can be accessed by a computer.
Communication media includes media by which communication signals, including, for example, computer readable instructions, data structures, program modules, or other data, are transmitted from one system to another. Communication media may include conductive transmission media such as cables and wires (e.g., fiber optics, coaxial, etc.) and wireless (non-conductive transmission) media capable of propagating energy waves such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied in a modulated data signal, for example, in a wireless medium such as a carrier wave or similar mechanism such as is embodied as part of spread spectrum techniques. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. The modulation may be analog, digital or hybrid modulation techniques.
By way of example, and not limitation, computer-readable storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. For example, computer-readable storage media include, but are not limited to, volatile memory such as random access memory (RAM, DRAM, SRAM); and non-volatile memory such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic/ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disk, tape, CD, DVD); or other now known media or later developed that can store computer-readable information/data for use by a computer system.
An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (26)

1. A method for presenting a mail, applied to a first user equipment, wherein the method comprises:
receiving a first mail sent by network equipment, wherein a receiving and sending object set corresponding to the first mail comprises a first user and at least one second user;
and presenting a first session message corresponding to the first mail in a target session page corresponding to a target mail session in which the first mail is located, wherein the first session message comprises summary information corresponding to body information of the first mail, and the target mail session comprises the first user and the at least one second user.
2. The method of claim 1, wherein the method further comprises:
determining whether the body information of the first mail comprises an HTML label;
and if so, performing node traversal on the HTML label, and generating abstract information corresponding to the text information according to node content of at least one node obtained through traversal.
3. The method of claim 2, wherein the method further comprises:
and if the text information of the first mail does not comprise an HTML (hypertext markup language) tag, taking the text information as abstract information corresponding to the text information.
4. The method of claim 2, wherein the performing node traversal on the HTML tag and generating summary information corresponding to the body information according to node content of at least one node obtained by traversal comprises:
and performing node traversal on the HTML tag until a preset traversal stop condition is met, stopping the node traversal, and generating abstract information corresponding to the text information according to the node content of at least one node obtained by traversal.
5. The method of claim 4, wherein the node traversing the HTML tag until a predetermined traversal stop condition is met, comprising:
and traversing nodes of the HTML label until the number of the currently traversed node lines is greater than or equal to a preset line number threshold.
6. The method of claim 5, wherein the node traversing the HTML tag until a number of currently traversed node lines is greater than or equal to a predetermined line number threshold, comprises:
and traversing nodes of the HTML label, if the text message is rich text message, until the number of the currently traversed node lines is greater than or equal to a preset first line number threshold, otherwise, until the number of the currently traversed node lines is greater than or equal to a preset second line number threshold, wherein the first line number threshold is less than the second line number threshold.
7. The method of claim 4, wherein the node traversing the HTML tag until a predetermined traversal stop condition is met, comprising:
and traversing nodes of the HTML label until the currently traversed first node is a node of a preset type.
8. The method of claim 7, wherein the predetermined type of node comprises at least one of:
a reference node;
signing nodes;
nodes are specially marked.
9. The method of claim 8, wherein the predetermined type of node comprises a reference node;
wherein the method further comprises at least one of:
determining whether the first node is a reference node according to an attribute value corresponding to a first preset attribute in the first node;
determining whether the first node is a reference node or not according to the label type corresponding to the first node;
determining whether the first node is a reference node or not according to the label type corresponding to the first node and the attribute value corresponding to the second preset attribute in the first node;
and if the label type corresponding to the first node is a content division label, determining whether the first node is a reference node according to the child node information corresponding to the first node.
10. The method of claim 9, wherein the determining whether the first node is a reference node according to the child node information corresponding to the first node comprises at least one of:
determining whether the first node is a reference node according to a child node nesting level corresponding to the first node;
determining whether the first node is a reference node or not according to the number of child nodes corresponding to the first node;
and determining whether the first node is a reference node or not according to whether the label type of the child node corresponding to the first node comprises a table label or not.
11. The method of claim 8, wherein the nodes of the predetermined type comprise signature nodes;
wherein the method further comprises:
and determining whether the first node is a signature node or not according to an attribute value corresponding to a third preset attribute in the first node.
12. The method of claim 8, wherein the predetermined type of node comprises a special mark node;
wherein the method further comprises:
and if the label type corresponding to the first node is a content division label, determining whether the first node is a special mark node according to an attribute value corresponding to a fourth preset attribute in the first node.
13. The method of claim 4, wherein the generating of the summary information corresponding to the body information comprises:
and for a second node traversed currently in the at least one node, if the second node is a text node, generating or updating summary information corresponding to the text information according to the node content of the second node.
14. The method of claim 13, wherein the method further comprises:
and if the second node is an element node and the type of the label corresponding to the second node is a first preset label, adding a line break character at the tail of the summary information.
15. The method of claim 13, wherein the generating or updating summary information corresponding to the body information according to the node content of the second node comprises:
if the label type of the father node of the second node is a second preset label, ignoring the node content of the second node;
otherwise, generating or updating the summary information corresponding to the text information according to the node content of the second node.
16. The method of claim 15, wherein the method further comprises:
and if the node content of the second node comprises a line break, replacing the line break with a space character.
17. The method of claim 16, wherein the generating or updating summary information corresponding to the body information according to the node content of the second node further comprises:
and if the label type of the ancestor node of the second node is a hyperlink label and the attribute value corresponding to the link target attribute in the ancestor node is not null, setting the attribute value corresponding to the link target attribute as access response information corresponding to the node content in the summary information.
18. The method of claim 16, wherein the generating or updating summary information corresponding to the body information according to the node content of the second node further comprises:
and if the node content of the second node comprises a link address, setting the link address as access response information corresponding to the node content in the summary information.
19. The method of claim 1, wherein the method further comprises:
and responding to a first access operation executed by the first user in the target session page aiming at the first session message, and jumping to a mail detail page corresponding to the first mail.
20. The method of claim 19, wherein the method further comprises:
and if the target text information in the summary information has corresponding access response information, responding to a second access operation executed by the first user in the target session page aiming at the target text information, and jumping to a target page corresponding to the access response information.
21. The method of claim 1, wherein the sender of the first mail is a target second user of the at least one second user, the set of received objects of the first mail includes the first user and all other second users of the at least one second user except the target second user, a second mailbox server corresponding to a second mailbox address of the target second user sends the first mail to the first mailbox server, and the first mailbox server sends the first mail to the network device.
22. The method of claim 21, wherein the network device creates the target mail session based on the first mailbox address and the second mailbox address if the target mail session is not created.
23. The method of claim 21, wherein the method further comprises:
acquiring second mail content input by the first user in an input area of the target session page, presenting a second session message corresponding to a second mail corresponding to the second mail content in the target session page in response to a mail sending operation executed by the first user for the second mail content, and sending the second mail to the network device, so that the network device sends the second mail to the first mailbox server, and the first mailbox server sends the second mail to a second mailbox server corresponding to a second mailbox address of the at least one second user, wherein the second mail content comprises target text information input by the first user in the input area and/or target attachment information selected by the first user in the input area, the text information of the second e-mail is the target text information, the mail attachment information of the second e-mail is the target attachment information, and the second session message includes summary information corresponding to the text information of the second e-mail.
24. A computer device for presenting mail, comprising a memory, a processor and a computer program stored on the memory, characterized in that the processor executes the computer program to implement the steps of the method according to any of claims 1 to 23.
25. A computer-readable storage medium, on which a computer program/instructions are stored, which, when being executed by a processor, carry out the steps of the method according to any one of claims 1 to 23.
26. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method according to any one of claims 1 to 23 when executed by a processor.
CN202111675644.7A 2021-12-31 2021-12-31 Method, device, medium and program product for presenting mail Active CN114338590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111675644.7A CN114338590B (en) 2021-12-31 2021-12-31 Method, device, medium and program product for presenting mail

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111675644.7A CN114338590B (en) 2021-12-31 2021-12-31 Method, device, medium and program product for presenting mail

Publications (2)

Publication Number Publication Date
CN114338590A true CN114338590A (en) 2022-04-12
CN114338590B CN114338590B (en) 2023-11-17

Family

ID=81022493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111675644.7A Active CN114338590B (en) 2021-12-31 2021-12-31 Method, device, medium and program product for presenting mail

Country Status (1)

Country Link
CN (1) CN114338590B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11112554A (en) * 1997-10-03 1999-04-23 Nippon Telegr & Teleph Corp <Ntt> Method for browsing electronic mail and generating return information, transmitter-receiver for public multimedia information, and storage medium storing public multimedia information transmissionreception program
WO2008045811A2 (en) * 2006-10-10 2008-04-17 Orgoo, Inc. Integrated electronic mail and instant messaging system
CN101416207A (en) * 2006-02-06 2009-04-22 谷歌公司 Integrated conversations having both email and chat messages
CN101441744A (en) * 2008-11-27 2009-05-27 北京立通无限科技有限公司 E-mail management method and system
CN101938584A (en) * 2010-09-08 2011-01-05 无锡中星微电子有限公司 Internetwork network equipment and internetwork communication method
CN103560944A (en) * 2013-11-12 2014-02-05 珠海市魅族科技有限公司 Displaying method and terminal for email set
CN104184648A (en) * 2013-05-23 2014-12-03 腾讯科技(深圳)有限公司 E-mail management method and apparatus
CN106549859A (en) * 2016-12-20 2017-03-29 北京小米移动软件有限公司 Session information management method and device
CN113157162A (en) * 2021-04-23 2021-07-23 上海掌门科技有限公司 Method, apparatus, medium and program product for revoking session messages
CN113595852A (en) * 2020-04-30 2021-11-02 北京字节跳动网络技术有限公司 Mail information display method and device, electronic equipment and storage medium
CN113595854A (en) * 2020-04-30 2021-11-02 北京字节跳动网络技术有限公司 Information display method and device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11112554A (en) * 1997-10-03 1999-04-23 Nippon Telegr & Teleph Corp <Ntt> Method for browsing electronic mail and generating return information, transmitter-receiver for public multimedia information, and storage medium storing public multimedia information transmissionreception program
CN101416207A (en) * 2006-02-06 2009-04-22 谷歌公司 Integrated conversations having both email and chat messages
WO2008045811A2 (en) * 2006-10-10 2008-04-17 Orgoo, Inc. Integrated electronic mail and instant messaging system
CN101441744A (en) * 2008-11-27 2009-05-27 北京立通无限科技有限公司 E-mail management method and system
CN101938584A (en) * 2010-09-08 2011-01-05 无锡中星微电子有限公司 Internetwork network equipment and internetwork communication method
CN104184648A (en) * 2013-05-23 2014-12-03 腾讯科技(深圳)有限公司 E-mail management method and apparatus
CN103560944A (en) * 2013-11-12 2014-02-05 珠海市魅族科技有限公司 Displaying method and terminal for email set
CN106549859A (en) * 2016-12-20 2017-03-29 北京小米移动软件有限公司 Session information management method and device
CN113595852A (en) * 2020-04-30 2021-11-02 北京字节跳动网络技术有限公司 Mail information display method and device, electronic equipment and storage medium
CN113595854A (en) * 2020-04-30 2021-11-02 北京字节跳动网络技术有限公司 Information display method and device, electronic equipment and storage medium
CN113157162A (en) * 2021-04-23 2021-07-23 上海掌门科技有限公司 Method, apparatus, medium and program product for revoking session messages

Also Published As

Publication number Publication date
CN114338590B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN108958780B (en) Method and equipment for presenting update information of hosted program
JP6310477B2 (en) System and method for displaying multiple applications
US8407290B2 (en) Dynamic data sharing using a collaboration-enabled web browser
CN110417641B (en) Method and equipment for sending session message
US20110314387A1 (en) Intelligent filtering for render status determination in a screen sharing system
KR20140021650A (en) Setting permissions for links forwarded in electronic messages
CN110266505B (en) Method and equipment for managing session group
US20120278403A1 (en) Presenting link information near links within electronic messages
US10574759B2 (en) Message-based contextual dialog
KR101709831B1 (en) Initiating social interaction based on e-mail content
CN110336733B (en) Method and equipment for presenting emoticon
JP6877343B2 (en) Handling unstructured messages
CN110290058B (en) Method and equipment for presenting session message in application
CN111309937A (en) Method and equipment for issuing session message
CN111817945B (en) Method and equipment for replying communication information in instant communication application
US11172039B2 (en) Validating push communications
CN114338590B (en) Method, device, medium and program product for presenting mail
KR101570041B1 (en) Method and system for replying to website update event
US11036816B2 (en) Selective collaboration of users within a forum based on prior activity of the users within one or more forums
CN114301861B (en) Method, equipment and medium for presenting mail
CN111314210B (en) Method and equipment for social interaction
CN114301863B (en) Method, device, medium and program product for sending mail
CN114374665B (en) Method, device, medium and program product for sending mail
CN113157162A (en) Method, apparatus, medium and program product for revoking session messages
CN114297373A (en) Method, apparatus, medium, and program product for presenting mail

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant