[Dovecot] Extracting mbox format from Dovecot IMAP (mdbox)
Hi,
I'm looking for a quick tool that can connect to my IMAP account grab all the messages in a particular folder and dump them to a mbox format file?
Anyone know a quick easy tool to do that?
This is a spam folder that I'd like to do some Bayes spam learning on, but since I've migrated to mdbox I don't think I can do this directly on the mailbox.
Any thoughts appreciated.
-- Best Regards,
Giles Coochey NetSecSpec Ltd UK Mobile: +44 7983 877 438 Business Email: giles.coochey@netsecspec.co.uk Email/MSN/Live Messenger: giles@coochey.net Skype: gilescoochey
On Mon, 2012-03-12 at 13:09 +0000, Giles Coochey wrote:
Hi,
I'm looking for a quick tool that can connect to my IMAP account grab all the messages in a particular folder and dump them to a mbox format file?
Anyone know a quick easy tool to do that?
This is a spam folder that I'd like to do some Bayes spam learning on, but since I've migrated to mdbox I don't think I can do this directly on the mailbox.
Any thoughts appreciated.
With v2.0: dsync -m spam backup mbox:~/mbox-mails/
There are also doveadm move and doveadm import commands that can do this.
On 12/03/2012 13:19, Timo Sirainen wrote:
On Mon, 2012-03-12 at 13:09 +0000, Giles Coochey wrote:
Hi,
I'm looking for a quick tool that can connect to my IMAP account grab all the messages in a particular folder and dump them to a mbox format file?
Anyone know a quick easy tool to do that?
This is a spam folder that I'd like to do some Bayes spam learning on, but since I've migrated to mdbox I don't think I can do this directly on the mailbox.
Any thoughts appreciated. With v2.0: dsync -m spam backup mbox:~/mbox-mails/
There are also doveadm move and doveadm import commands that can do this.
OK, That would do a mailbox called spam no? I have a normal user who has an IMAP folder called 'Junk E-mail'
Is there a similar syntax?
-- Best Regards,
Giles Coochey NetSecSpec Ltd UK Mobile: +44 7983 877 438 Business Email: giles.coochey@netsecspec.co.uk Email/MSN/Live Messenger: giles@coochey.net Skype: gilescoochey
On Mon, 2012-03-12 at 13:37 +0000, Giles Coochey wrote:
Any thoughts appreciated. With v2.0: dsync -m spam backup mbox:~/mbox-mails/
There are also doveadm move and doveadm import commands that can do this.
OK, That would do a mailbox called spam no? I have a normal user who has an IMAP folder called 'Junk E-mail'
Is there a similar syntax?
Yeah, the -m parameter just specifies the mailbox name. So:
dsync -m 'Junk E-mail' backup mbox:~/mbox-mails/
If different accounts have different names, then I guess you'll just have to run dsync twice with each name.
On 12/03/2012 13:39, Timo Sirainen wrote:
On Mon, 2012-03-12 at 13:37 +0000, Giles Coochey wrote:
Any thoughts appreciated. With v2.0: dsync -m spam backup mbox:~/mbox-mails/
There are also doveadm move and doveadm import commands that can do this.
OK, That would do a mailbox called spam no? I have a normal user who has an IMAP folder called 'Junk E-mail'
Is there a similar syntax? Yeah, the -m parameter just specifies the mailbox name. So:
dsync -m 'Junk E-mail' backup mbox:~/mbox-mails/
If different accounts have different names, then I guess you'll just have to run dsync twice with each name.
Thanks - was experimenting and got it. Works a treat!
-- Best Regards,
Giles Coochey NetSecSpec Ltd UK Mobile: +44 7983 877 438 Business Email: giles.coochey@netsecspec.co.uk Email/MSN/Live Messenger: giles@coochey.net Skype: gilescoochey
participants (2)
-
Giles Coochey
-
Timo Sirainen