Duplicate emails running fetchmail

Susan Ruiz <[email protected]>
Newsgroups gmane.mail.fetchmail.user
Message-ID <CA+MNj5yhn9x+C2fOOHCuEzMCsRfgwVdL1546KXDUt++f4m3Ujw@mail.gmail.com>
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.

This is my fetchmailrc file:
poll "pop.gmail.com" with proto POP3 port 995 user "[email protected]"
password "xxxxxxx"
sslfingerprint "xxxxxxxxxxx"
no rewrite keep ssl fetchall mda "/usr/bin/maildrop"

poll "mail.xxxxxxxx.co"
proto POP3
port 995
user "[email protected]"
password "xxxxxxx"
sslfingerprint "xxxxxxxxxxxxxxx"
no rewrite
keep
ssl
fetchall
mda "/usr/bin/maildrop"

In the first execution I use it in the following way, and I invoke it
inside mutt with the macro "G"
macro index G "!fetchmail\n"
macro pager G "!fetchmail\n"

My problem comes when I enter mutt again and invoke G to activate the
daemon (for the second execution I make these changes in my file:)

set daemon 60
poll "pop.gmail.com" with proto POP3 port 995 user "[email protected]"
password "xxxxxxx"
sslfingerprint "xxxxxxxxxxx"
no rewrite keep ssl nofetchall mda "/usr/bin/maildrop"

set daemon 60
poll "mail.xxxxxxxx.co"
proto POP3
port 995
user "[email protected]"
password "xxxxxxx"
sslfingerprint "xxxxxxxxxxxxxxx"
no rewrite
keep
ssl
nofetchall
mda "/usr/bin/maildrop"

and I recover but this duplicate the messages, does anyone know if
there is any option for this not to happen? I change previously to
notfechall but even that way it brings me duplicate emails.

Thank you in advance for your help.

Regards,


-- 
Susan Ruiz
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.