--- Begin Message ---
Nicolas Rachinsky wrote:
> * Marco Fioretti <mfioretti@xxxxxxxxx> [2006-11-08 15:07 +0100]:
> > mutt -f test_in -e
> > 'tag-pattern>.<enter><tag-prefix><copy-message>test_out/<enter>'
>
> -e needs an configuration file command, so you should prepend
> a push and the missing <). Then this or something similar should work.
Oh man! I knew it was something silly. I _had_ tried the missing < earlier, but
I had also completely overlooked the "push" part... Thanks!
Now, if I run this (test_mbox is in mbox format):
mutt -m Maildir -f test_mbox -e 'push
<tag-pattern>.<enter><tag-prefix><copy-message>test_out<enter><quit><enter>'
mutt does what I want, that is:
open test_mbox
tag all messages
copy all of them to test_out, in Maildir format
Two final questions/confirmations:
1) Mutt beeps when starting and remains open after copying the messages.
This is a sure sign that the '<quit><enter>' part is wrong, but I
don't recognize in the manual any clue on how to make it quit as soon
as it has copied everything to the new maildir... (remember this should
eventually run unattended inside a bash loop)
For the record, if I hit q manually, it does quit without asking
for confirmation
2) from a partial inspection, it looks like all the status (new, read, unread)
and other
flags are left unchanged, in both the original and destination mailbox,
which is just what I want. The question is, this _is_ what is guaranteed to
always happen with that macro, isn't it? Or maybe it happened in this test
because of some weird configuration variable?
Thanks again for your lightning fast support!
Marco
--- End Message ---