Re: Duplicate emails running fetchmail
Lucio Chiappetti <[email protected]>
| Newsgroups | gmane.mail.fetchmail.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 28 Nov 2018, Susan Ruiz wrote:
> Hello, I have a problem, I am currently using fetchmail to retrieve my
> emails from two accounts, one gmail.com, another corporate one with
> POP3.
> and I recover but this duplicate the messages, does anyone know if
> there is any option for this not to happen?
I do not understand whether the duplication occurs only for the gmail
inbox or for both, and therefore it is due to the known hydiosinchratic
imap implementation of gmail, or simply to the fact the message is not
deleted when retrieved the first time, so it is fetched again.
I invoke fetchmail via crontab every 5 min (not manually nor daemon)
The details of what I did are described in
http://sax.iasf-milano.inaf.it/~lucio/WWW/WhereManWins/gs.html
My MUA is alpine not mutt, but you should be able to mimic my behaviour if
you like it.
- in general I am content to wait max 5 min until fetchmail drops the
message in my local inbox
- I am able to access (or see) gsuite inbox as an incoming folder in
my MUA. I never read mail from there, I just use to see the count of
pending messages waiting to be fetched
- I am able to access all the other gsuite folders (without inbox) as
a separate folder collection. I use only two folders in there
- Spam. In case of false positives (good messages classified as
spam) I use google's webmail i/f to flag them "not spam". This
moves them temporarily back to gsuite inbox where fetchmail
retrieves them.
In case of false negatives (spam received as ham) I can use
my MUA to move it from local inbox to google Spam
- Bin. With my configuration, messages retrieved by fetchmail
and "deleted" end there. Daily I clean it from my MUA with
a single keystroke
- so I never keep anything but spam on google for more than 1 day
- the peculiarity of google imap is that their "folders" are not
REAL folders but "labels" and some of them do not reply to
delete/expunge commands issued from my MUA
But I found a reasonable arrangement,
--
Lucio Chiappetti - INAF/IASF - via Bassini 15 - I-20133 Milano (Italy)
For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html
------------------------------------------------------------------------
"All that is google does not glitter
Nor all who use alpine/procmail are lost"