3 ms·
IIRC, getmail and fetchmail both are focused on delivery of email and not with local management of emails. Using IMAP, to fetch emails in such a fashion doesn't
by pyre 17y ago
IIRC, getmail and fetchmail both are focused on delivery of email and not with local management of emails. Using IMAP, to fetch emails in such a fashion doesn't really work. You would basically have to tell getmail/fetchmail to download only new emails... and even then you would end up with duplicate emails between runs.
On the other hand, Gmail's POP is non-standard. It records the last time that you pinged the POP server and only shows messages that were received after that time to the POP client talking to it. That's why it tells you the last time you fetched in the POP3 settings. Gmail's IMAP is more like a standard IMAP server and will show you all the email in the folder regardless of the last time that it was run.
To use IMAP effectively in the way that you want to, you would have to use something like offlineimap that syncs with IMAP, and somehow tell it to not delete emails that were fetched from the server. Or you could do full syncing with offlineimap and then do snapshot backups (rsync,rdiff,etc) of the gmail-backup folder. That way, you have the state of your Gmail account at different points. You could even have it do the snapshots as part of the syncing process (e.g. run the snapshot updater, then run offlineimap to sync new changes).