Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present invention provide a method and an apparatus for processing a mail.
A mail processing method, comprising:
when the dragging operation of a user on a first operation item on a mailbox page is monitored, acquiring a first distance between the current position of the first operation item and the initial position of the first operation item after the dragging operation;
determining a first mail operation corresponding to the first distance;
and when it is monitored that the user releases the first operation item, executing the first mail operation.
In the embodiment, a plurality of mail lists are displayed on the screen of the mobile phone, each mail is displayed in the form of a card, and a user can drag and pull the pull ring on the mail card to complete corresponding mail operation, so that the user can complete most mail operations in one page, the mail can be read more clearly, and the mail operation is simpler, more convenient and faster.
Optionally, the mailbox page includes at least one mailing list, each mailing list includes a card for displaying a summary of content of each email, and each card includes the first operation item.
Optionally, the method further includes:
and when the sliding operation of the mailing list is monitored, sliding and displaying the cards in the mailing list along the sliding direction of the sliding operation.
In an alternative scheme, more mails in the same folder can be browsed by sliding the mail list, and the operation is simple and quick.
Optionally, the mailing list includes a second operation item for identifying the number of unread mails in the mailing list; the method further comprises the following steps:
when the clicking operation of the second operation item is monitored, executing a second mail operation for refreshing in the mail list, wherein the second mail operation is an operation for re-receiving a new mail in the mail list once.
In the alternative, unread mails in the mail list are displayed very intuitively, and the user can refresh the mail list simply and conveniently.
Optionally, the method further includes:
when long press operation on the second operation item is monitored, or shaking operation on the terminal is monitored, the second operation item is split and displayed into a third operation item and a fourth operation item, the third operation item is used for identifying a third mail operation for marking an unread mail in the mail list as read, and a user identification of the fourth operation item cancels the fourth mail operation for marking the unread mail in the mail list as read.
In the alternative, the user can conveniently and quickly complete the operation of the mail through a simple action.
Optionally, the method further includes:
when the clicking operation on the card is monitored, displaying a reading page of the mail, wherein a fifth operation item is arranged on the reading page of the mail;
when the dragging operation of the fifth operation item is monitored, acquiring the current position of the fifth operation item after the dragging operation;
determining a fifth mail operation corresponding to the current position of the fifth operation item;
and executing the fifth mail operation when it is monitored that the user releases the fifth operation item.
In an alternative scheme, a user can drag and complete corresponding mail operation through a pull ring on a mail reading page, so that the user can complete most mail operation in one page, the mail reading is more clear, and the mail operation is simpler, more convenient and faster.
A mail processing apparatus comprising:
the obtaining module is used for obtaining a first distance between the current position of a first operation item and the initial position of the first operation item after dragging operation when the dragging operation of the first operation item on a mailbox page by a user is monitored;
the determining module is used for determining a first mail operation corresponding to the first distance;
and the execution module is used for executing the first mail operation when it is monitored that the user releases the first operation item.
Optionally, the mailbox page includes at least one mailing list, each mailing list includes a card for displaying a summary of content of each email, and each card includes the first operation item.
Optionally, the apparatus further comprises:
and the display module is used for sliding and displaying the cards in the mail list along the sliding direction of the sliding operation when the sliding operation of the mail list is monitored.
Optionally, the mailing list includes a second operation item for identifying the number of unread mails in the mailing list;
and the execution module is used for executing a second mail operation for refreshing in the mail list when the click operation on the second operation item is monitored, wherein the second mail operation is an operation for re-receiving a new mail in the mail list once.
Optionally, the display module is configured to split and display the second operation item into a third operation item and a fourth operation item when a long-press operation on the second operation item is monitored or a shaking operation on the terminal is monitored, where the third operation item is used to identify a third mail operation that marks an unread mail in the mail list as read, and the fourth operation item is used to identify and cancel a fourth mail operation that marks the unread mail in the mail list as read.
Optionally, the apparatus further comprises:
the display module is used for displaying a reading page of the mail when the clicking operation on the card is monitored, and a fifth operation item is arranged on the reading page of the mail;
the obtaining module is configured to obtain a current position of the fifth operation item after a drag operation when the drag operation on the fifth operation item is monitored;
the determining module is configured to determine a fifth mail operation corresponding to the current position of the fifth operation item;
and the execution module is used for executing the fifth mail operation when it is monitored that the user releases the fifth operation item.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Fig. 1 is a flowchart of a mail processing method in an embodiment of the present invention, and as shown in fig. 1, the method is applied to a mobile terminal, and the method includes:
step S11, when the dragging operation of the first operation item on the mailbox page by the user is monitored, acquiring a first distance between the current position of the first operation item after the dragging operation and the initial position of the first operation item;
step S12, determining a first mail operation corresponding to the first distance;
and step S13, when it is detected that the user releases the first operation item, executing a first mail operation.
As shown in fig. 2, at least one mailing list is included on the mailbox page, each mailing list includes a card for showing a summary of the content of each mail, and the first operation item on each card can be used to perform operations such as marking and deleting the mail.
As shown in fig. 3, the first operation item in the present embodiment may be a "tab" 31. When a user drags the 'pull ring', different operations can be triggered according to different dragging distances. For example, as shown in FIG. 4, when the drag distance is long, a "delete" operation may be triggered, and as shown in FIG. 5, when the drag distance is short, a "mark as unread" operation may be triggered. When the user releases the "tab", the corresponding operation is performed.
In the embodiment, a plurality of mail lists are displayed on the screen of the mobile phone, each mail is displayed in the form of a card, and a user can drag and pull the pull ring on the mail card to complete corresponding mail operation, so that the user can complete most mail operations in one page, the mail can be read more clearly, and the mail operation is simpler, more convenient and faster.
Optionally, the method further includes:
and when the sliding operation of the mailing list is monitored, sliding and displaying the cards in the mailing list along the sliding direction of the sliding operation.
For example, sliding a mailing list sideways may view more mails in the same folder. As shown in FIG. 6, the arrow button may snap back to the front of the list when clicked.
In an alternative scheme, more mails in the same folder can be browsed by sliding the mail list, and the operation is simple and quick.
Optionally, the mailing list includes a second operation item for identifying the number of unread mails in the mailing list; the method further comprises the following steps:
when the clicking operation of the second operation item is monitored, executing a second mail operation for refreshing in the mail list, wherein the second mail operation is an operation for re-receiving a new mail in the mail list once.
As shown in fig. 7, the number circle "12" in the figure indicates that there are 12 unread mails in the current mail list, and when the user clicks the number circle button, as shown in fig. 8, a refresh operation is performed to immediately receive a new mail in the mail list.
In the alternative, unread mails in the mail list are displayed very intuitively, and the user can refresh the mail list simply and conveniently.
Optionally, the method further includes:
when long press operation on the second operation item is monitored, or shaking operation on the terminal is monitored, the second operation item is split and displayed into a third operation item and a fourth operation item, the third operation item is used for identifying a third mail operation for marking an unread mail in the mail list as read, and a user identification of the fourth operation item cancels the fourth mail operation for marking the unread mail in the mail list as read.
As shown in fig. 9, when the user shakes the phone or long presses the number circle "12" button, the number circle button splits into two buttons, one being the "cancel" button and one being the "all marked as read" button. When the user clicks the 'all marked as read' button, the operation of marking all unread mails as read is executed.
In the alternative, the user can conveniently and quickly complete the operation of the mail through a simple action.
As shown in fig. 10, the method further includes:
step S101, when the clicking operation on the card is monitored, displaying a reading page of the mail, wherein a fifth operation item is arranged on the reading page of the mail;
step S102, when the dragging operation of the fifth operation item is monitored, acquiring the current position of the fifth operation item after the dragging operation;
step S103, determining a fifth mail operation corresponding to the current position of the fifth operation item;
and step S104, when it is monitored that the user releases the fifth operation item, executing a fifth mail operation.
As shown in fig. 11, when the user clicks the left card in fig. 3, the mail is enlarged to the full screen, and enters the reading page of the mail corresponding to the card, and the reading page of the mail also has a pull ring 111. As shown in fig. 12, the user can select a common operation such as set to star, delete, set to unread, move to another folder, and the like by dragging the tab.
In an alternative scheme, a user can drag and complete corresponding mail operation through a pull ring on a mail reading page, so that the user can complete most mail operation in one page, the mail reading is more clear, and the mail operation is simpler, more convenient and faster.
As shown in fig. 13 and 14, at the bottom of the mail reading page, the mail can be selected to be replied or forwarded, and a keyboard and an input box pop up at the bottom of the page after clicking.
Fig. 15 is a block diagram of a mail processing apparatus according to an embodiment of the present invention, and as shown in fig. 15, the apparatus includes:
the obtaining module 151 is configured to, when it is monitored that a user drags a first operation item on a mailbox page, obtain a first distance between a current position of the first operation item after a dragging operation and an initial position of the first operation item;
a determining module 152, configured to determine a first mail operation corresponding to the first distance;
and the execution module 153 is configured to execute the first mail operation when it is monitored that the user releases the first operation item.
Optionally, the mailbox page includes at least one mailing list, each mailing list includes a card for displaying a summary of content of each email, and each card includes the first operation item.
Fig. 16 is a block diagram of a mail processing apparatus according to another embodiment of the present invention, as shown in fig. 16, optionally, the apparatus further includes:
and the display module 154 is configured to, when the sliding operation on the mailing list is monitored, slide and display the cards in the mailing list along the sliding direction of the sliding operation.
Optionally, the mailing list includes a second operation item for identifying the number of unread mails in the mailing list; the executing module 153 is configured to, when the click operation on the second operation item is monitored, execute a second email operation of refreshing the email list, where the second email operation is an operation of receiving a new email in the email list again.
Optionally, the display module 154 is configured to split and display the second operation item into a third operation item and a fourth operation item when a long-press operation on the second operation item is monitored or a shaking operation on the terminal is monitored, where the third operation item is used to identify a third mail operation that marks an unread mail in the mail list as read, and the fourth operation item is used to identify and cancel a fourth mail operation that marks the unread mail in the mail list as read.
As shown in fig. 16, optionally, the apparatus further includes:
the display module 154 is configured to display a reading page of the email when the click operation on the card is monitored, where a fifth operation item is set on the reading page of the email;
the obtaining module is configured to obtain a current position of the fifth operation item after a drag operation when the drag operation on the fifth operation item is monitored;
the determining module is configured to determine a fifth mail operation corresponding to the current position of the fifth operation item;
and the execution module is used for executing the fifth mail operation when it is monitored that the user releases the fifth operation item.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.