On 2001-03-21 16:38:53, Duke Normandin wrote:
> On Wed, Mar 21, 2001 at 06:17:31PM -0000, Malcolm Boekhoff wrote:
> > Does anyone know if you can save all messages, instead of holding down
> > the "y" key, which is macro'ed as specified below?
> >
> > Is there a way to execute the "y" macro N times, where N is the number
> > of messages in a mail box?
> >
> > How about <tag-prefix><save-message><enter> saving messages to their
> > "save-hook"'d places, instead of to the mailbox that the first message
> > is "save-hook"ed to?
>
> I don't know what your problem is -- but I wrote the macros and they work
> for me. I hold down the CTRL key, then press "y", for example, and *all*
> the applicable messages get tagged, moved and deleted. I then press the
> next ESC or CTRL whatever for the next "group" of messages. I have
> messages in "!" color coded by "group" (i.e. mailing lists, personal,
> etc) so that I know at a glance which macro I should execute.
> --
> -duke
> Calgary, Alberta, Canada
Yes the macros work and thankyou for that.
However, the problem I am experiencing with the macro is that:
IF the <tag-pattern> doesn't match any messages
THEN
The following "<tag-prefix><save-message>+mailbox<enter" command saves
the currently selected message into "mailbox" file, even though it
doesn't match anything.
ENDIF
I have tried using "save-hook" to specify the pattern for the default "."
pattern, so that I can remove the "+mailbox" from the
"<save-message>+mailbox<enter" command (leaving "<save-message><enter>"),
with the idea that if there weren't any tagged messages at that time, then
at least the currently selected message would go in an appropriate place
(via the "save-hook"), but that doesn't appear to work - you have to
specify the mail-box or else the <save-message> command doesn't work.
I want to abort or skip over the "<save-message>...<enter>" bit of the
macro if the <tag-prefix> command returns an error or if you can detect
that the <tag-pattern> command didn't select any messages.
Alles Klar?