Next: , Previous: , Up: The Mail Interface   [Contents][Index]


10.12 Deleting Messages

The main command described in this section is Headers Delete Message (bound to k in Headers and Message modes). A useful command for reading new mail is Delete Message and Show Next (bound to d in Message mode) which deletes the current message and shows the next undeleted message.

Since messages are by default deleted using a virtual message deletion mechanism, Expunge Messages (bound to ! in Headers mode) should be mentioned here. This is described in section terminating.

Hemlock Variable: Virtual Message Deletion (initial value t)

When set, Delete Message adds a message to the "hemlockdeleted" sequence; otherwise, rmm is invoked on the message immediately.

Command: Delete Message

This command prompts for a folder, messages, and an optional pick expression. When invoked in a Headers buffer of the specified folder, the prompt for a message specification will default to the those messages in that Headers buffer.

When the variable Virtual Message Deletion is set, this command merely flags the messages for deletion by adding them to the "hemlockdeleted" sequence. Then this updates any Headers buffers representing the folder. It notates each headers line referring to a deleted message with a "D" in the third character position after the message ID.

When Virtual Message Deletion is not set, rmm is invoked on the message, and each headers line referring to the deleted message is deleted from its buffer

Command: Headers Delete Message stuff (bound to k in Headers and Message modes)

This command, when invoked in a Headers buffer, deletes the message on the current line as described in Delete Message.

When invoked in a Message buffer, the message displayed in it is deleted as described in Delete Message.

Command: Delete Message and Show Next stuff (bound to k in Headers and Message modes)

This command is only valid in a Headers buffer or a Message buffer associated with some Headers buffer. The current message is deleted as with the Delete Message command. Then the next message is shown as with Next Undeleted Message.

Command: Delete Message and Down Line stuff (bound to d in Headers mode)

This command, when invoked in a Headers buffer, deletes the message on the current line. Then the point is moved to the next non-blank line.

Command: Undelete Message

This command is only meaningful when Virtual Message Deletion is set. This prompts for a folder, messages, and an optional pick expression. When in a Headers buffer of the specified folder, the messages prompt defaults to those messages in the buffer. All Headers buffers representing the folder are updated. Each headers line referring to an undeleted message is notated by replacing the "D" in the third character position after the message ID with a space.

Command: Headers Undelete Message stuff (bound to u in Headers and Message modes)

This command is only meaningful when Virtual Message Deletion is set. When invoked in a Headers buffer, the message on the current line is undeleted as described in Undelete Message.

When invoked in a Message buffer, the message displayed in it is undeleted as described in Undelete Message.


Next: Folder Operations, Previous: Convenience Commands for Message and Draft Buffers, Up: The Mail Interface   [Contents][Index]