Mail content sharing method and device, storage medium and electronic device
By directly displaying the email list in the instant messaging app, saving the email content as a file, obtaining the description information, and directly sharing it to the chat window, the problem of complicated email content sharing operations is solved, and quick email content sharing is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2022-02-21
- Publication Date
- 2026-05-12
AI Technical Summary
In existing technologies, sharing email content is complex, requiring switching between multiple applications, resulting in high operational complexity.
This paper provides a method for sharing email content. By directly displaying the email list in an instant messaging app, responding to the session sharing operation, saving the email content as a file according to the target file format, obtaining the email description information, and directly sharing it to the session window, the method avoids switching between multiple applications.
It enables quick sharing of email content, simplifies the operation process, avoids switching between multiple applications, and improves operational efficiency.
Smart Images

Figure CN116668395B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computers, and more specifically, to a method and apparatus for sharing email content, a storage medium, and an electronic device. Background Technology
[0002] In many information exchange scenarios today, users still often choose to send emails to convey important and formal messages. However, in traditional email technology, email content is typically forwarded between various independent email applications (APPs). This means that users can only view the email content within the email application installed on their device.
[0003] If a user wants to share email content within an instant messaging app in a specific situation, they need to exit the instant messaging app, open the email app, manually save the email content from the email app, and then send the saved email content to the corresponding chat window in the instant messaging app. Clearly, the existing method of sharing email content suffers from high operational complexity.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This invention provides a method and apparatus for sharing email content, a storage medium, and an electronic device, to at least solve the technical problem of the complexity of existing email content sharing methods.
[0006] According to one aspect of the present invention, an email content sharing method is provided, comprising: displaying an email list of currently received emails; in response to a session sharing operation performed on a target email in the email list, saving the email content of the target email as a target email file according to a target file format, and obtaining target email description information matching the target email file; and sharing a target session message carrying the target email description information to the session window of the selected target session.
[0007] According to another aspect of the present invention, an email content sharing device is also provided, comprising: a display unit for displaying a list of currently received emails; an acquisition unit for, in response to a session sharing operation performed on a target email in the email list, saving the email content of the target email as a target email file according to a target file format, and acquiring target email description information matching the target email file; and a sharing unit for sharing a target session message carrying the target email description information to the session window of the selected target session.
[0008] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, wherein the computer program is configured to execute the above-described email content sharing method when it is run.
[0009] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the email content sharing method described above.
[0010] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the above-described email content sharing method through the computer program.
[0011] In this embodiment of the invention, a list of currently received emails is displayed; in response to a session sharing operation performed on a target email in the email list, the email content of the target email is saved as a target email file according to the target file format, and target email description information matching the target email file is obtained; the target session message carrying the target email description information is shared to the session window of the selected target session, thereby saving the email as a target email file and quickly sharing it in response to the sharing operation in the email list, avoiding the operation of switching back and forth between multiple applications, and thus solving the technical problem of high complexity in existing email content sharing methods. Attached Figure Description
[0012] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0013] Figure 1 This is a schematic diagram of the hardware environment for an optional email content sharing method according to an embodiment of the present invention;
[0014] Figure 2 This is a flowchart of an optional email content sharing method according to an embodiment of the present invention;
[0015] Figure 3 This is a schematic diagram of an optional email content sharing method according to an embodiment of the present invention;
[0016] Figure 4 This is a schematic diagram of another optional email content sharing method according to an embodiment of the present invention;
[0017] Figure 5 This is a schematic diagram of another optional email content sharing method according to an embodiment of the present invention;
[0018] Figure 6 This is a schematic diagram of another optional email content sharing method according to an embodiment of the present invention;
[0019] Figure 7 This is a schematic diagram of another optional email content sharing method according to an embodiment of the present invention;
[0020] Figure 8 This is a schematic diagram of another optional email content sharing method according to an embodiment of the present invention;
[0021] Figure 9 This is a schematic diagram of another optional email content sharing method according to an embodiment of the present invention;
[0022] Figure 10 This is a flowchart of another optional email content sharing method according to an embodiment of the present invention;
[0023] Figure 11 This is a flowchart of another optional email content sharing method according to an embodiment of the present invention;
[0024] Figure 12 This is a schematic diagram of an optional email content sharing device according to an embodiment of the present invention;
[0025] Figure 13 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention. Detailed Implementation
[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0028] First, the concepts appearing later in this application will be explained:
[0029] H5: The full name is HTML5, the latest HTML standard. In this application, H5 refers to any content provided by the web. The concepts of H5 applications and H5 pages will be used subsequently for comparison with content implemented using native app code.
[0030] JSAPI stands for JavaScript API. Clients pre-inject JavaScript execution context into their internal web container. This context allows communication with the client, enabling web developers to invoke native client-side capabilities such as scanning QR codes, sending messages, and selecting images by calling relevant JavaScript methods.
[0031] IM: Instant Messaging, an app used to enable instant communication between users.
[0032] Eml file: A common file format for saving email content.
[0033] FTN stands for File Transmit Network. Files uploaded to the FTN are permanently stored, and a file ID (FileID) is generated for each file. Applications can then download files from the FTN using the FileID.
[0034] It is understood that in the specific implementation of this application, data such as user operation information and email content are involved. When the above embodiments of this application are applied to specific products or technologies, it is necessary to obtain the user's authorization or consent, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0035] According to one aspect of the present invention, an email content sharing method is provided. As an optional implementation, the above-described email content sharing method can be applied to, but is not limited to, [examples of other methods]. Figure 1 The email content sharing system shown consists of server 102 and terminal device 104. Figure 1 As shown, server 102 is connected to terminal device 104 via network 110. This network may include, but is not limited to, wired networks and wireless networks. The wired network includes local area networks (LANs), metropolitan area networks (MANs), and wide area networks (WANs). The wireless network includes Bluetooth, Wi-Fi, and other networks enabling wireless communication. The terminal device may include, but is not limited to, at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), laptops, tablets, PDAs, MIDs (Mobile Internet Devices), PADs, desktop computers, smart TVs, in-vehicle devices, etc. The terminal device may have a client installed, such as an instant messaging application client, an audio / video application client, an email content sharing application client, etc. The terminal device also includes a display, a processor, and a memory. The display can be used to display the application interface, showing a list of received emails. The processor can process the data corresponding to the operation instructions received by the terminal device. For example, upon receiving operation information received by the terminal device, it can generate a target email file from the content of the target email according to the target file format and generate target email description information matching the target email file. The aforementioned server can be a single server, a server cluster consisting of multiple servers, or a cloud server. The server includes a database and a processing engine.
[0036] According to one aspect of the present invention, the above-described email content sharing system can perform the following steps: Steps S102-S104 are executed in the terminal device 104 to display a list of currently received emails; a session sharing operation is received for a target email in the email list; then, as in step S106, the terminal device 104 sends operation information to the server 102 via the network 110; the server 102 executes step S108 to generate a target email file from the email content of the target email according to the target file format, and generates target email description information matching the target email file; as in step S110, the server 102 sends description information to the terminal device 104 via the network 110; finally, the terminal device 104 executes steps S112-S114 to save the email content of the target email as a target email file according to the target file format, and obtains target email description information matching the target email file; the target session message carrying the target email description information is shared to the session window of the selected target session.
[0037] According to one aspect of the present invention, the terminal device may run a first client, in which an email sub-application and an instant messaging sub-application may run simultaneously, specifically in the form of an H5 page application.
[0038] In this embodiment of the invention, a list of currently received emails is displayed; in response to a session sharing operation performed on a target email in the email list, the email content of the target email is saved as a target email file according to the target file format, and target email description information matching the target email file is obtained; the target session message carrying the target email description information is shared to the session window of the selected target session, thereby saving the email as a target email file and quickly sharing it in response to the sharing operation in the email list, avoiding the operation of switching back and forth between multiple applications, and thus solving the technical problem of high complexity in existing email content sharing methods.
[0039] The above is merely an example, and no limitation is made in this embodiment.
[0040] As an optional implementation method, such as Figure 2 As shown, the above method for sharing email content includes the following steps:
[0041] S202 displays the list of emails that have been received.
[0042] S204, in response to the session sharing operation performed on the target email in the mailing list, save the email content of the target email as a target email file according to the target file format, and obtain the target email description information that matches the target email file;
[0043] S206, Share the target session message carrying the target email description information to the session window of the selected target session.
[0044] It should be noted that the above email list can be the email list interface displayed in the application interface of an email application, or it can be the email list interface displayed in the application interface of a communication application that integrates multiple functions. There is no restriction on the type of application that displays the above email list.
[0045] Furthermore, the object of the above-mentioned session sharing operation can be a sharing operation performed on a target email item in the email list, or a session sharing operation performed on the target email in the details page of the target email in the email list. The specific method of the above-mentioned session sharing operation is not limited here.
[0046] It should be noted that the target file format mentioned above can be any format set according to actual needs, such as .eml, .doc, .pdf, .xml, etc. Furthermore, the operation of saving as the target email file can be considered a caching operation, meaning it is automatically implemented in response to the aforementioned session sharing operation without requiring the user to perform a specific saving action. This application does not limit the target file format used to save email content.
[0047] The email description information mentioned above may include, but is not limited to, email subject, email file size, email file format, email date, email sender, etc., which are email description information that matches the email content. The specific content of the email description information mentioned above is not limited here.
[0048] It should be further noted that, when the application displaying the aforementioned mailing list is a multi-functional communication application, and the sharing operation is performed within the communication application, the session window can be the session window interface of a sub-communication program of the communication application; when the sharing operation is performed outside the communication application, the session window can be the session window interface of a second communication application. When the application displaying the aforementioned mailing list is only an email application, the session window can be the session window interface of a third communication program.
[0049] The following combination Figures 3 to 6 A specific implementation method will be described.
[0050] like Figure 3 As shown, on the target application's main page, the first list on the left displays entry points to several sub-applications, including "Messages" and "Email," which are the entry points for instant messaging and email applications, respectively, used to implement instant messaging and email management functions. When "Email" is selected, the second column on the left further displays several functional options for the "Email" sub-application, including an "Inbox" option. Selecting "Inbox" displays a list of currently received emails, including emails such as "Project Progress Notification," "Regarding Follow-up Training…," "Streaming Computing…," and "Project Test Notification." Selecting "Streaming Computing…" displays the email's details.
[0051] like Figure 4As shown, upon receiving a touch operation on the first control 401 in the details screen of the email "Register for the Online Course on Streaming Computing and Flink Introduction!", a list of operation options is further displayed, including options such as "Mark as Unread", "Move to Another Folder", "Report", "Delete", "Permanently Delete", and "Forward to Chat". Upon receiving a touch operation on the option "Forward to Chat" in the operation option list, it is confirmed that a session sharing operation has been received for the target email in the email list.
[0052] Furthermore, such as Figure 5 As shown, a session selection window is displayed as a floating window in the original interface. When the session "TestRobot" is selected, the following is further displayed: Figure 6 The shown conversation interface allows sharing a target conversation message containing the target email description information to the conversation window of the selected target conversation. For example... Figure 6 As shown, the conversation window displays the email description information, including the email subject "Registration for the Online Course on Streaming Computing and Flink Introduction!", the email file format "eml", and the email file size "2.27M". This allows for convenient and quick email sharing using the method described above.
[0053] In this embodiment of the invention, a list of currently received emails is displayed; in response to a session sharing operation performed on a target email in the email list, the email content of the target email is saved as a target email file according to the target file format, and target email description information matching the target email file is obtained; the target session message carrying the target email description information is shared to the session window of the selected target session, thereby saving the email as a target email file and quickly sharing it in response to the sharing operation in the email list, avoiding the operation of switching back and forth between multiple applications, and thus solving the technical problem of complex and high-efficiency operation methods of existing email content sharing.
[0054] As an optional implementation, the above-mentioned response to a session sharing operation performed on a target email in the email list, including saving the email content of the target email as a target email file according to the target file format, and obtaining the target email description information matching the target email file, includes:
[0055] S1, in response to the session sharing operation performed on the target email, saves the email content of the target email as a target email file according to the general email file format, and sends the target email file to the backend server through the file transfer network;
[0056] S2, upon receiving the file identification information of the target email file returned by the backend server, generates the target email description information using the file identification information and the title of the target email. The file identification information includes the file identifier and the file size.
[0057] It is understood that in this embodiment, the general email file format is .eml, and the format for generating .eml files follows the internet industry standard RFC822. The file transfer network mentioned above is FTN. After a file is uploaded to the FTN, it is permanently stored, and an ID, i.e., a FileID, is generated for that file. The application can download the file from the FTN using the FileID.
[0058] In this embodiment, in response to a session sharing operation performed on the target email, the email sub-application first generates an .eml file of the selected target email and stores it in memory. Then, by calling the FTN service, the target email file is sent to the backend server. After successful upload, the backend server returns the email's FileID and file size to the email sub-application. Upon receiving file identification information including file identifier and file size, and combining it with the target email's title, email description information is generated. This email description information includes, but is not limited to, the target email's title, file type, and file size.
[0059] like Figure 4 , Figure 6 As shown, in Figure 4 When a touch operation is received on the second control 402 in the interface shown, i.e., when a session sharing operation is received, the application performs the above operation in the background, and ultimately as follows: Figure 6 As shown, the shared email file card is displayed in the conversation window. The card includes the email file identifier, namely the "email" icon displayed on the right side of the card, as well as the file type "eml", the file size "2.27M", and the email title "Register for the Online Course on Streaming Computing and Flink!".
[0060] Through the above embodiments of this application, in response to a session sharing operation performed on a target email, the email content of the target email is saved as a target email file according to a common email file format, and the target email file is sent to a backend server via a file transfer network; upon receiving the file identification information of the target email file returned by the backend server, the target email description information is generated using the file identification information and the title of the target email, thereby sharing the email content in a specific email format, facilitating quick browsing of the email content in the session window, and saving the email content in a specific email format to support sharing the email content in other applications, thus solving the technical problem of high complexity in existing email content sharing methods.
[0061] As an optional implementation, before sharing the target session message carrying the target email description information to the session window of the selected target session, the method further includes:
[0062] S1, Overlay a forwarding session selection floating window on the email tab where the email list is located. The forwarding session selection floating window includes a candidate session list area and a share confirmation operation area corresponding to the email description information.
[0063] S2, in response to the selection operation performed on at least one candidate session in the candidate session list area, the selected at least one candidate session is determined as the target session;
[0064] S3, in response to the confirmation operation performed on the confirmation control corresponding to the target email description information in the sharing confirmation operation area, generates a target session message carrying a file-type message tag using the target email description information, and shares the target session message to the session window of the target session.
[0065] The candidate conversation list above may display, but is not limited to, recently existing conversations, group conversations, conversations where you can select an object to start a two-person conversation, and conversations obtained by searching using the search control.
[0066] It should be noted that before sharing the target session message containing the target email description information to the session window of the selected target session, such as... Figure 5 As shown, a forwarding session selection pop-up is displayed overlaid on the email tab containing the email list. This pop-up displays the candidate session list area 501 and the share confirmation operation area 502.
[0067] Furthermore, in response to Figure 5 The selection operation of "TestRobot" displayed in the candidate session list area 501 determines that the session with "TestRobot" is the target session. If a touch operation on the "Send" control in the share confirmation operation area 502 is detected, it is determined that a confirmation operation was performed on the confirmation control corresponding to the target email description information in the share confirmation operation area.
[0068] In response to the above confirmation operation, a target session message carrying a file-type message tag is generated using the target email description information, and it is determined that the target session message will be shared in the target session's session window, i.e., as follows. Figure 6As shown, the target session for sharing email content in the form of an email card is the "TestRobot" session window. The email card displays email information related to the email content, namely the "email" identifier, the email file type "eml", the file size "2.27M", and the email title "Register for the Online Course on Streaming Computing and Flink!".
[0069] Through the above embodiments of this application, a forwarding session selection floating window is overlaid on the email tab where the email list is located; in response to the selection operation performed on at least one candidate session in the candidate session list area, the selected at least one candidate session is determined as the target session; in response to the confirmation operation performed on the confirmation control corresponding to the target email description information in the share confirmation operation area, a target session message carrying a file-type message tag is generated using the target email description information, and it is determined to share the target session message to the session window of the target session. Thus, by responding to the share operation in the email list, the email is saved as a target email file and quickly shared, avoiding the operation of switching back and forth between multiple applications, thereby solving the technical problem of complex and high-efficiency operation methods of existing email content sharing.
[0070] As an optional implementation, after sharing the target session message carrying the target email description information to the session window of the selected target session, the method further includes:
[0071] S1, Display the target session message in the target session's session window;
[0072] S2, in response to a viewing operation triggered by a message in the target session, creates a first display window above the session window of the target session and displays the content of the target email in the first display window.
[0073] It is understood that the above viewing operation can be a click operation, a double-click operation, or a long-press operation on the target session message, etc. There are no restrictions on the above viewing methods here.
[0074] In such Figure 6 In the interface shown, upon detecting a user's viewing action on the email card, a first display window is created above the target session's window, and the email content of the target email is displayed within this first display window, as shown below. Figure 7 As shown, the email titled "Registration for the Online Course on Streaming Computing and Flink!" displays details such as the email body, sender, and sending time.
[0075] It is understandable that, in the case of a viewing operation on the target session message detected in the windows of both the sending and receiving ends, a first display window can be created above the session window, and the content of the target email can be displayed in the first display window.
[0076] It should be explained that, in this embodiment, the target session message carries the file format information of the email file. When the session application detects a viewing operation on the session window carrying the aforementioned file format information of the email file, it can use the built-in EML format parsing and preview UI component to directly create a first display window on the session window, open the email content, and allow the user to view the email content.
[0077] Through the above-described embodiments of this application, by displaying target session messages in the session window of the target session; in response to a viewing operation triggered by the target session messages, a first display window is created above the session window of the target session, and the email content of the target email is displayed in the first display window. Thus, in response to a sharing operation in the email list, the email is saved as a target email file and quickly shared, avoiding the operation of switching back and forth between multiple applications, thereby solving the technical problem of complex and high-level operation methods for sharing existing email content.
[0078] As an optional implementation, after sharing the target session message carrying the target email description information to the session window of the selected target session, the method further includes: in response to the email sharing operation performed on the target session message, sharing the saved target email file to a target instant messaging application client other than the current instant messaging application client on the current terminal device.
[0079] As an optional implementation, sharing the saved target email file to a target instant messaging application client other than the current instant messaging application client on the current terminal device includes: copying the target email file stored in the first file mapping directory corresponding to the current instant messaging application client to the second file mapping directory corresponding to the target instant messaging application client, wherein the target email file is generated based on the binary file data corresponding to the target email file downloaded from the backend server.
[0080] The following combination Figure 8 , Figure 9 The above implementation method will be described.
[0081] like Figure 8As shown, in the target session window, right-clicking the target session message (email card) triggers a list of control options for the email file. If the "Save As" option is selected, the email file indicated in the target session message is saved locally. In the background, the target email file stored in the first file mapping directory corresponding to the current instant messaging application client is copied to the second file mapping directory corresponding to the target instant messaging application client. It can be understood that the first file mapping directory is the session cache directory; upon receiving the aforementioned email card message, the email file is saved in the cache directory by default. When the email card is saved, the cached email files in the cache directory are saved to the user-accessible directory. It can be understood that files in the user-accessible directory are available for selection and sharing by the user.
[0082] Then as Figure 9 As shown, in the conversation interface of the second communication application client, when a touch operation is detected on the "file sharing" control and the email file saved in the above steps is selected, the email file is sent in the conversation interface of the second communication application client, thereby realizing cross-application email content sharing.
[0083] Through the above embodiments of this application, after sharing the target session message carrying the target email description information to the session window of the selected target session, the method further includes: in response to the email sharing operation performed on the target session message, sharing the saved target email file to a target instant messaging application client other than the current instant messaging application client in the current terminal device; and copying the target email file stored in the first file mapping directory corresponding to the current instant messaging application client to the second file mapping directory corresponding to the target instant messaging application client, thereby realizing the saving of email content in a specific file format and realizing cross-application email content sharing, solving the technical problem of complex and high-level operation methods of existing email content sharing.
[0084] As an optional implementation, after sharing the target session message carrying the target email description information to the session window of the selected target session, the method further includes:
[0085] S1, receive a reference session message sent by the reference instant messaging application client, wherein the reference session message carries reference email description information of the reference email;
[0086] S2, Download the reference email file and display the reference session message in the session window of the reference session;
[0087] S3, in response to a viewing operation triggered by a reference session message, creates a second display window above the reference session's session window and displays the content of the reference email in the second display window.
[0088] It should be noted that the format of the reference email files in the above embodiments may include, but is not limited to, .eml, .html5, .doc, and .pdf formats. Furthermore, the methods for saving and transferring these email files are determined according to the design needs of different applications; therefore, no restrictions are placed here on the file format of the email files or the background file transfer methods.
[0089] It's also understandable that the aforementioned conversation message can be a file message or an H5 page card message. If the conversation message is a file message, and a view operation triggered by a reference conversation message is detected, the native email display window can be opened directly based on the information carried in the file message. If the conversation message is an H5 page card message, and a view operation triggered by a reference conversation message is detected, the user will be redirected to the email web application for access and viewing based on the link address carried in the H5 page. No restrictions are placed on the above viewing methods.
[0090] As an optional implementation, after displaying the reference session message in the session window of the reference session, the method further includes: in response to an email sharing operation performed on the reference session message, sharing the downloaded reference email file to a target instant messaging application client other than the current instant messaging application client on the current terminal device.
[0091] It is understandable that, since different email applications implement email content in different ways, if the email content in an email application is implemented using native code, then the native code is directly downloaded and transferred directly using native code during the internal file transfer process; if the email application and the instant messaging application are not built into the same integrated application, the above-mentioned email content transfer method can be implemented through inter-process communication between different applications.
[0092] The following combination Figure 10 A preferred embodiment of the above method will be described.
[0093] As in step S1002, the first client sends the fileID to the first server;
[0094] Step S1004: The first server returns binary data to the first client;
[0095] Step S1006: The first client calculates the file mapping and writes it to the first application data directory;
[0096] Understandably, after a user receives an email file message shared by another user, the application automatically downloads the corresponding file content from the first server based on the fileID within the file message and stores the aforementioned binary data in the cache directory. It then displays the file in the form of a message card based on the title in the subject field and the file extension. The file size is also displayed using fileSize. When the user double-clicks the current file message, the application client detects that the file format is email format (.eml) and can use the built-in .eml format parsing preview UI component to open the email content for the user to view.
[0097] In other words, after a user receives a shared email message, they can download the received email file from the application's backend using the message's FileID. The backend returns the email file's binary data to the client, which then extracts the file information, calculates the directory where the file is stored within the application, and stores it.
[0098] For example, in step S1008, the user controls the execution of the "Save As" operation and copies the file to the specified directory;
[0099] In step S1010, the user sends the file via other communication software.
[0100] After the email is saved, users can use the application's "Save As" function to save the corresponding file in a specified location in memory for easy sharing of the email content; then, users can share the email file through a second client.
[0101] The following combination Figure 11 The following flowchart illustrates the complete process of the email content sharing method provided in this application:
[0102] First, obtain authorization;
[0103] It is understood that in the specific implementation of this application, data such as user operation information and user email content are involved. When the above embodiments of this application are applied to specific products or technologies, it is necessary to obtain the user's authorization or consent, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0104] Next, as in step S1102, generate an .eml file and upload it to the FTN;
[0105] First, the email module in the first application generates an EML file corresponding to the target email and saves it in the cache. The format of the generated EML file conforms to the internet industry standard RFC822. Then, it calls the FTN service of the communication module of the first application to upload the email file.
[0106] Step S1104: Send the email title and fileID via JSAPI;
[0107] Understandably, after a successful upload, the backend will return the file's FileID to the email module in the first application. The email module then calls a JSAPI method to return information to the communication module in the first application, carrying the following parameters: -fileID: The file's ID information in the FTN, used to uniquely identify the file; -fileSize: The file size; -subject: The email subject;
[0108] Step S1106: The user selects a session;
[0109] Step S1108: Generate a file-type message and send it;
[0110] After receiving the JSAPI call, the first application communication module extracts the corresponding information from the parameters, assembles a file-type message, and displays the forwarding message component UI. The user selects the desired session through the forwarding message component and clicks "Confirm." The client then calls the message sending logic to the user-selected session, sending the email content as a file message to the corresponding message session.
[0111] Step S1110: Return the user's operation result via JSAPI;
[0112] Step S1112, the UI closes the selection interface.
[0113] The above Figure 11 The process shown is for illustrative purposes only, and no limitations are imposed on it in this embodiment.
[0114] In this embodiment of the invention, a list of currently received emails is displayed; in response to a session sharing operation performed on a target email in the email list, the email content of the target email is saved as a target email file according to the target file format, and target email description information matching the target email file is obtained; the target session message carrying the target email description information is shared to the session window of the selected target session, thereby saving the email as a target email file and quickly sharing it in response to the sharing operation in the email list, avoiding the operation of switching back and forth between multiple applications, and thus solving the technical problem of complex and high-efficiency operation methods of existing email content sharing.
[0115] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0116] According to another aspect of the present invention, an email content sharing apparatus for implementing the above-described email content sharing method is also provided. For example... Figure 12 As shown, the device includes:
[0117] Display unit 1202 is used to display a list of emails that have been received.
[0118] The acquisition unit 1204 is used to respond to a session sharing operation performed on a target email in the email list, save the email content of the target email as a target email file according to the target file format, and acquire the target email description information that matches the target email file.
[0119] The sharing unit 1206 is used to share a target session message carrying target email description information to the session window of the selected target session.
[0120] Optionally, in this embodiment, the implementation of each of the above-mentioned unit modules can be referred to the above-mentioned method embodiments, which will not be repeated here.
[0121] According to another aspect of the present invention, an electronic device for implementing the above-described email content sharing method is also provided. This electronic device may be... Figure 13 The terminal device or server shown. This embodiment uses this electronic device as an example for illustration. Figure 13 As shown, the electronic device includes a memory 1302 and a processor 1304. The memory 1302 stores a computer program, and the processor 1304 is configured to execute the steps of any of the above method embodiments through the computer program.
[0122] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.
[0123] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0124] S1 displays the list of emails that have been received.
[0125] S2, in response to the session sharing operation performed on the target email in the email list, saves the email content of the target email as the target email file according to the target file format, and obtains the target email description information that matches the target email file;
[0126] S3 shares the target session message containing the target email description information to the session window of the selected target session.
[0127] Alternatively, as those skilled in the art will understand, Figure 13 The structure shown is for illustrative purposes only. Electronic devices can also be in-vehicle terminals, smartphones (such as Android phones, iOS phones, etc.), tablets, handheld computers, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 13 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 13 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 13 The different configurations shown.
[0128] The memory 1302 can be used to store software programs and modules, such as the program instructions / modules corresponding to the email content sharing method and apparatus in this embodiment of the invention. The processor 1304 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302, thereby realizing the aforementioned email content sharing method. The memory 1302 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1302 may further include memory remotely located relative to the processor 1304, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1302 may be used, but is not limited to, to store information such as email content. As an example, such as... Figure 13 As shown, the memory 1302 may include, but is not limited to, the display unit 1202, the acquisition unit 1204, and the sharing unit 1206 in the email content sharing device. Furthermore, it may include, but is not limited to, other module units in the email content sharing device, which will not be described in detail in this example.
[0129] Optionally, the transmission device 1306 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1306 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1306 is a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0130] In addition, the aforementioned electronic device also includes: a display 1308 for displaying and a connection bus 1310 for connecting various module components in the aforementioned electronic device.
[0131] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.
[0132] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions provided in embodiments of this application.
[0133] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0134] According to one aspect of this application, a computer-readable storage medium is provided, wherein a processor of a computer device reads computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-described email content sharing method.
[0135] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0136] S1 displays the list of emails that have been received.
[0137] S2, in response to the session sharing operation performed on the target email in the email list, saves the email content of the target email as the target email file according to the target file format, and obtains the target email description information that matches the target email file;
[0138] S3 shares the target session message containing the target email description information to the session window of the selected target session.
[0139] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0140] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0141] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0142] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.
[0143] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0144] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0145] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for sharing email content, characterized in that, include: Display the instant messaging application entry and email application entry in the application interface; When the email application entry is selected, a list of currently received emails is displayed; In response to a session sharing operation performed on a target email in the email list, the email content of the target email is saved as a target email file according to the target file format, and the target email file is uploaded to a file transfer network. A file identifier for the target email file is generated, and target email description information matching the target email file is generated based on the file identifier. When a forwarding session selection pop-up is displayed overlaid on the tab where the email list is located, in response to the selection operation of the target session among at least one candidate session, the target session message is determined based on the target email file and the target email description information, and the target session message is shared to the session window of the selected target session, wherein the forwarding session selection pop-up displays at least one candidate session corresponding to the instant messaging application entry. After sharing the target session message to the session window of the selected target session, it also includes at least one of the following: In response to a viewing operation of the target session message, if the target session message is a file message, the target session message is viewed through the native email display window; if the target session message is a page card message, the target session message is viewed through a webpage. In response to a triggering operation on the target session message, the target session message is stored in a user-operable directory; In response to the email sharing operation performed on the target session message, the target session message in the user-operable directory is shared to the reference instant messaging application client.
2. The method according to claim 1, characterized in that, In response to a session sharing operation performed on a target email in the email list, the email content of the target email is saved as a target email file according to the target file format, and the target email description information matching the target email file is obtained, including: In response to the session sharing operation performed on the target email, the email content of the target email is saved as the target email file according to the general email file format, and the target email file is sent to the backend server through the file transfer network; Upon receiving the file identification information of the target email file returned by the backend server, the target email description information is generated using the file identification information and the title of the target email, wherein the file identification information includes the file identifier and the file size.
3. The method according to claim 1, characterized in that, Before sharing the target session message carrying the target email description information to the session window of the selected target session, the method further includes: A forwarding session selection pop-up window is overlaid on the email tab where the email list is located. The forwarding session selection pop-up window includes a candidate session list area and a share confirmation operation area corresponding to the email description information. In response to a selection operation performed on at least one candidate session in the candidate session list area, the selected at least one candidate session is determined as the target session; In response to a confirmation operation performed on the confirmation control corresponding to the target email description information in the sharing confirmation operation area, a target session message carrying a file-type message tag is generated using the target email description information, and it is determined to share the target session message to the session window of the target session.
4. The method according to claim 1, characterized in that, After sharing the target session message carrying the target email description information to the session window of the selected target session, the process also includes: The target session message is displayed in the session window of the target session; In response to a viewing operation triggered by the target session message, a first display window is created above the session window of the target session, and the email content of the target email is displayed in the first display window.
5. The method according to claim 1, characterized in that, After sharing the target session message carrying the target email description information to the session window of the selected target session, the process also includes: In response to an email sharing operation performed on the target session message, the saved target email file is shared to a target instant messaging application client other than the current instant messaging application client on the current terminal device.
6. The method according to claim 5, characterized in that, The step of sharing the saved target email file to a target instant messaging application client outside the current instant messaging application client on the current terminal device includes: Copy the target email file stored in the first file mapping directory corresponding to the current instant messaging application client to the second file mapping directory corresponding to the target instant messaging application client, wherein the target email file is generated based on the binary file data corresponding to the target email file downloaded from the backend server.
7. The method according to claim 1, characterized in that, After sharing the target session message carrying the target email description information to the session window of the selected target session, the process also includes: Receive a reference session message sent by a reference instant messaging application client, wherein the reference session message carries reference email description information of the reference email; Download the reference email file and display the reference session message in the reference session's session window; In response to a viewing operation triggered by the reference session message, a second display window is created above the session window of the reference session, and the email content of the reference email is displayed in the second display window.
8. The method according to claim 7, characterized in that, After displaying the reference session message within the reference session's session window, the process further includes: In response to an email sharing operation performed on the reference session message, the downloaded reference email file is shared to a target instant messaging application client other than the current instant messaging application client on the current terminal device.
9. An email content sharing device, characterized in that, include: The display unit is used to display the instant messaging application entry and the email application entry in the application interface. When the email application entry is selected, a list of currently received emails is displayed; The acquisition unit is configured to respond to a session sharing operation performed on a target email in the email list, save the email content of the target email as a target email file according to the target file format, upload the target email file to the file transfer network, generate a file identifier for the target email file, and generate target email description information matching the target email file based on the file identifier. The sharing unit is configured to, in response to a selection operation of a target session from at least one candidate session, determine a target session message based on the target email file and the target email description information, and share the target session message to the session window of the selected target session when a forwarding session selection floating window is displayed overlaid on the tab where the email list is located, wherein the forwarding session selection floating window displays at least one candidate session corresponding to the instant messaging application entry; after sharing the target session message to the session window of the selected target session, the unit further includes at least one of the following: in response to a viewing operation of the target session message, viewing the target session message through a native email display window when the target session message is a file message; viewing the target session message through a webpage when the target session message is a page card message; sharing the target session message carrying the target email description information to the session window of the selected target session; storing the target session message in a user-operable directory in response to a trigger operation of the target session message; and sharing the target session message in the user-operable directory to a reference instant messaging application client in response to an email sharing operation performed on the target session message.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program is executed by a processor to perform the method described in any one of claims 1 to 8.
11. A computer program product, comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 8.
12. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 8 through the computer program.