0
I am using getmail
to archive my Gmail account's inbox. However, every once in a while the process hangs -- probably due to a bad connection with Gmail's IMAP servers. I find that the only way to restart the process is to simply kill the process with CTRL+C. Sometimes, when killing and restarting the process, getmail
is not updating the oldmail
file which it uses, when it restarts, to determine which emails were previously downloaded. This makes the process take more time (and potentially hang once again), and bloats the mbox
file that stores the backup data.
After poking around, it appears that getmail
only updates the oldmail
file when it completes -- and so if it is unexpectedly killed, the data on which emails have already been downloaded is lost. Is there a way to force getmail
to update the oldmail
database in real time, rather than just at the end of the process?