Hi I want to download all messages from an IMAP mailbox but i want this to be outputted into MailDir format. I tried using fetchmail but this outputted the mailbox into mbox format. Is there an IMAP client that works on the command line but will output into MailDir format or failing that how reliable is converting from mbox to MailDir ? thanks
On Wed, Apr 12, 2006 at 10:18:11AM +0100, Tom Brown enlightened us:> I want to download all messages from an IMAP mailbox but i want this to > be outputted into MailDir format. I tried using fetchmail but this > outputted the mailbox into mbox format. Is there an IMAP client that > works on the command line but will output into MailDir format or failing > that how reliable is converting from mbox to MailDir ? >Fetchmail doesn't output mail at all. It delivers it by default to port 25 on your local machine. So, configure your MDA to deliver to Maildir and try again. The fetchmail man page holds quite a bit of information, you just have to look... Matt -- Matt Hyclak Department of Mathematics Department of Social Work Ohio University (740) 593-1263
Quoting Tom Brown <tom.brown at goodtechnology.com>:> Hi > > I want to download all messages from an IMAP mailbox but i want this > to be outputted into MailDir format. I tried using fetchmail but this > outputted the mailbox into mbox format. Is there an IMAP client that > works on the command line but will output into MailDir format or > failing that how reliable is converting from mbox to MailDir ?I remember there were some utilities distributed with wu-imapd source that might do what you want. A perl script that would split mbox mailbox into maildir format is also trivial to write. If you are transferring between two IMAP servers (one using mbox, the other using maildir), you can also use utility such as imapsync and not worry about the storage format of particular IMAP server. -- See Ya' later, alligator! http://www.8-P.ca/
Tom Brown wrote:> Hi > > I want to download all messages from an IMAP mailbox but i want this to > be outputted into MailDir format. I tried using fetchmail but this > outputted the mailbox into mbox format. Is there an IMAP client that > works on the command line but will output into MailDir format or failing > that how reliable is converting from mbox to MailDir ? >I have used the IMAP routines built into php, which can be used as commandline interpreter much like perl, with great success. The implementation is more complete than perl's and pretty simple to do whatever you'd like, but you'd have to write a short program. David