unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Roland Winkler <winkler@gnu.org>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: 54158@debbugs.gnu.org
Subject: bug#54158: 28.0.91; duplicate mail downloads in Gnus (IMAP)
Date: Sat, 12 Mar 2022 23:33:24 -0600	[thread overview]
Message-ID: <87v8wi8li3.fsf@gnu.org> (raw)
In-Reply-To: <87r1797g3r.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 10 Mar 2022 11:38:32 -0800")

On Thu, Mar 10 2022, Eric Abrahamsen wrote:
>> My understanding is that IMAP servers permit to expunge individual
>> messages while keeping others, though I do not want to use this feature
>> (I want to expunge everything after fetching it).  However, I do not see
>> where mail-source-fetch-imap would implement such fine control.  But my
>> problem of multiple downloads exists only for *some*, but not all
>> messages.  So it seems to me we may be looking at the wrong part of the
>> code altogether.  But that's only a wild guess of someone who does not
>> know much about all of this.
>
> I don't know that much, either. I'll set up a local IMAP account and do
> some testing with this, but it will take me a week or so to get to it.
> Can you tell me what IMAP server you're talking to here?

The IMAP server is Office365 that's accessed via a local davmail (for
Office365 interactive authentication).

I was always surprised that the duplicate emails are "mostly spam".
Previously, I sent you my settting of `mail-sources'.  I changed the
line

  :mailbox ("INBOX" "JUNK EMAIL")

to

  :mailbox ("JUNK EMAIL" "INBOX")

Strange enough, I didn't observe any duplicate message downloads when I
tested this for a few days.

To be more specific: if I understand the office365 spam filter
correctly, it puts messages quite generously into the "JUNK EMAIL"
folder, which is why I prefer to review these messages locally.  But
these messages in "JUNK EMAIL" are tagged as spam more or less
aggressively as spam.  Also, I believe gnus won't tell me whether it
downloaded a message from the INBOX or "JUNK EMAIL" folder.  That's why
I cannot tell with certainty for some of the duplicate downloads from
which folder on the server they originated.  But it seems that all my
duplicate messages are coming from the "JUNK EMAIL" folder on the IMAP
server.

I believe that "INBOX" is really the default folder on an IMAP server
that also appears in some gnus defaults.  Then, adding another folder to
:mailbox may be less common.  So my problems arise only in what may be a
less frequent use case.  Certainly, this becomes yet more obscure if it
matters whether a second folder is listed in :mailbox before or after
the default "INBOX".

All the above is describing symptoms.  The root of the problem remains
unclear to me.

Roland





  reply	other threads:[~2022-03-13  5:33 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-25 16:42 bug#54158: 28.0.91; duplicate mail downloads in Gnus (IMAP) Roland Winkler
2022-02-25 21:05 ` Eric Abrahamsen
2022-02-25 21:36   ` Roland Winkler
2022-02-26  5:19     ` Eric Abrahamsen
2022-02-28 16:30       ` Roland Winkler
2022-03-07 15:50       ` Roland Winkler
2022-03-10 19:38         ` Eric Abrahamsen
2022-03-13  5:33           ` Roland Winkler [this message]
2022-03-18 16:09             ` Roland Winkler
2022-03-18 16:19               ` Eric Abrahamsen
2022-03-18 16:34                 ` Roland Winkler
2022-03-18 16:45                   ` Robert Pluim
2022-03-18 17:55                     ` Roland Winkler
2022-03-18 16:49                   ` Eric Abrahamsen
2022-03-18 16:53                     ` Eric Abrahamsen
2022-03-18 15:27       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-18 16:03         ` Eric Abrahamsen
2022-03-19  4:53 ` Andrew Cohen
2022-03-19 16:25   ` Roland Winkler
2022-03-21 19:33     ` Eric Abrahamsen
2022-03-21 19:38       ` Lars Ingebrigtsen
2022-03-21 19:48         ` Eric Abrahamsen
2022-03-21 19:50           ` Lars Ingebrigtsen
2022-03-21 23:18             ` Eric Abrahamsen
2022-03-21 20:40       ` Roland Winkler
2022-03-21 23:27         ` Eric Abrahamsen
2022-03-19 21:52 ` Andrew Cohen
2022-03-20  3:50   ` Roland Winkler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8wi8li3.fsf@gnu.org \
    --to=winkler@gnu.org \
    --cc=54158@debbugs.gnu.org \
    --cc=eric@ericabrahamsen.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).