Re: Every retrieval a duplicate
"Long black coat" <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
Many thanks Larry, Max,
This sounds completely reasonable now, but
I did not understand the syntax.
I am now using
[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
mailboxes = ALL
.....
max_messages_per_session = 500
This actually appears to be retrieving all 88k messages again.
The sequence now appears to be folder-by-folder with oldest
email first. (I have about 20 personal folders in addition to
the standard Inbox, Sent Mail, Spam, Bin, etc.)
Or else the original retrieval with
mailboxes = ("Inbox", "[Gmail]/All Mail")
missed a great many (several thousand) messages.
Ideally I'd like to start over, with mailboxes = ALL
but I guess that won't work because of marks on
already retrieved messages.
Alec
On Fri, 31 Aug 2018 08:14:41 -0500, Larry Fahnoe <[email protected]> wrote:
> My guess is that the duplicates are due to you telling getmail to retrieve
> from both GMail's Inbox and All Mail. All Mail contains all your messages,
> Inbox is a virtual folder that contains only unread messages. Once a
> message is read it is removed from Inbox, but stays in All Mail. Depending
> on what you're trying to accomplish, I would suggest one or the other but
> not both Inbox and All Mail.
>
> --Larry
>
> On Thu, Aug 30, 2018 at 2:40 PM Long black coat <[email protected]>
> wrote:
>
> > Hi.
> >
> > Getmail is retrieving two copies of all emails in my Inbox. These
> > are simultaneous retrievals from a single getmail command.
> >
> > It is also duplicating retrievals of many emails that have been moved
> > from Inbox into custom folders; I can't see any pattern to when this
> > happens and doesn't happen.
> >
> > I'm retrieving from a gmail IMAP account.
> >
> > My rc file is below. Any help will be much appreciated.
> >
> > # More configuration options here:
> > # http://pyropus.ca/software/getmail/configuration.html
> > [retriever]
> > type = SimpleIMAPSSLRetriever
> > server = imap.gmail.com
> > mailboxes = ("Inbox", "[Gmail]/All Mail") # optional - leave this line out
> > to just grab inbox
> > username = redacted
> > password = redacted
> >
> > [destination]
> > type = MDA_external
> > path = /usr/bin/procmail
> > arguments = ("-f", "%(sender)", "-m", "$HOME/.procmailrc")
> >
> > [options]
> > verbose = 2
> > message_log = ~/.getmail/log
> > message_log_verbose = true
> > max_messages_per_session = 100
> >
> > read_all = false
> >
> > delivered_to = false
> > received = false
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
> --
> Larry Fahnoe, Fahnoe Technology Consulting, [email protected]
> Minneapolis, Minnesota www.FahnoeTech.com