 |
Pine's "Aggregate Command Set"
Pine has a very powerful feature called the "Aggregate
Command Set", which makes it possible to select a group of
messages based on something they have in common (date range,
number range, subject line, to line, from line, text in the
message, etc.), and then apply a command to all of them
(save, delete, etc.).
Turning on the Aggregate Command Set
If you do not already have the command enabled on your version of pine
here is how to do so:
-
Type m to get to the main menu of pine.
-
Type s to bring up pine's setup menu.
-
Type c to go to the configure menu for pine.
-
Type CTRL+W to bring up the "Word to find" command.
-
In the space provided type agg to search for the
line that has "enable-aggregate-command-set" on it.
-
If there is an X next to the command in the brackets
then it is already enabled. If not, then type x to
enable the command.
-
Now type e to exit the config menu.
-
When prompted to save your changes, type y for yes to
save them.
An Example, How to delete a selected group of messages
As mentioned above, there are a variety of characteristics
that you can use to group messages for selection. Example:
You've received a lot of messages from a
discussion list that you haven't had time to read. You
want to get rid of all of those that are out of date.
Let's say the list is "cheaptalk-l@somewhere.edu", and
anything before December 2007 is out of date.
We're looking for two features that are
common to all the messages you want to get rid of:
-
the list address, which will be text found
on the To: line of every message sent to
the list, and
-
the date the message was received, with
respect to December, 2007.
Here's the method for isolating these messages, starting
while you're in the Folder Index (message list):
-
Make sure that you are in the message index by typing i
or by typing l to select a different folder.
-
Type ; which activates the select command.
-
Type t which tells pine to use test for the selection criteria.
-
Type t again which narrows the text searched to the To: line of the messages.
-
Type cheaptalk which is the text that you want to find.
At this point, all the messages from the group will be marked
at the left with an X. You could use the
Z(oom) command to toggle between displaying
only the selected messages and displaying all the messages.
If you just wanted ALL the messages from the group, you'd be
finished, but in this case, we want to NARROW the search to
include ONLY the ones BEFORE December 1, 2007. So we do
another selection process on the ones we've already selected:
- Type ; to bring up the selection menu.
- Now type an n in order to narrow the selection.
- Type a d to select messages by date.
-
To toggle the date selection between ON, SINCE, or BEFORE, type
^w. In this case we want to select BEFORE
so toggle the message until BEFORE is selected.
-
Now type in the date 1-Dec-2007.
At this point, all the X'd items from on or after 12/31/07
become un-X'd.
Now to DO something with the selection
Our example calls for us to delete these messages. We do this by using
the append command which is the other command of the aggregate command set.
-
Type a to apply a command to the selected messages.
-
Now type a d to mark the selected messages for deletion.
-
To finish the delete immediately, type x to expunge the
messages from the message folder.
-
To finish the process type y for yes to expunge the messages.
And that finishes the job.
For more information about these commands
The Aggregate Command Set is even more powerful than what
we've just show above. For more information about it,
-
Type a ? to ask for help.
-
Now bring up the search feature by typing w.
-
In the space provided type selecting to go to the topic
called selecting which covers this topic.
|