From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.bugs Subject: bug#54158: 28.0.91; duplicate mail downloads in Gnus (IMAP) Date: Sat, 12 Mar 2022 23:33:24 -0600 Message-ID: <87v8wi8li3.fsf@gnu.org> References: <87tucmc2y4.fsf@gnu.org> <87mtiek67l.fsf@ericabrahamsen.net> <87v8x2ljbs.fsf@gnu.org> <87a6eejjbr.fsf@ericabrahamsen.net> <87a6e1n4n9.fsf@gnu.org> <87r1797g3r.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6689"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54158@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 13 06:34:25 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nTGs4-0001VA-O9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Mar 2022 06:34:24 +0100 Original-Received: from localhost ([::1]:39556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTGs3-00031v-3Z for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Mar 2022 00:34:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTGri-00031m-EF for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2022 00:34:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTGri-00069m-66 for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2022 00:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nTGri-0007aO-1M for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2022 00:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Roland Winkler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Mar 2022 05:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54158 X-GNU-PR-Package: emacs Original-Received: via spool by 54158-submit@debbugs.gnu.org id=B54158.164714961229122 (code B ref 54158); Sun, 13 Mar 2022 05:34:01 +0000 Original-Received: (at 54158) by debbugs.gnu.org; 13 Mar 2022 05:33:32 +0000 Original-Received: from localhost ([127.0.0.1]:41378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTGrD-0007Ze-TL for submit@debbugs.gnu.org; Sun, 13 Mar 2022 00:33:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTGrC-0007ZR-6s for 54158@debbugs.gnu.org; Sun, 13 Mar 2022 00:33:30 -0500 Original-Received: from [2001:470:142:3::e] (port=50938 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTGr6-00067r-SU; Sun, 13 Mar 2022 00:33:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=pPaRHZY+LWBR7IaAKpvQ+s9AYMCmiDWO9huV6zxj968=; b=F+Pdllv1BaAwHBkmXFw4 D39ymTe8FouOWHhX+S9mQEkLggCVnS9x2+K61njVXC7vn1GqvVMGPNRZOJ6XJUAMZATvyyIP+X1qW VuSM20qe4kmAu5iuyaikM420ZF7e3Epyi4oh0DsdLFuWe+NXQ2zY3xn1dsNGFt9vipI7eyat0hOxW XQYgvtfHwSI6YzQkexA39jRfbo4cOIrKE1CJzmgLRW0pHhj2qmng1rlT964ypSjkRh4+pQI2XHV/l sFilSDbqZP5ztuwXiYeNc/9dsBMRSob0h7pn7J/3RAHADpDGtXsGo6lDU+RmLrLupV4EqrmOwuY9R gU1Tt+NDp+ifPA==; Original-Received: from [2600:1700:5650:f790::42] (port=33500 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTGr6-0004ak-IB; Sun, 13 Mar 2022 00:33:24 -0500 In-Reply-To: <87r1797g3r.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 10 Mar 2022 11:38:32 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228275 Archived-At: 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