On Sat, Oct 16, 1999 at 17:42:40 +0300, Mikko Hänninen wrote:
> Eric Smith <[EMAIL PROTECTED]> wrote on Sat, 16 Oct 1999:
> > | mutt -f folder-to-expire -e 'set delete;push D~r>20d<enter>q'
>
> > BTW, how would one modify this so that insted of deleting it copies to
> > another folder or even better adds it to a folder-to-expire.tar.gz.
>
> You need to tag the messages instead of deleting (T, not D). Then
> you need to to add a second command which saves the tagged messages
> to a folder of your choice, something like ";s=folder<enter>" added
> before the quit. Shouldn't be too difficult to work out.
However there is a problem here. If no messages were tagged then the
tag-prefix will have no effect, and what happens to be the current
message will then be expired.
This problem can arise with many macros, too.
It might be a good idea to solve such kind of problems by ignoring
the command immediately after a tag-prefix command when there are no
tagged messages when executing macros or push commands.
BTW. The tag-prefix ";" should be escaped with a backslash, or the
argument to the push command should be quoted. Otherwise the ";"
will be interpreted as a command separator.
--
Byrial