On Thursday, 04 February 2010, 17:18:27 -0500,
Paul Greenberg <p...@isrcomputing.com> wrote:
> Hi,
> 
> I have the following configuration. The goal is for me to be able to
> press Ctrl+q, and then e-mails based on pattern will be saved to
> different files without me confirming to create these files, and them
> delete transfered e-mail from initial mbox.
> 
> Problem: when I pres Ctrl+q, it first opens edit e-mail screen, when I
> exit it goes follows some weird pattern...for example some of mutt.org
> list ends up in personal.junk.
> 
> Please assist! :)
> 
> push "<tag-pattern>~f 
> @ussa.org<enter><tag-prefix><save-message>=personal.junk<enter>"
> [...]

I see one problem in this line, this may not be yours but you could
first correct it and see if it's ok then.

Imagine no messages match your pattern : none is tagged, so the
save-message applies to the selected message who will go in
personal.junk. Same things for the following lines and e-mails.

My advice would be to replace tag-prefix with tag-prefix-cond.

>From the manual : « In macros or push commands, you can use the
<tag-prefix-cond> operator. If there are no tagged messages, Mutt will “eat”
the rest of the macro to abort it's execution. Mutt will stop “eating” the
macro when it encounters the <end-cond> operator; after this operator the rest
of the macro will be executed as normal. »

Reply via email to