Re: getmail with davmail
Charles Cazabon <[email protected]> Sat, 6 Feb 2021 18:45:44 -0600
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
Graham Denham <[email protected]> wrote: > > > I thought that when they disabled password auth they introduced a > > replacement for it - maybe called "app passwords" or "app keys" or > > something like that? > > I think Microsoft allows this option, but unfortunately my site > administrators do not. The logic being, who wouldn’t want to use Outlook? > :-) Egads. Try to have your boss remind the administrators that they're there to serve their users' needs, not make arbitrary choices that make the workers' jobs harder. > > Crank up the verbosity level with --trace and see what UID is logged on > > the two retrievals of the same message. > > Thanks, after looking through the full trace, it seems that this is what’s > happening. E.g., getmail fetched a new message with UID 71371. A minute > later, there was no more 71371, but there was a 71372, which getmail > dutifully received. That definitely sounds like a bug - or, since it's a Microsoft email-handling-product, business as usual :) While I would recommend trying to report this to Microsoft to try to get this root cause actually fixed, I don't imagine it will be easy or quick to do so. In the meantime, you might be able to work around the problem using an external MDA that does content-based message deduplication. You can plug one into getmail with MDA_external, or with getmail's filtering capability (where the filter would exit normally to deliver a message, and with the special dont-deliver-this-message exit code when it detects a duplicate). Charles -- ----------------------------------------------------------------------- Charles Cazabon GPL'ed software available at: http://pyropus.ca/software/ -----------------------------------------------------------------------