rtucker / imap2maildir

Backs up an IMAP mailbox to a maildir. Useful for backing up mail stored on free webmail providers, etc.
http://blog.hoopycat.com/index.php/2009/07/04/imap2maildir-a-tool-for-mirroring-imap-t
MIT License
99 stars 22 forks source link

Better handling of large mailboxes (make -m moot) #1

Closed rtucker closed 15 years ago

rtucker commented 15 years ago

Right now, there's a per-run limit, because each message being checked requires that much more RAM. Making this more smart would be a good idea, so it could make it all the way through a mailbox without using a lot of RAM.

A way to do this might be to wrap things in a loop and do 1000 messages at a time. Or, using a temp file to store the FETCH results from the server and then iterating through there could do the trick.

rtucker commented 15 years ago

This has been cleared up! Memory usage is flat as far as I can get it.