head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 2006.05.29.14.31.25; author jpeek; state Exp; branches; next 1.3; 1.3 date 2006.05.28.04.27.15; author jpeek; state Exp; branches; next 1.2; 1.2 date 2006.05.26.23.59.01; author jpeek; state Exp; branches; next 1.1; 1.1 date 2006.05.26.22.12.07; author jpeek; state Exp; branches; next ; desc @mh-e_44.html page from mh-e section of "MH & nmh: Email for Users & Programmers" @ 1.4 log @Removed 'html/' from end of http://mh-e.sourceforge.net/manual/html/ URLs @ text @ BOOK MOVED: mh-e - Sequences

BOOK MOVED: mh-e - Sequences

This section of MH & nmh: Email for Users & Programmers is now the MH-E Manual. It's moved to http://mh-e.sourceforge.net/manual/.

If you aren't taken to the new site in 15 seconds, please click on the link above.

You may also want to visit:


Last change $Date: 2006/05/28 04:27:15 $
Suggestions are welcome: Bill Wohler <wohler@@newt.com>
@ 1.3 log @removed 'Tour-Through-MH_002dE.html' from end of http://mh-e.sourceforge.net/manual/html/ @ text @d4 1 a4 1 content="15;URL=http://mh-e.sourceforge.net/manual/html/"> d15 2 a16 2 href="http://mh-e.sourceforge.net/manual/html/"> http://mh-e.sourceforge.net/manual/html/. d39 1 a39 1 Last change $Date: 2006/05/26 23:59:01 $ @ 1.2 log @Replaced with page pointing people to new MH-E Manual @ text @d4 1 a4 1 content="15;URL=http://mh-e.sourceforge.net/manual/html/Tour-Through-MH_002dE.html"> d15 2 a16 2 href="http://mh-e.sourceforge.net/manual/html/Tour-Through-MH_002dE.html"> http://mh-e.sourceforge.net/manual/html/Tour-Through-MH_002dE.html. d39 1 a39 1 Last change $Date: 2006/05/26 22:12:05 $ @ 1.1 log @Original version from Feb 19 2001 @ text @d3 2 d7 39 a45 142 mh-e - Sequences Go to the first, previous, next, last section, table of contents.


Using Sequences

For the whole scoop on MH sequences, refer to mh-sequence(5). As you've read, several of the mh-e commands can operate on a sequence, which is a shorthand for a range or group of messages. For example, you might want to forward several messages to a friend or colleague. Here's how to manipulate sequences.

%
Put message in a sequence (mh-put-msg-in-seq).
?
Display sequences that message belongs to (mh-msg-is-in-seq).
M-q
List all sequences in folder (mh-list-sequences).
M-%
Remove message from sequence (mh-delete-msg-from-seq).
M-#
Delete sequence (mh-delete-seq).
C-x n
Restrict display to messages in sequence (mh-narrow-to-seq).
C-x w
Remove restriction; display all messages (mh-widen).
M-x mh-update-sequences
Push mh-e's state out to MH.

To place a message in a sequence, use % (mh-put-msg-in-seq) to do it manually, or use the MH command pick or the mh-e version of pick (section Searching Through Messages) which create a sequence automatically. Give % a prefix argument and you can add all the messages in one sequence to another sequence (for example, C-u % SourceSequence RET).

Once you've placed some messages in a sequence, you may wish to narrow the field of view to just those messages in the sequence you've created. To do this, use C-x n (mh-narrow-to-seq). You are prompted for the name of the sequence. What this does is show only those messages that are in the selected sequence in the MH-Folder buffer. In addition, it limits further mh-e searches to just those messages. When you want to widen the view to all your messages again, use C-x w (mh-widen).

You can see which sequences a message is in with the ? (mh-msg-is-in-seq) command. Or, you can list all sequences in a selected folder (default is current folder) with M-q (mh-list-sequences).

If you want to remove a message from a sequence, use M-% (mh-delete-msg-from-seq), and if you want to delete an entire sequence, use M-# (mh-delete-seq). In the latter case you are prompted for the sequence to delete. Note that this deletes only the sequence, not the messages in the sequence. If you want to delete the messages, use C-u d (see section Deleting Your Mail above).

Two sequences are maintained internally by mh-e and pushed out to MH when you type either the x or q command. They are the sequence specified by your `Unseen-Sequence:' profile entry and cur. However, you can also just update MH's state with the command M-x mh-update-sequences. See section Viewing Your Mail for an example of how this command might be used.

With the exceptions of C-x n and C-x w, the underlying MH command dealing with sequences is mark.


Go to the first, previous, next, last section, table of contents. @