Re: How to only get new mail

RW <[email protected]>
Newsgroups gmane.mail.getmail.user
Message-ID <[email protected]>
On Mon, 22 Apr 2019 16:41:09 +0800
Changqing Li wrote:

 
> [options]
> verbose=1
> # retrieve only new emails
> read_all = false

> I hope to retrieve mail by getmail and the mail send to parsemail.sh
> to parse. but I only hope to get new mail or maybe get the same mail
> only one time.

'read_all = false' means that getmail keeps a list of what it's
retrieved and downloads what's not on the list.


> but the actual result is that, there is a mail A, it will be
> retrieved everytime crontab run "getmail --getmaildir=/opt/getmail/
> --idle INBOX". so the mail A will be parsed per 5 minutes.

I don't use --idle myself but my understanding is that it causes
getmail to stay logged for ever. So running it from a 5 minute crontab
entry will lead to multiple getmail instances.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.