CN107733770B - Mail processing method and device - Google Patents

Mail processing method and device Download PDF

Info

Publication number
CN107733770B
CN107733770B CN201610652445.7A CN201610652445A CN107733770B CN 107733770 B CN107733770 B CN 107733770B CN 201610652445 A CN201610652445 A CN 201610652445A CN 107733770 B CN107733770 B CN 107733770B
Authority
CN
China
Prior art keywords
mail
target
file
prompting
processing
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.)
Active
Application number
CN201610652445.7A
Other languages
Chinese (zh)
Other versions
CN107733770A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610652445.7A priority Critical patent/CN107733770B/en
Publication of CN107733770A publication Critical patent/CN107733770A/en
Application granted granted Critical
Publication of CN107733770B publication Critical patent/CN107733770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes

Abstract

The application provides a mail processing method and a device, in the scheme of the application, after a mailbox application receives a file sending request and acquires a target file included in the file sending request, whether the mailbox application has the target mail meeting a preset matching relation with the file name of the target file or not is detected; if the target mail exists in the mailbox application, displaying an operation interface for processing the target mail; and when the preset operation is detected in the operation interface of the target mail, generating a mail to be written which comprises the target mail and has an attachment as the target file. The method and the device can conveniently and efficiently realize the forwarding or replying of the mail when the user wants to add the file as the attachment to the existing mail for forwarding or replying.

Description

Mail processing method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a mail.
Background
It is a common practice in daily life and work to send and receive mails using a mailbox application on a terminal.
One of the more common mail processing scenarios is: after a user receives a mail containing an attachment by using a mailbox application in a terminal, editing the content of a file in the attachment, and replying the edited file to an opposite side or forwarding the edited file to other people as a mail attachment. However, after the user receives the email, the user needs to open the file in the attachment by using the file processing application, so that after editing the content of the file, if the user wants to reply the edited file to the sender of the email, the user needs to re-enter the interface of the mailbox application, then after searching and opening the email needing to be replied or forwarded, the user needs to re-determine the position of the file, and then the file can be added to the forwarded or replied email. Therefore, if a user wants to forward or reply the edited file to other people on the basis of the existing mail, the user needs to perform more complex and tedious operations, and the time consumption is long.
Disclosure of Invention
The application provides a mail processing method and a device, so that when a user wants to add a file as an attachment to forward or reply an existing mail, the forwarding or replying of the mail can be conveniently and efficiently realized.
In order to solve the above problem, in one aspect, the present application provides a mail processing method, including:
receiving a file sending request, wherein the file sending request carries a target file to be sent;
detecting whether a target mail meeting a preset matching relation with the file name of the target file exists in the mailbox application or not;
if the target mail exists in the mailbox application, displaying an operation interface for processing the target mail;
and when a preset operation is detected in the operation interface for processing the target mail, generating a target mail to be written, which comprises the target mail and has an attachment as the target file.
On the other hand, the present application also provides a mail processing apparatus, including:
a request receiving unit, configured to receive a file sending request, where the file sending request carries a target file to be sent;
the mail detection unit is used for detecting whether a target mail meeting a preset matching relation with the file name of the target file exists in the mailbox application or not;
the first mail display unit is used for displaying an operation interface for processing the target mail if the target mail exists in the mailbox application;
and the first mail generating unit is used for generating a target mail to be written, which contains the target mail and has an attachment as the target file, when a preset operation is detected in the operation interface for processing the target mail.
It can be understood that, in the embodiment of the present application, if it is detected that a target email whose file name satisfies a preset matching relationship with the target file exists in the mailbox application, an operation interface for processing the target email is directly displayed, so that a user only needs to perform a preset operation (for example, click a forwarding or reply option) on the operation interface, the mailbox application generates an email including the target email, and automatically adds the target file as an attachment of the generated email, so that the user can directly send the email after editing the email, avoid complex operations such as searching the email by the user, and manually adding the target file as an attachment, and thus, forwarding or replying of the email can be conveniently and efficiently achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a schematic diagram illustrating interaction of a process according to an embodiment of a mail processing method of the present application;
FIG. 2 is a schematic flow chart diagram illustrating a mail processing method according to another embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating a mail processing method according to yet another embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a file send request sent by a file handling application to a mailbox application;
FIG. 5a is a schematic diagram illustrating one possible example of a hint bar display in the mailbox application of the present application;
FIG. 5b is a diagram illustrating a prompt displayed in the email for prompting the user to add a target file as an attachment;
FIG. 5c is a schematic diagram illustrating a plurality of operational options associated with the prompt box of FIG. 5 b;
FIG. 6 is a schematic diagram of another possible prompt bar displayed by the mailbox application in the event that the mailbox application does not detect a target mail that satisfies a preset matching relationship;
FIG. 7 is a schematic view illustrating a flow interaction of a mail processing method in an application scenario according to the present application;
FIG. 8 is a schematic view of a process flow for an "end-of-year assessment questionnaire" received for a mailbox application;
FIG. 9 is a schematic flow chart diagram illustrating one embodiment of a mail processing method of the present application;
FIG. 10 is a schematic diagram illustrating an embodiment of a mail processing apparatus of the present application;
fig. 11 is a diagram illustrating a hardware architecture of an embodiment of a terminal according to the present application.
Detailed Description
The service scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and as a person having ordinary skill in the art knows that along with the evolution of a network architecture and the appearance of a new service scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems.
The mailbox processing method and device in the embodiment of the application are suitable for the mailbox client, and the mailbox client can be understood as an intelligent terminal such as a mobile phone and a palm computer where the mailbox application is located, and can also be a terminal such as a personal computer where the mailbox application program is located.
In the embodiment of the application, the mailbox client can be used for sending and receiving the email. Particularly, in order to improve the efficiency of mail management, the mailbox client may be further configured to manage the sending and receiving of mails of other mailboxes associated with the mailbox client, so that a user does not need to install application programs of the multiple mailboxes on a terminal, and only needs the mailbox client to manage the sending and receiving of mails of other multiple mailboxes. For example, the mailbox client may support multiple users, each user may have different mailbox accounts of multiple different mailboxes, and the mailbox client may associate the mailbox client with the accounts of the multiple mailboxes of the user, so that the mailbox client may send and receive mails in the multiple different mailbox accounts.
In a scene such as daily life or office of a user, the user often sends a file such as a picture, a document, or a form to another user using a mailbox, and in many cases, the user wants to send the file on the basis of the existing file in the mailbox.
For example, in one scenario, after the user a receives the email with the progress filling form sent by the user B, the user a opens the progress filling form by using the office application software, and after the progress filling form fills the progress of the relevant work, the user a wishes to reply the email based on the email sent by the user B, and sends the modified progress filling form as an attachment to the user B in the reply email. Therefore, the user A can be prevented from editing the mail subject, filling in the receiver and the like, and the user B can be facilitated to quickly know the approximate content of the mail after receiving the mail replied by the user A.
For another example, in another scenario, a user C sends a mail to a user D, and requests the user D to approve an approval report in an attachment of the mail through the mail, then after the user D approves the approval report, the approval report after approval by the user D may need to be forwarded to the user E for approval, in this case, after the user D completes approval of the approval report, the user D wants to forward the mail sent by the user C to the user E, and adds the approval report after approval by the user D to the forwarded mail, so that the user D can write less content in the mail text, and the user E can know the content of approval required for the approval report and the approval deadline time and other information directly according to the text of the mail of the user C.
Of course, in practical applications, there may be many scenarios that require forwarding or replying on the basis of the received or sent email, which is not limited herein.
In order to facilitate forwarding or sending of a mail, according to the mail processing method of the embodiment of the application, after a file processing request is received, whether a target mail meeting a preset matching relationship with a file name of a target file requested to be sent by the file processing request exists in the mailbox application is automatically detected, an operation interface for processing the target mail is automatically displayed when the target mail is detected, meanwhile, after a preset operation is detected in the operation interface, a mail containing the target mail is automatically generated, and the target file is added as an attachment of the generated mail, so that the purpose of conveniently and efficiently forwarding or replying the mail is achieved.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, which shows a flowchart of an embodiment of a mail processing method according to the present application, where the method of the present embodiment is applied to a client of a mailbox application, the method of the present embodiment may include:
s101, receiving a file sending request.
The file sending request carries a target file to be sent. For the sake of easy distinction, the file to be transmitted is referred to as a target file in the embodiments of the present application. The target file may be a picture, a document, a table, etc.
The file sending request may be a file sending request generated in a mailbox application, for example, a file sending request generated by detecting that a trigger is sent to a file in a certain mail in the mailbox application.
Optionally, the file sending request sent by other applications besides the mailbox application may be received. For example, in the embodiment of the present application, a file sending request sent by a file processing application may be received, where the file processing application may be understood as another application on a terminal where a client of the mailbox application is located.
In one possible scenario, the file processing application may be an application for rendering, editing files. For example, when the file is a document, the file processing application may be a document processing application, and the document may be presented by the document processing application, and the content in the document may be modified or deleted. After the file is displayed, edited and the like by using the file processing application, a user can select the file to enable the file processing application to display corresponding operation options, and if the user selects to send the file through a mail, the file processing application sends a file sending request to the mailbox application.
In yet another possible scenario, the file handling application may also be a file management application, such as file management in an operating system. The user can directly select the file and trigger the file management application to send a file sending request to the mailbox application on the premise of not opening the file.
Of course, the file processing application is not limited to the above two cases, and there may be other possible cases, which are not limited herein.
The file sending request is sent to the mailbox application through the file processing application, so that the file to be sent can be directly sent to the mailbox application without opening the mailbox application by a user, and the operation convenience is improved. Particularly, on handheld intelligent terminals such as mobile phones and handheld computers which are not convenient to transfer files, the file sending request is sent to the mailbox application by adopting the mode, and the convenience of file sending can be improved more obviously.
S102, whether a target mail meeting a preset matching relation with the file name of the target file exists in the mailbox application is detected.
Specifically, the mailbox application may detect whether the mailbox application processes a target mail that satisfies a preset matching relationship with the file name of the target file. If so, the mailbox application receives or sends the target mail meeting the preset matching relation with the file name of the target file.
In particular, when the mailbox application is used as a mailbox management application, the mailbox application is associated with one or more mailboxes, and in this case, the mailbox application may actually detect whether a target mail meeting a preset matching relationship with the file name of the target file exists in at least one mailbox associated with the mailbox application. If the mailbox application is responsible for managing the mailbox of the user account A and the mailbox of the user account B in the instant messaging mailbox, the mailbox application can be respectively associated with the instant messaging mailbox of the user account A and the instant messaging mailbox of the user account B, and the mailbox application can detect whether the instant messaging mailboxes corresponding to the user account A and the user account B have target mails of which the file names meet the preset matching relationship with the target file.
It can be understood that, in a case that a user wishes to send the target file by forwarding or replying an existing email in a mailbox, the email that the user wishes to forward or reply generally has a certain association with a file name of the target file, and therefore, the preset matching relationship in the embodiment of the present application may have a variety of possible situations:
in one possible case, the preset matching relationship may be: the matching degree of the subject of the mail and the file name of the target file exceeds a preset threshold value. The preset threshold value can be set according to needs. If the subject of the mail is the same as the file name of the target file, or the subject of the mail contains the file name of the target file, the matching degree is considered to be one hundred percent, and the mail can be considered to be the target mail; for another example, the subject of the mail includes most of the content in the file name of the target file, and the matching degree is also high, and at this time, the matching degree may also be considered to exceed the preset threshold.
In yet another possible case, the preset matching relationship may be: the main body of the mail contains a plurality of continuous characters which are matched with the file name of the target file with the degree exceeding a preset threshold value. For example, the mail body contains the file name of part or all of the target file.
In yet another possible case, the preset matching relationship may be: the matching degree of the attachment name of the attachment in the mail and the file name of the target file exceeds a preset threshold value. Optionally, the matching degree exceeding the preset threshold may be: the file name of the attachment in the mail is identical to the file name of the target file, and it should be noted that the attachment name and the file name compared at this time may not include a file format suffix.
Of course, the above are only a few possible cases of the preset matching relationship, and in practical applications, the preset matching relationship may also have other cases, which is not limited herein.
S103, if the file name of the target file in the mailbox application meets the preset matching relation with the target mail, displaying an operation interface for carrying out operation on the target mail.
The operation interface for processing the target email may be a page of the target email, or an email interface of the target email, such as a page presented when the target email is opened, where one or more of the text, the subject, the attached name of the included attachment, the recipient or the sender, and the like of the target email may be displayed on the page.
The operation interface for processing the target email can also be an operable operation interface other than the email interface of the target email. For example, an operation interface associated with the target email, in which options for triggering different processing of the target email can be presented. For example, when the terminal where the mailbox application is located is a terminal with a large display screen, such as a platform computer or a desktop computer, after the mailbox application determines the target mail, a mail interface of the target mail may be displayed, and an operation interface with a plurality of operation options available for the user to select may be displayed outside the mail interface of the target mail.
Optionally, when the operation interface for processing the target email is an operable interface other than the email interface of the target email, the operation interface for processing the target email may be displayed while the email interface of the target email is displayed.
S104, when the preset operation is detected in the operation interface for processing the target mail, generating the target mail to be written, which comprises the target mail and has an attachment as the target file.
For the convenience of distinguishing, in the embodiment of the present application, the generated to-be-written mail that includes the target mail and has the attachment as the target file is referred to as a target to-be-written mail. For example, the target to-be-written mail may include a text of the target mail, or may include a summary of the target mail. Optionally, the body of the target email may be contained in the generated body and the attachment is the target email to be written of the target email.
The preset operation may be understood as an operation of triggering forwarding or replying to the target email.
In an example, when the operation interface corresponding to the target email is the email interface of the target email, a forwarding option for triggering forwarding of the target email and a reply option for triggering reply to the target email may be displayed in the operation interface of the target email, so that a user may select the forwarding option or the reply option according to actual needs, when it is detected that the user selects the reply or forwarding option, a reply or forwarding email to the target email is generated, and the target file is added to the reply or forwarding email as an attachment.
In another example, a prompt box may be presented on the operator interface for processing the target email, the prompt box prompting the user to add the target file as an attachment. For example, the prompt box is displayed in the mail interface of the target mail, or the prompt box is displayed in an interface associated with the target mail. The specific display form of the prompt box may be set as required, for example, "add a table as an attachment" may be displayed in the prompt box. If the fact that the user clicks the prompt box is detected, a plurality of operation options related to the prompt box can be displayed, and the operation options are respectively used for triggering different processing operations on the target mail. For example, the operation options may include "reply," "forward," and the like. Wherein, the operation option can be displayed on a drop-down bar associated with the prompt box.
And when the operation option selected by the user is to trigger forwarding or replying of the target mail, generating a reply or forwarding mail of the target mail, and adding the target file as an attachment in the reply or forwarding mail. For example, if the user is detected to select a "reply" option among the plurality of operation options, a reply email is generated for replying to the target email.
In the embodiment of the application, when the preset operation is detected, the target file is automatically added as an attachment of the target mail to be written besides being automatically linked to the page of the target mail to be written for forwarding or replying the target mail.
It will be appreciated that when a user wishes to send the target file by forwarding or replying to an existing mail in the mailbox, the mail that the user wishes to forward or reply will generally have a certain association with the file name of the target file. For example, after the user receives the original mail with the file name of the target file, if the user wishes to modify the file content of the target file and then reply to the sender of the original mail, after the user modifies the file content of the target file, the original mail can be searched from the mailbox according to the characteristic that the file name of the target file is the same as the file name of the attachment in the original mail. For another example, although the user M receives the email sent by the user N, although there is no attachment, the text or the email subject of the email sent by the user N indicates a file such as a picture or a document that needs to be edited and fed back by the user M.
Based on the above findings, in the embodiment of the present application, if it is detected that there is a target mail in the mailbox application, where the file name of the target mail meets the preset matching relationship, an operation interface for processing the target mail is directly displayed, so that the mailbox application generates a mail including the target mail only by performing a preset operation (for example, clicking a forwarding or reply option) on the operation interface, and automatically adds the target file as an attachment of the generated mail.
Optionally, after the target email is detected, in order to prompt the user and reduce misoperation, a prompt bar for prompting the existence of the target email may be displayed in the mailbox application. In this case, the user may select whether to reply or forward the detected target email as needed, and if it is detected that the user clicks a prompt bar for prompting the presence of the target email, an operation interface for processing the target email is displayed. If the user does not click the prompt bar for prompting the existence of the target mail, the user may perform other operations in the mailbox application, for example, click an option of "write mail" in the mailbox application to write a new mail, and the target file may not be added in the new mail as an attachment, or may be directly added as an attachment of the new mail.
For example, referring to fig. 2, which shows a schematic flowchart interaction of another embodiment of the mail processing method according to the present application, the method of the present embodiment is applied to a client of a mailbox application, and the method of the present embodiment may include:
s201, receiving a file sending request.
The file sending request carries a target file to be sent.
S202, detecting whether a target mail meeting a preset matching relation with the file name of the target file exists in the mailbox application.
The above two steps can be referred to the related description of the previous embodiment, and are not described herein again.
S203, if the target mail exists in the mailbox application, displaying a prompt bar for prompting the existence of the target mail, a prompt bar for prompting the writing of a new mail and a prompt bar for prompting the selection of an existing mail in the mailbox application.
In the embodiment of the application, if the target mail is detected, a prompt bar for prompting the existence of the target mail is displayed. It can be understood that in practical applications, there may be multiple target mails meeting the preset matching relationship, and in this case, multiple prompt bars for prompting the existence of different target mails may be respectively displayed in the mailbox application. For example, if two target mails, namely target mail a and target mail B, are detected to exist, a prompt bar for prompting the existence of target mail a and a prompt bar for prompting the existence of target mail B may be displayed respectively.
Of course, in order to avoid that too many prompt bars are displayed in the mailbox application to cause interference to the user, and the mails that the user generally wants to reply or forward are generally the latest received mails, the mailbox application may also stop searching after searching for a target mail (e.g., the target mail with the latest generation date), and only output the prompt bar for prompting the existence of the target mail.
Optionally, while displaying the prompt bar for prompting the existence of the target mail, one or two of the prompt bar for prompting writing of a new mail and the prompt bar for prompting selection of an existing mail may be displayed, so that the user may select the prompt bar as needed to trigger different mail processing operations.
In the embodiment of the present application, the above cue bar may have various forms. Optionally, a bottom-floating prompt bar may be designed in the mailbox application, for example, the prompt bar may be a control floating and fitting to the bottom of the mailbox application interface, and a prompt content dialog bar or a dialog bar form is displayed on the control. Further, in order to enable the user to pay attention to the cue strip for prompting the existence of the target mail and the cue strip for prompting the selection of the existing mail, a distinguishing mark may be added to the two cue strips or any one of the two cue strips, for example, a bubble is displayed on one side of the cue strip.
S204, if the fact that the user clicks a prompt bar for prompting the existence of the target mail is detected, displaying an operation interface for processing the target mail, and displaying a prompt box on the operation interface of the target mail.
In the embodiment of the present application, for convenience of description, the operation interface for processing the target email is simply referred to as the operation interface of the target email.
The prompt box is used for prompting the user to add the target file as an attachment.
Optionally, the prompt box may exist in the form of a floating control at the bottom of the operation interface of the target email.
S205, when the fact that the user clicks the prompt box in the operation interface of the target mail is detected, a plurality of operation options related to the prompt box are displayed.
Wherein, the operation options are respectively used for triggering different processing operations to the target mail. For example, the operation options may include options such as "reply," "forward," and the like, where the "forward" operation option is used to trigger to create a new email for forwarding the target email, and add the target file as an attachment to the newly created forward email; the operation option of 'reply' is used for triggering the new mail for replying the target mail and adding the target file as an attachment in the new reply mail.
S206, if the forwarding or replying options in the operation options are detected to be triggered, generating the reply or forwarding mail of the target mail, and adding the target file as the attachment in the reply or forwarding mail.
It should be noted that, step 205 and step 206 are introduced by taking an implementation manner of "detecting a preset operation in the operation interface for processing the target email" as an example, and when the user selects a reply or forward option in the operation interface for processing the target email, a manner of triggering addition of the target file as an attachment to the reply or forward email of the target email is also applicable to the present application, and details are not described herein again.
S207, if the fact that the user clicks a prompt bar for prompting to write a new mail is detected, a mail writing page with the target file as an attachment is generated.
If the user clicks on a prompt bar for prompting the writing of a new mail, indicating that the user wishes to send the target file by rewriting a mail, in which case the page of the written mail may be generated and automatically added as an attachment to the written mail.
Optionally, when it is detected that the user clicks the prompt bar for prompting to write a new email, an operation interface (e.g., an email interface for writing an email or an interface associated with writing an email) for processing the written email may be generated first, and the above prompt box for prompting the user to add the target file as an attachment is displayed in the operation interface for writing an email. Thus, if the user clicks the prompt box, the target file is added as the attachment of the written mail; if the user does not click on the prompt box, the attachment may not be added to the page of the written email.
S208, if the fact that the user clicks a prompting bar for prompting the selection of the existing mails is detected, the existing mail list is displayed.
In practical applications, the searched target email may not be the target email that the user wishes to reply or forward, and the user may wish to select an email from emails that the user has manually existed in the mailbox application for reply or forwarding, and add the target file as an attachment while replying or forwarding, for example, the searched target email whose file name satisfies a preset matching relationship with the target file is email M, but in practice the user may wish to process email N that has been sent out in the mailbox application. Therefore, in order to meet different requirements of users, in the embodiment of the application, a prompt bar for prompting the user to select the existing mails is also displayed, so that if the prompt bar for prompting the user to select the existing mails is detected to be triggered, the existing mail list can be presented, so that the user can select the mails needing to be processed from the existing mail list according to requirements.
S209, when detecting that the user selects the mail to be processed from the existing mail list, displaying an operation interface for processing the mail to be processed.
In order to distinguish the existing mail from the previous target mail, in the embodiment of the present application, the mail selected by the user from the existing mail list is referred to as a pending mail.
The operation interface for processing the mail to be processed can also be a page presented when the mail to be processed is opened; or an operation interface associated with the to-be-processed email, for example, an operation option for triggering different processing on the to-be-processed email may be presented in the operation interface.
S210, when the preset operation is detected in the operation interface of the mail to be processed, generating the mail to be written which comprises the mail to be processed and has the attachment as the target file.
The mail to be written containing the mail to be processed may be a mail containing the body of the mail to be processed, or may be a mail containing only part of the contents such as the subject of the mail to be processed. Optionally, a to-be-written mail, in which the body contains the to-be-processed mail and the attachment is the target mail, may be generated.
For convenience of description, the operation interface for processing the mail to be processed is referred to as an operation interface of the mail to be processed.
In this step 210, the process may be similar to the process of detecting the preset operation in the operation interface of the target email and generating the email to be written, for example, when the operation interface of the email to be processed is the email interface of the email to be processed, it may be detected that the user selects a forwarding option or a reply option in the email interface of the email to be processed, a reply or a forwarding email of the email to be processed is generated, and the target file is added as an attachment in the reply or forwarding email. For another example, a prompt box may be displayed in the operation interface of the to-be-processed email, where the prompt box is used to prompt the user to add the target file as an attachment; and if the fact that the user clicks the prompt box is detected, a plurality of operation options related to the prompt box can be displayed, when the fact that the operation option selected by the user is triggered to forward or reply the to-be-processed mail is detected, a reply or forward mail of the to-be-processed mail is generated, and the target file is added to the reply or forward mail to be an attachment.
In this embodiment, after receiving a file sending request sent by a file processing application, if a mailbox application detects a target mail, a prompt bar for prompting existence of the target mail is displayed, and a prompt bar for prompting writing of a new mail is also displayed, and/or a prompt bar for selecting an existing mail is displayed, so that a user can select whether to forward or reply the detected target mail, process other existing mails, or rewrite a new mail according to actual needs, thereby meeting different mail writing requirements of the user and being beneficial to reducing misjudgment.
It can be understood that in practical application, there may be a case that the target mail cannot be detected from the mailbox application, in this case, the user may directly send the target file in a form of writing a new mail, or may select a mail to be replied or forwarded from existing mails, and send the selected mail after adding an attachment. For example, referring to fig. 3, which shows a schematic flow chart of another embodiment of the mail processing method of the present application, the method of the present embodiment may include:
s301, receiving a file sending request sent by the file processing application.
The file sending request carries a target file to be sent.
In the embodiment of the present application, a file sending request is sent by a file processing application as an example, for example, referring to fig. 4, an operation diagram of sending a file sending request to a mailbox application through a file processing application is shown. Fig. 4 is an example of a file being a PPT file, and a file sending request being triggered during processing of the PPT file by a PPT processing application. As can be seen, the user can click the option "copy to mailbox" for triggering mail sending in the PPT processing application, so that the PPT processing application takes the currently displayed PPT file of the "product requirement book" as a target file to be sent, and sends a file request to the mailbox application.
Of course, fig. 4 is only described with reference to one case as an example, and the case where the user sends the file sending request to the mailbox application based on other file processing applications is also applicable to this embodiment, and details are not described here again.
S302, caching the target file.
The S302 is an optional step, and in order that the subsequent mailbox application can add the target file as an attachment of the mail, the mailbox application may cache the target file requested to be sent by the file sending request.
S303, detecting whether a target mail with the matching degree of the attachment name of the attachment and the file name of the target file exceeding a preset threshold exists in the mailbox application, and if so, entering a step 304; if not, step 308 is entered.
For convenience of description, the present embodiment is described by taking a preset matching relationship as an example where the matching degree between the attachment name and the file name of the target file exceeds a preset threshold, but the preset matching relationship for other cases is also applicable to the present embodiment.
S304, if the target mail exists in the mailbox application, displaying a prompt bar for prompting the existence of the target mail, a prompt bar for prompting the writing of a new mail and a prompt bar for prompting the selection of an existing mail in the mailbox application.
For example, the above three prompt bars can be displayed at the bottom of the main interface of the mailbox application. Optionally, considering that the user wishes to add the target file to the mail, a dialog box may be displayed in the mailbox application, a prompt for prompting the user to add the target file as an attachment is displayed in the dialog box, and the above three prompt bars for triggering different mail operations are displayed on the dialog box. Further, the dialog box may further include a cancel option for canceling the addition of the target file as an attachment, and if the user clicks the "cancel option", the dialog box may be closed, and the user may perform corresponding operations in the mailbox application as needed, without being limited to the target file being added as an attachment to the mail.
For convenience of understanding, refer to fig. 5a, which shows a schematic diagram of displaying a prompt bar in the mailbox application of the present application, in fig. 5, taking a target file to be sent as a "product requirement book, ppt" as an example, it can be seen that a dialog box 50 may be displayed at the bottom of a main interface of the mailbox application, and a prompt bar for prompting a user that a target mail exists is displayed in the dialog box, such as "reply or forward" the product requirement book, please reply after modification "in fig. 5a corresponding prompt bar 501. The product requirement book, please reply after modification can be the mail subject of the target mail and is used for representing the target mail. Meanwhile, a prompt bar 502 for "writing new mail" and a prompt bar 503 for "replying/forwarding existing mail" are also displayed in the dialog box 50. Further, the dialog box 50 also displays an "abandon add" option 504, which, if the user selects "abandon add", triggers the mailbox application to close the dialog box 50, so that the subsequent user can write a mail or manually select a mail in the mailbox for processing, and the mailbox application does not automatically add an attachment to the mail.
S305, if the fact that the user clicks a prompt bar for prompting the existence of the target mail is detected, linking and displaying the page of the target mail, and displaying a prompt box for prompting the user to add the target file as an attachment on the page of the target mail.
And if the fact that the user selects to click a prompt bar for prompting the existence of the target mail is detected, a prompt box for prompting the user to add the target file as an attachment is displayed in the displayed operation page of the target mail.
For example, still referring to the example shown in fig. 5a, if the user clicks the prompt bar "reply or forward" product request book, please reply after modification ", then the mailbox application locates the mail" product request book, please reply after modification ", and opens the mail. The page of the email for opening the product request book and please reply after modification can be seen in fig. 5b, and a prompt box 510 for adding the product request book and ppt as an attachment is displayed at the bottom end of the page 51 of the email for opening the product request book and please reply after modification.
It should be noted that, in the present embodiment, the description is given by taking an example that after the user is detected to click the prompt bar for prompting the existence of the target email, the page of the target email is displayed, and the prompt box is directly displayed on the page of the target email, but it can be understood that, if an interface associated with the target email is displayed outside the page of the target email, and the prompt box is displayed in the interface, the same applies to the present embodiment, and the implementation process thereof is similar, and is not described herein again.
S306, when the fact that the user clicks the prompt box is detected, a plurality of operation options related to the prompt box are displayed.
Wherein, the operation options are respectively used for triggering different processing operations to the target mail.
S307, if the operation option selected by the user is detected to trigger forwarding or replying of the target mail, generating a reply or forwarding mail of the target mail, and adding the cached target file as an attachment of the reply or forwarding mail.
For example, still referring to the example of fig. 5a and 5b, after the user clicks the prompt box 510 in the page of the "product request book, please modify reply" mail in 5b, a plurality of operation options associated with the prompt box 510 are presented, such as a plurality of operation options associated with the prompt box, which are presented after clicking the prompt box 510 of "add product request book. ppt is attachment", as shown in fig. 5c, such as a "reply" option 511, a "forward" option 512, and a "cancel" option 513.
If the user clicks the 'reply' option 511, replying to the 'product request book, please reply after modification' mail, and adding the attachment of 'product request book, ppt' in the reply mail; if the user clicks the "forward" option 512, the "product request book, please modify and reply" mail is forwarded, and the attachment of "product request book, ppt" is added to the reply mail. Of course, if the user does not want to add the product specification ppt attachment to the mail reply or forward to the "product specification, please modify and reply", the user can click the "cancel" option 513 to close the prompt box and the operation options, so that the subsequent user can operate the "product specification, please modify and reply" mail in the existing manner.
S308, if the target mail does not exist in the mailbox application, displaying a prompt bar for prompting writing of a new mail and a prompt bar for prompting selection of an existing mail in the mailbox application.
If the target mail meeting the preset matching relation is not detected in the mailbox application, the mailbox application may not display the prompt bar for prompting the existence of the target mail, but only display the prompt bar for prompting the writing of the new mail and the prompt bar for prompting the selection of the existing mail.
For example, referring to fig. 6, another possible diagram of a prompt bar displayed by a mailbox application after the mailbox application receives a file sending request and detects no target mail meeting a preset matching relationship in the mailbox application is shown. Comparing fig. 5a and fig. 6, it can be seen that fig. 6 lacks a prompt bar of "reply or forward" product request book, please reply after modification ".
S309, if the fact that the user clicks the prompt bar which is displayed by the mailbox application and used for prompting to write the new mail is detected, a mail writing page with the target file as an attachment is generated.
In the mailbox application interface presented in steps 304 and 308, if the user clicks a prompt bar for prompting to write a new mail, a new mail writing page can be triggered, and the attachment is automatically added as the mail writing page.
Of course, in this step 309, a mail-writing page may also be generated first, and a prompt box for prompting the user to add the target file as an attachment is displayed in the mail-writing page; when the fact that the user clicks the prompt box in the page of the write mail is detected, the cached target file is added to the attachment of the page of the write mail.
S310, if the fact that the user clicks a prompt bar displayed by the mailbox application and used for prompting selection of the existing mails is detected, displaying an existing mail list.
S311, when it is detected that the user selects the mail to be processed from the existing mail list, displaying the page of the mail to be processed selected by the user, and displaying the prompt box on the page of the mail to be processed.
The prompt box is used to prompt the user to add the target file as an attachment, and the specific prompt box may be the same as the prompt box in S304.
S312, when the prompt box is clicked in the page of the mail to be processed, a plurality of operation options are displayed.
Wherein, the operation options are respectively used for triggering different processing operations to the target mail.
It should be noted that, in the present embodiment, the description is given by taking an example that after detecting that the user selects the to-be-processed email from the existing email list, the page of the to-be-processed email is displayed, and the prompt box is directly displayed on the page of the to-be-processed email, but it can be understood that, if an interface associated with the to-be-processed email is displayed outside the page of the to-be-processed email, and the prompt box is displayed in the interface, the same is also applicable to the present embodiment, and the implementation processes thereof are similar, and are not described herein again.
S313, when detecting that the operation option selected by the user in the page of the mail to be processed is to trigger forwarding or replying of the mail to be processed, generating a reply or forwarded mail of the mail to be processed, and adding the target file as an attachment in the reply or forwarded mail of the mail to be processed.
It is understood that, in any of the above embodiments of the present application, after the user selects to forward the target email or the email to be processed, the target file is added to the forwarded email as an attachment. Particularly, in the case that the target mail or the pending mail already contains an attachment with the same file name as the target file, after the target file or the pending mail is forwarded, the forwarded mail still contains the original attachment of the target mail or the pending mail, so that after the target file is added to the forwarded mail as the attachment, the user cannot distinguish the newly added attachment from the original attachment. Therefore, in order to distinguish the target file and the attachment with the same file name as the target file in the target mail or the mail to be processed, the target file is added to the attachment of the forwarding mail, and simultaneously, the file name of the target file can be added with a distinguishing mark which is distinguished from the existing attachment in the target mail or the mail to be processed, so that a user can distinguish the newly added target file. For example, a new word may be added to the file name of the newly added target file, so that the user may determine that the newly added attachment having the new word in the file name is the newly added attachment, and may delete the original attachment as needed and retain the newly added target file.
The method includes the steps that introduction is conducted by taking an object mail with an attachment name identical to the file name of an object file in a mailbox application as an example, after a prompt box used for prompting a user to add the object file as the attachment is displayed in an operation interface of the object mail, if the fact that the user clicks the prompt box is detected, a plurality of operation options related to the prompt box are displayed. In this way, if the trigger of the forwarding option in the multiple operation options is detected, after the forwarding email of the target email is generated, a distinguishing mark may be added to the file name of the target file, and then the target file with the file name having the distinguishing mark is added as the attachment of the forwarding email.
Optionally, in the above embodiment, the user may have a need to write a new email after selecting to process the target email or the existing email, and in order to enable the user to conveniently add the target file as the attachment in the process of writing the new email, a prompt box for prompting the user to add the target file as the attachment may still be displayed in the operation interface for processing the new email. And if the fact that the user clicks the prompt box in the operation interface for writing the new mail is detected, adding the target file as an attachment in the new mail. If the user does not wish to add the target file as an attachment, the prompt box may not be clicked on. Meanwhile, in order to add the target file to other mails as an attachment after the user finishes processing the operation of writing the new mail, such as to the target mail or other existing mails, after detecting that the mailbox application sends out the new mail finished in the page of writing the new mail, the display of the prompt box is still maintained in the target mail or existing mail list.
For example, after a prompt bar for prompting the user that a target mail exists and a prompt bar for prompting the user to process an existing mail are displayed in the mailbox application, the mailbox application displays a page of the target mail and displays a prompt box for prompting that the target file is added as an attachment in the mailbox page after detecting that the prompt bar for prompting the user that the target mail exists is triggered. In this case, if the user starts the writing of a new mail, the display of the prompt box may be maintained in the displayed page for writing a new mail (or an interface associated with the new mail) when it is detected that the mailbox application is triggered to start the page for writing a new mail; in this way, the user can select whether to add the target file as an attachment to the new mail as needed. If it is detected that the target file prompted by the prompt box is not added to the page of the new writing email and the new email completed in the page of the new writing email is sent out, the display of the prompt box can still be maintained on the page of the target email, so that the user can still add the target file to the email which forwards or replies to the target email.
It should be noted that, in a general case, a file sending request only carries one target file, and in this case, the mailbox application may only detect the target file.
However, in some cases, for example, the user may select two or more target files at the same time and trigger the sending of a file send request to the mailbox application. In this case, the mailbox application may detect whether a target mail that satisfies a preset matching relationship with the file names of the at least two target files exists in the mailbox application, for example, whether the mailbox application includes the at least two attachments exists, and matching degrees between the attachment names of the at least two attachments and the file names of the at least two target files respectively exceed a preset threshold. In addition, the mailbox application can also detect whether a target mail which contains a file name satisfying a preset matching relationship with any one of the file names of the at least two target files exists.
Optionally, in order to improve the detection efficiency, no matter how many files to be sent are carried in the file sending request, the mailbox application may first use the file ordered at the first position as a target file to be detected according to the sequence of the files to be sent, and detect whether a target mail meeting a preset matching relationship with the target file name exists in the mailbox application, and if the target mail is detected, the detection is not performed on subsequent files; if the target mail does not exist, selecting the file in the second order as the target file to be detected, detecting the target file, and if the target mail is detected, stopping the detection; otherwise, selecting the file in the next order as the target file to be detected, and repeating the steps until all the files are used as the target files to be detected.
Further, after the detection is performed in the above manner, if the target mail is detected, when the specified operation is detected in the page of the target mail, the at least two target files may be simultaneously added as the attachments to the mail to be written.
In order to facilitate understanding of the mail processing method according to the embodiment of the present application, the mail processing method according to the embodiment of the present application is described below with reference to an application scenario. The method takes the example that a user receives a mail with an attachment of 'annual final assessment questionnaire' in a mailbox application, and replies the 'annual final assessment questionnaire' to a sending user of the mail through the mailbox application after filling the 'annual final assessment questionnaire'.
For example, referring to fig. 7, which shows a flow interaction diagram in an application scenario of the mail processing method of the present application, the method of this embodiment may include:
s701, the mailbox application receives a mail A sent by the mailbox server, and the mail A contains an attachment with the attachment name of 'annual assessment questionnaire'.
S702, when detecting that the user opens the received mail A and clicks the attachment in the mail A, sending the document with the document name of 'annual assessment questionnaire' to the document processing application.
S703, the document processing application displays the annual final assessment questionnaire and edits the document of the annual final assessment questionnaire based on the input of the user.
For example, referring to FIG. 8, a process flow diagram of an "end-of-year assessment questionnaire" received for a mailbox application is shown. The processing flow of the "yearly final assessment questionnaire" is indicated from left to right by arrows in fig. 8, four schematic diagrams from left to right are separated by arrows, and a page presented after the mail a is opened is shown in the first diagram from left to right in fig. 8, and it can be seen that a document with an attachment of the "yearly final assessment questionnaire" is included in the mail a. After the user clicks the attachment "annual final assessment questionnaire" in the mail a, the mailbox application sends the document of the "annual final assessment questionnaire" to the document processing application, as shown by an arrow in fig. 8, the document enters a second graph from left to right, the document processing application receives the document of the "annual final assessment questionnaire" in the second graph, and displays the document for the user to view or edit.
S704, after the fact that the user finishes editing the document of the annual assessment questionnaire is detected, a document sending request is sent to the mailbox application through the document processing application.
Wherein, the document sending request carries the document with the name of 'annual final assessment questionnaire'.
S705, the mailbox application caches the document with the document name of "annual final assessment questionnaire".
S706, the mailbox application detects that a mail A with an attachment name of 'annual terminal assessment questionnaire' is received before the current time in the mailbox associated with the mailbox application;
s707, the bottom of the interface of the mailbox application displays three prompt bars of ' forward/reply ' mail A for checking and checking the questionnaire all the year round ', ' write new mail ' and ' forward/reply existing mail '.
Introduced with reference to fig. 8, after the document processing application sends the annual final assessment questionnaire to the mailbox application, the mailbox application detects a mail a containing an attachment of the annual final assessment questionnaire, and the mailbox application displays three prompt bars, for example, a third diagram from left to right in fig. 8, where a dialog box in the third diagram includes: the three prompt boxes of the mail A of the annual final assessment questionnaire, the new mail writing and the existing mail forwarding/replying are displayed in the dialog box, and a prompt for prompting the user to add the annual final assessment questionnaire is displayed in the dialog box, so that the mode that the user knows to add the annual final assessment questionnaire can be realized through the operation mode associated with the following three prompt boxes. In addition, an option of 'abandoning addition' is also set in the dialog box, and if the user abandons adding the 'annual assessment questionnaire', the option of 'abandoning addition' can be selected, so that closing the dialog box is triggered.
S708, when it is detected that the user clicks a prompt bar of the mail A of the forwarding/replying annual final assessment questionnaire, the mailbox application opens the page of the mail A, and displays a suspension prompt box for adding the annual final assessment questionnaire as an attachment at the bottom end of the page of the mail A.
Referring to fig. 8, when a user wishes to forward or reply based on the email a, the user may click on the prompt bar of the "forward/reply" email a of the annual assessment questionnaire ", in which case the page on which the email a is displayed may be as shown in the rightmost diagram in fig. 8.
S709, when it is detected that the user clicks the suspension prompt box, the suspension prompt box displays three operation options of pulling down: "reply," forward, "and" cancel.
If the floating prompt box at the bottom of the mail a is clicked, the floating prompt box displays the pull-down operation options as shown in fig. 5 c.
S710, when detecting that the user clicks the 'reply' operation option, the mailbox application generates a reply email for replying the email A, and adds the 'annual assessment questionnaire' as an attachment of the reply email.
It should be noted that, in the embodiment of fig. 7, the description is only given in a scenario where the user replies to the received email a, but it can be understood that, when the process of forwarding the email a by the user is similar to the above process, details are not described here.
In addition, in the embodiment of fig. 7, if the user does not want to reply to the email a, the user may still select another prompt bar from the prompt bars displayed in step S707, for example, to trigger writing of a new email or reply or forwarding to another existing email in the mailbox application, and the specific process may be combined with the related description of the foregoing embodiment, and is not described again here.
On the other hand, the application also provides another mail processing method.
Referring to fig. 9, which shows a flowchart of another embodiment of the mail processing method according to the present application, the method of the present embodiment may be applied to mailbox applications, and the method of the present embodiment may include:
901, receiving a file transmission request sent by a file processing application.
The file sending request carries a target file to be sent.
The step can be referred to the description of the related content in the previous embodiment, and is not described herein again.
And 902, displaying an existing mail list in the mailbox application.
Wherein the existing mail list is a list of mails processed by the mailbox application.
Optionally, before the step 902, a prompt bar for prompting to select an existing mail may be displayed in the mailbox application; and if the fact that the user clicks the prompt bar for prompting the selection of the existing mails is detected, displaying the existing mail list in the mailbox application.
And 903, when detecting that the user selects the mails from the existing mail list, displaying the page of the specified mails selected by the user.
It is to be understood that, for the sake of convenience of distinction, in this embodiment, the mail selected by the user from the existing mail list is referred to as a designated mail, and in this embodiment, the designated mail is the same as the to-be-processed mail mentioned in the previous embodiment, and is the mail selected by the user from the existing mail list.
904, when the specified operation is detected in the page of the specified mail, a mail to be written is generated, wherein the body of the specified mail is contained in the body and the attachment is the target file.
The specified operation detected in the page of the specified email may be an operation that triggers forwarding or replying to the specified email.
In a possible implementation manner, when it is detected that a user selects a reply or forwarding option in a page of the specified email, a reply or forwarding email to the specified email is generated, and the target file is added to the reply or forwarding email as an attachment
In another possible implementation manner, while displaying the page of the specified email selected by the user, a prompt box may be displayed on the page of the specified email, where the prompt box is used to prompt the user to add the target file as an attachment. Thus, when the fact that the user clicks the prompt box is detected, a plurality of operation options are displayed, and the operation options are respectively used for triggering different processing operations on the specified mail; and when the operation option selected by the user is to trigger forwarding or replying of the specified mail, generating a reply or forwarded mail of the specified mail, and adding the target file as an attachment in the reply or forwarded mail.
The prompt box may be similar to the prompt box displayed in the previous target email, and is not described herein again.
In this embodiment, after receiving a file sending request containing a target file sent by a file processing application, a mailbox application displays an existing mail list, so that a user can directly select a specified mail needing to be replied or forwarded from the existing mail list, and after performing specified operation on a page of the displayed specified mail, the mailbox application can be triggered to generate a mail containing a text of the specified mail and adding the target file as an attachment, thereby avoiding the need that the user opens the mailbox application first when sending the mail each time, and manually positioning the file needing to be sent after selecting the mail needing to be processed, thereby reducing the operation complexity and improving the convenience of mail forwarding or replying.
Optionally, while displaying a prompt bar for prompting to select an existing mail in the mailbox application, a prompt bar for prompting to write a new mail may also be displayed in the mailbox application; correspondingly, if the user clicks the prompt bar for prompting writing of the new mail, a mail writing page with the target file as an attachment is generated.
Optionally, after receiving a file sending request sent by the file processing application, it may also be detected whether a target mail meeting a preset matching relationship with the file name of the target file exists in the mailbox application; if the target mail exists in the mailbox application, displaying a prompt bar for prompting the existence of the target mail in the mailbox application while displaying the prompt bar for prompting the selection of the existing mail in the mailbox application; if the fact that the user clicks the prompt bar for prompting the existence of the target mail is detected, linking and displaying the page of the target mail; when the specified operation is detected in the page of the target mail, generating a mail to be written, wherein the body of the target mail is contained in the body and the attachment is the target file.
For specific processes of displaying a prompt bar for prompting to write a new mail, a prompt bar for prompting to exist the target mail in the mailbox application, and processing the two prompt bars, reference may be made to the related description of the foregoing embodiment, and details are not described herein again.
In the following, a mail processing apparatus according to an embodiment of the present invention is described, and a mail processing apparatus described below may be referred to in correspondence with a mail processing method described above.
Referring to fig. 10, which shows a schematic structural diagram of an embodiment of a mail processing apparatus according to the present application, the mail processing apparatus of the present embodiment may be applied to a mailbox application client, and the apparatus of the present embodiment may include:
a request receiving unit 1001, configured to receive a file sending request, where the file sending request carries a target file to be sent;
a mail detection unit 1002, configured to detect whether a target mail meeting a preset matching relationship with the file name of the target file exists in a mailbox application;
a first mail display unit 1003, configured to display an operation interface for processing the target mail if the target mail exists in the mailbox application;
a first mail generating unit 1004, configured to generate a target to-be-written mail that includes the target mail and has an attachment as the target file when a preset operation is detected in the operation interface for processing the target mail.
Optionally, the mail detection unit is specifically configured to detect whether a target mail exists in the mailbox application, where a matching degree between the attachment name and the file name of the target file exceeds a preset threshold.
Optionally, the first email display unit includes:
the first prompting unit is used for displaying a prompting strip for prompting the existence of the target mail in the mailbox application if the target mail exists in the mailbox application;
and the first display subunit is used for displaying an operation interface for processing the target mail when the fact that the user clicks the prompt bar for prompting the existence of the target mail is detected.
Optionally, the method further includes:
a first adding prompting unit, configured to display a prompting box on the operation interface for processing the target email while the first email display unit displays the operation interface for processing the target email, where the prompting box is used to prompt a user to add the target file as an attachment;
the first mail generating unit includes:
the first option presentation unit is used for presenting a plurality of operation options when the fact that the user clicks the prompt box is detected, and the operation options are respectively used for triggering different processing operations on the target mail;
and the first mail generating subunit is used for generating a reply or a forwarding mail of the target mail and adding the target file as an attachment in the reply or the forwarding mail of the target mail when the triggering of a forwarding or replying option in the plurality of operation options is detected.
Optionally, the method further includes:
the second prompting unit is used for displaying a prompting bar for prompting the existence of the target mail in the mailbox application and displaying a prompting bar for prompting the writing of a new mail in the mailbox application at the same time when the first prompting unit displays the prompting bar for prompting the existence of the target mail in the mailbox application;
and the mail writing unit is used for generating a mail writing page taking the target file as an attachment if the fact that the user clicks the prompt bar for prompting the writing of the new mail is detected.
Optionally, the method further includes:
a third prompting unit, configured to display a prompting bar for prompting to select an existing mail in a mailbox application while the first prompting unit displays the prompting bar for prompting the existence of the target mail in the mailbox application;
the list display unit is used for displaying an existing mail list if the fact that the user clicks the prompt bar for prompting the selection of the existing mails is detected;
the second mail display unit is used for displaying an operation interface for processing the mail to be processed when detecting that the user selects the mail from the existing mail list;
and the second mail generating unit is used for generating the mail to be written which comprises the target mail and has the attachment as the target file when the preset operation is detected in the operation interface for processing the mail to be processed.
Optionally, the apparatus may further include:
the second adding prompting unit is used for displaying a prompting frame on the operation interface for processing the mail to be processed while the second mail display unit displays the operation interface for processing the mail to be processed, and the prompting frame is used for prompting a user to add the target file as an attachment;
the second mail generating unit includes:
the second option display unit is used for displaying a plurality of operation options when the fact that the user clicks the prompt box displayed by the second adding prompt unit is detected, and the operation options are respectively used for triggering different processing operations on the mail to be processed;
and the second mail generating subunit is configured to generate a reply or forward mail of the to-be-processed mail when detecting a trigger on a reply or forward option of the multiple operation options displayed by the second option displaying unit, and add the target file as an attachment to the reply or forward mail.
The embodiment of the invention also provides a terminal which can comprise the process control method.
Fig. 11 shows a block diagram of a hardware structure of the terminal, and referring to fig. 11, the terminal 1100 may include: a processor 1101, a communication interface 1102, a memory 1103, and a communication bus 1104;
the processor 1101, the communication interface 1102 and the memory 1103 complete communication with each other through the communication bus 1104;
optionally, the communication interface 1102 may be an interface of a communication module, such as an interface of a GSM module;
a processor 1101 for executing a program;
a memory 1103 for storing a program;
the program may include program code including computer operating instructions.
The processor 1101 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention.
The memory 1103 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Among them, the procedure can be specifically used for:
receiving a file sending request, wherein the file sending request carries a target file to be sent;
detecting whether a target mail meeting a preset matching relation with the file name of the target file exists in the mailbox application or not;
if the target mail exists in the mailbox application, displaying an operation interface for processing the target mail;
and when a preset operation is detected in the page of the target mail, generating a mail to be written which comprises the target mail and has an attachment as the target file.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (17)

1. A method for processing mail, comprising:
receiving a file sending request, wherein the file sending request carries a target file to be sent;
detecting whether a target mail meeting a preset matching relation with the file name of the target file exists in the mailbox application or not;
if the target mail exists in the mailbox application, displaying an operation interface for processing the target mail;
when preset operation is detected in the operation interface for processing the target mail, generating a target mail to be written, which comprises the target mail and has an attachment as the target file;
the detecting whether a target mail meeting a preset matching relationship with the file name of the target file exists in the mailbox application includes:
and detecting whether a target mail with the matching degree of the attachment name and the file name of the target file exceeding a preset threshold exists in the mailbox application.
2. The mail processing method according to claim 1, wherein displaying an operation interface for processing the target mail if the target mail exists in the mailbox application comprises:
if the target mail exists in the mailbox application, displaying a prompt bar for prompting the existence of the target mail in the mailbox application;
and when the fact that the user clicks the prompt bar for prompting the existence of the target mail is detected, displaying an operation interface for processing the target mail.
3. The mail processing method according to any one of claims 1 to 2, further comprising, while displaying an operation interface for processing the target mail:
displaying a prompt box on the operation interface for processing the target mail, wherein the prompt box is used for prompting a user to add the target file as an attachment;
when preset operation is detected in the operation interface for processing the target mail, generating a target mail to be written, which contains the target mail and has an attachment as the target file, and the method comprises the following steps:
when the fact that the user clicks the prompt box is detected, a plurality of operation options are displayed, and the operation options are respectively used for triggering different processing operations on the target mail;
and when the triggering of a reply option or a forwarding option in the operation options is detected, generating a reply or forwarding email of the target email, and adding the target file as an attachment in the reply or forwarding email of the target email.
4. The mail processing method according to claim 2, wherein, while displaying a prompt bar for prompting the presence of the target mail in the mailbox application, further comprising:
displaying a prompt bar for prompting writing of a new mail in the mailbox application;
and when detecting that the user clicks the prompt bar for prompting writing of the new mail, generating a mail writing page taking the target file as an attachment.
5. The mail processing method according to claim 2 or 4, wherein, while displaying a prompt bar for prompting the presence of the target mail in the mailbox application, further comprising:
displaying a prompt bar for prompting the selection of the existing mail in the mailbox application;
when the fact that the user clicks the prompt bar for prompting the selection of the existing mails is detected, displaying an existing mail list;
when detecting that a user selects a mail to be processed from the existing mail list, displaying an operation interface for processing the mail to be processed;
and when a preset operation is detected in the operation interface for processing the mail to be processed, generating the mail to be written which comprises the mail to be processed and has an attachment as the target file.
6. The mail processing method according to claim 5, further comprising, while said displaying an operation interface for processing the mail to be processed:
displaying a prompt box on the operation interface for processing the mail to be processed, wherein the prompt box is used for prompting a user to add the target file as an attachment;
when preset operation is detected in the operation interface for processing the mail to be processed, generating a mail to be written which comprises the mail to be processed and has an attachment as the target file, wherein the method comprises the following steps:
when the fact that the user clicks the prompt box is detected, a plurality of operation options are displayed, and the operation options are respectively used for triggering different processing operations on the mail to be processed;
and when the triggering of a reply option or a forwarding option in the operation options is detected, generating a reply or forwarding email of the email to be processed, and adding the target file as an attachment in the reply or forwarding email of the email to be processed.
7. The mail processing method according to claim 5, further comprising:
and when the target mail is detected not to exist in the mailbox application, displaying the prompt bar for prompting writing of a new mail and/or prompting selection of an existing mail in the mailbox application.
8. The mail processing method according to claim 3, after presenting a prompt box on the operation interface for processing the target mail, further comprising:
when the mailbox application is detected to be triggered to start the page for writing the new mail, the display of the prompt box is maintained in the displayed page for writing the new mail;
and when detecting that the target file prompted by the prompt box is not added in the page of the written new mail and sending out the new mail finished in the page of the written new mail, maintaining the display of the prompt box on the page of the target mail.
9. The mail processing method according to claim 3, wherein after detecting the trigger for the forwarding option among the plurality of operation options and generating the forwarding mail of the target mail, further comprising:
if the target mail has an attachment with the same file name as the target file, adding a distinguishing mark which is different from the existing attachment in the target mail for the file name of the target file;
and adding the target file with the file name having the distinguishing mark as an attachment of the forwarded mail.
10. The mail processing method according to claim 1, wherein the detecting whether there is a target mail in the mailbox application, the target mail having a file name satisfying a preset matching relationship with the target file, comprises:
and detecting whether a target mail meeting a preset matching relation with the file name of the target file exists in at least one mailbox associated with the mailbox application.
11. A mail processing apparatus, comprising:
a request receiving unit, configured to receive a file sending request, where the file sending request carries a target file to be sent;
the mail detection unit is used for detecting whether a target mail meeting a preset matching relation with the file name of the target file exists in the mailbox application or not;
the first mail display unit is used for displaying an operation interface for processing the target mail if the target mail exists in the mailbox application;
a first mail generating unit, configured to generate a target to-be-written mail including the target mail and having an attachment as the target file when a preset operation is detected in the operation interface for processing the target mail;
the mail detection unit is specifically configured to detect whether a target mail exists in a mailbox application, where a matching degree of an attachment name and a file name of the target file exceeds a preset threshold.
12. The mail processing apparatus according to claim 11, wherein said first mail display unit includes:
the first prompting unit is used for displaying a prompting strip for prompting the existence of the target mail in the mailbox application if the target mail exists in the mailbox application;
and the first display subunit is used for displaying an operation interface for processing the target mail when the fact that the user clicks the prompt bar for prompting the existence of the target mail is detected.
13. Mail processing apparatus according to any of claims 11 to 12, characterized by further comprising:
a first adding prompting unit, configured to display a prompting box on the operation interface for processing the target email while the first email display unit displays the operation interface for processing the target email, where the prompting box is used to prompt a user to add the target file as an attachment;
the first mail generating unit includes:
the first option presentation unit is used for presenting a plurality of operation options when the fact that the user clicks the prompt box is detected, and the operation options are respectively used for triggering different processing operations on the target mail;
and the first mail generating subunit is used for generating a reply or forwarding mail of the target mail when the triggering of a reply or forwarding option in the operation options is detected, and adding the target file as an attachment in the reply or forwarding mail of the target mail.
14. The mail processing apparatus according to claim 12, characterized by further comprising:
the second prompting unit is used for displaying a prompting bar for prompting the existence of the target mail in the mailbox application and displaying a prompting bar for prompting the writing of a new mail in the mailbox application at the same time when the first prompting unit displays the prompting bar for prompting the existence of the target mail in the mailbox application;
and the mail writing unit is used for generating a mail writing page taking the target file as an attachment when detecting that the user clicks the prompt bar for prompting to write the new mail.
15. A mail processing apparatus according to claim 12 or 14, characterized by further comprising:
a third prompting unit, configured to display a prompting bar for prompting to select an existing mail in a mailbox application while the first prompting unit displays the prompting bar for prompting the existence of the target mail in the mailbox application;
the list display unit is used for displaying an existing mail list if the fact that the user clicks the prompt bar for prompting the selection of the existing mails is detected;
the second mail display unit is used for displaying an operation interface for processing the mail to be processed when detecting that the user selects the mail to be processed from the existing mail list;
and the second mail generating unit is used for generating a mail to be written which comprises the mail to be processed and has an attachment as the target file when a preset operation is detected in an operation interface for processing the mail to be processed.
16. The mail processing apparatus according to claim 15, further comprising:
the second adding prompting unit is used for displaying a prompting frame on the operation interface for processing the mail to be processed while the second mail display unit displays the operation interface for processing the mail to be processed, and the prompting frame is used for prompting a user to add the target file as an attachment;
the second mail generating unit includes:
the second option display unit is used for displaying a plurality of operation options when the fact that the user clicks the prompt box displayed by the second adding prompt unit is detected, and the operation options are respectively used for triggering different processing operations on the mail to be processed;
and the second mail generating subunit is configured to generate a reply or forward mail of the to-be-processed mail when detecting a trigger on a reply or forward option of the multiple operation options displayed by the second option displaying unit, and add the target file as an attachment to the reply or forward mail.
17. A computer-readable storage medium comprising instructions for performing the method of any of claims 1-10.
CN201610652445.7A 2016-08-10 2016-08-10 Mail processing method and device Active CN107733770B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610652445.7A CN107733770B (en) 2016-08-10 2016-08-10 Mail processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610652445.7A CN107733770B (en) 2016-08-10 2016-08-10 Mail processing method and device

Publications (2)

Publication Number Publication Date
CN107733770A CN107733770A (en) 2018-02-23
CN107733770B true CN107733770B (en) 2020-11-24

Family

ID=61199442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610652445.7A Active CN107733770B (en) 2016-08-10 2016-08-10 Mail processing method and device

Country Status (1)

Country Link
CN (1) CN107733770B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111934930B (en) * 2020-08-07 2023-07-25 合肥讯飞读写科技有限公司 Mail contact person recommending method and device, electronic equipment and storage medium

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06164635A (en) * 1992-11-27 1994-06-10 Toshiba Corp Electronic mail system
EP1223526A1 (en) * 2001-01-10 2002-07-17 Hewlett-Packard Company, A Delaware Corporation Improved process and apparatus for email handling
CN101097618A (en) * 2006-06-29 2008-01-02 腾讯科技(深圳)有限公司 Mail matter topics automatically generating method, device and system
CN101477659A (en) * 2009-02-10 2009-07-08 百富计算机技术(深圳)有限公司 Method and apparatus for file automatic signature
CN102025647B (en) * 2009-09-17 2013-11-06 中国长城工业总公司 System and method for mail sending and receiving
FR2951560B1 (en) * 2009-10-19 2011-11-18 Alcatel Lucent METHOD FOR MANAGING PARTS ATTACHED TO AN E-MAIL IN AN ELECTRONIC MAIL APPLICATION
CN102419844A (en) * 2011-12-29 2012-04-18 深圳市五巨科技有限公司 Method and device for automatically replying query emails
CN102624649B (en) * 2012-03-22 2014-12-10 华为技术有限公司 Method, equipment and system for attaching E-mail attachment
CN102821063B (en) * 2012-08-03 2015-04-08 中国联合网络通信集团有限公司 Method, device and system for sending and re-sending E-mails
CN103152247A (en) * 2013-03-20 2013-06-12 东莞宇龙通信科技有限公司 Mail sending method and mail sending device
CN103338147A (en) * 2013-06-28 2013-10-02 宇龙计算机通信科技(深圳)有限公司 Mail processing method and terminal
CN103490988B (en) * 2013-09-24 2016-06-01 长沙裕邦软件开发有限公司 A kind of mail look-up treatment process based on annex and system
CN105007216A (en) * 2015-07-16 2015-10-28 魅族科技(中国)有限公司 Mail reply processing method and device
CN104994012A (en) * 2015-07-16 2015-10-21 魅族科技(中国)有限公司 Mail sending method and device
CN105205647A (en) * 2015-08-17 2015-12-30 魅族科技(中国)有限公司 Mail management method and device
CN111181838B (en) * 2019-12-24 2022-05-06 远光软件股份有限公司 Back-to-back mail distribution method, system and device

Also Published As

Publication number Publication date
CN107733770A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
US9560003B2 (en) Erroneous addressing prevention for electronic messaging
US7818385B2 (en) Method and apparatus for forwarding emails to previous recipients
JP5619861B2 (en) Method for linking instant message and online document and mobile terminal
US20070100947A1 (en) Method and apparatus for determining whether an email message is ready for transmission
US9696875B2 (en) Managing an e-mail response
US9436717B2 (en) Method and apparatus for managing calendar entries in a document
WO2018000744A1 (en) Contact person detail prompting method
CN109842541B (en) Information processing method, device and storage medium
US20080133673A1 (en) Method and apparatus to control contents in a document
CN107533693B (en) Rich attachment regeneration
US8549079B2 (en) Drag and drop forward E-mail reply utility
CN112543210A (en) Document sharing method, device, terminal, sharing server and storage medium
CN107733770B (en) Mail processing method and device
US20160241502A1 (en) Method for Generating an Electronic Message on an Electronic Mail Client System, Computer Program Product for Executing the Method, Computer Readable Medium Having Code Stored Thereon that Defines the Method, and a Communications Device
JP2007072689A (en) Electronic mail management device
WO2018149288A1 (en) Office document sending method, terminal and system
JP7304569B2 (en) Message transmission/reception application software
CN111934930B (en) Mail contact person recommending method and device, electronic equipment and storage medium
JPH08180004A (en) Electronic mail system
EP2993834B1 (en) Automatic identification and retrieval of message attachments in a message conversation
JP2024004738A (en) Browser application software and add-on program for adding browser application software
JP2016085584A (en) Information processing device, information processing method, program and storage medium
CN116862461A (en) Mail display method, device, equipment and medium
CN116866292A (en) Mail reply method, device, equipment and medium
US8005903B2 (en) Method and apparatus for managing locally stored E-mail messages

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