Patent attributes
A method of managing electronic mail messages in an email account includes displaying an open email message to a user on a display screen of a device. While the open email message is displayed to the user, intent of the user to perform an action that will result in closing the open email message is detected. In automatic response to detecting the intent of the user and before the action can be completed, a plurality of deletion options is presented to the user, from which the user selects one deletion option. A selection of one of the deletion options is received from the user. A deletion criterion is set for a given email message based on the selected deletion option and the action that will result in closing the open email message is completed, in automatic response to receiving the selection from the user.