Hi,

I'm in the process of writing a CGI/Perl script to move
folders from one IMAP server to another IMAP server. I would
like to use mutt because I'm already familiar with it, but
it's the first time I use mutt in a non-interactive way.

I've looked at the docs and the mailing list archives,
unfortunately didn't find much info there.

Basically, what I've come up with so far is this:

foreach $f in @folders {
mutt -F alt.muttrc -f =$f -e \
'push
"T.<enter>;simap://user:[EMAIL PROTECTED]/$f<enter>q"'
}

Is there a more elegant way (using another tool maybe)? I've
looked at fetchmail, but it downloads the messages and give
them to MTA, which I don't want. I've also looked at UW's
imapxfer utility, but the username and password is entered
interactively there, and can't migrate one folder at a time.

Please CC me on the reply, as I just subscribed.

Thanks,
-- 
Robert Chien

Reply via email to