Re: Every retrieval a duplicate
Max Zettlmeißl <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <CACjvM=e7AkWqBeCnb+6PVu=izX+XQgKfvW37LYWyV2dW5dosUQ@mail.gmail.com> |
On Thu, Aug 30, 2018 at 9: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. > [...] > server = imap.gmail.com > mailboxes = ("Inbox", "[Gmail]/All Mail") # optional - leave this line out to just grab inbox "All Mail" contains almost all emails (only excluding those marked as spam and those marked as trash). Since you retrieve your emails once via the "Inbox" label (which is essentially a view into "All Mail") and once via "All Mail", you retrieve them twice. In most cases it should be sufficient to just retrieve "All Mail", since the emails will indicate in their headers how they were labelled.