El día Thursday, December 19, 2013 a las 07:07:04PM +1100, Cameron Simpson 
escribió:

> Or, you could just use mutt as he asked.
> 
> Invoke mutt pointed at the IMAP server and push the required keystrokes
> to tag every message and then save tagged messages to a local folder.
> 
> Easy peasey.
> 
> To help you on your way, here is my mutt invocation from my "mboxify"
> script which packs up a Maildir folder into an mbox folder (I use
> it for archiving active folders):
> 
>   mutt -n -F /dev/null -f "$mailbox" -e "set sort=mailbox-order; set 
> confirmappend=no; set delete=yes; push 
> '<tag-pattern>.<enter><tag-prefix><save-message>$mailboxtmp<enter><sync-mailbox><exit>'"
> 
> For your purposes you would set $mailbox to the IMAP server and
> $mailboxtmp to the local folder (full file pathname to a local
> folder, to be unambiguous).
> 
> Adapt to suit. Feel free to ask questions.

Thanks, it works in parts; when I use this script:

#!/bin/sh
mutt -n -f imap://imap.1blu.de/ -e "set sort=mailbox-order; set 
confirmappend=no; set delete=yes; push 
'<tag-pattern>.<enter><tag-prefix><save-message>/usr/local/guru/mailboxtmp<enter><sync-mailbox><exit>'"

I have had to create the file /usr/local/guru/mailboxtmp by hand
(mutt asked for creation) and it fetches all mails fine to it, but it
does no quit by its own, only if I type 'q'; what I do miss?

Thanks

        matthias
-- 
Sent from my FreeBSD netbook

Matthias Apitz, <g...@unixarea.de>, http://www.unixarea.de/ f: +49-170-4527211
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5

Reply via email to