From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86090 Path: news.gmane.org!not-for-mail From: Nikolaus Rath Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] nnimap: enable additional expunge options Date: Mon, 03 Aug 2015 10:21:14 -0700 Message-ID: <87fv40z3sl.fsf@thinkpad.rath.org> References: <87oal63goc.fsf@vostro.rath.org> <87wpxc7mi0.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1438622518 19786 80.91.229.3 (3 Aug 2015 17:21:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Aug 2015 17:21:58 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34324@lists.math.uh.edu Mon Aug 03 19:21:43 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZMJQi-0002zf-FT for ding-account@gmane.org; Mon, 03 Aug 2015 19:21:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1ZMJQf-0000BA-4w; Mon, 03 Aug 2015 12:21:37 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZMJQd-0000Ai-E9 for ding@lists.math.uh.edu; Mon, 03 Aug 2015 12:21:35 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1ZMJQc-0004US-HI for ding@lists.math.uh.edu; Mon, 03 Aug 2015 12:21:35 -0500 Original-Received: from ebox.rath.org ([45.79.69.51]) by quimby.gnus.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ZMJQK-0002Px-L1 for ding@gnus.org; Mon, 03 Aug 2015 19:21:24 +0200 Original-Received: from thinkpad (thinkpad [192.168.12.2]) by ebox.rath.org (Postfix) with ESMTPS id D9E1B27782 for ; Mon, 3 Aug 2015 17:21:14 +0000 (UTC) Original-Received: by thinkpad (Postfix, from userid 1000) id 991A2C2AF9; Mon, 3 Aug 2015 10:21:14 -0700 (PDT) Mail-Copies-To: never Mail-Followup-To: ding@gnus.org In-Reply-To: <87wpxc7mi0.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 03 Aug 2015 17:24:39 +0800") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.4 (gnu/linux) X-Spam-Score: -1.3 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86090 Archived-At: On Aug 03 2015, Eric Abrahamsen wrote: >> If the IMAP server supports the UID EXPUNGE command, the nnimap backend >> currently always expunges deleted articles. >> >> If the IMAP server does not support this command, articles are either >> not expunged at all (nnimap-expunge is nil), or ALL articles that are >> currently flagged as deleted will be expunged when any one article is >> deleted in Gnus. >> >> The attached patch introduces three new settings for nnimap-expunge: >> >> * If nnimap-expunge is 'never, deleted articles are marked with the >> IMAP \\Delete flag but not automatically expunged. >> >> * If nnimap-expunge is 'immediately, deleted articles are immediately >> expunged (this requires the server to support the UID EXPUNGE >> command). >> >> * If nnimap-expunge is 'on-exit, deleted articles are flagged, and all >> flagged articles are expunged when the group is closed. >> >> Note that none of these behaviors is available with the current settings >> (nil / non-nil). >> >> The 'on-exit setting is mostly useful as a safe-guard: as long as the >> group is not closed, article deletions are reversal (either by using a >> different IMAP client, or by exiting Gnus without updating the summary >> buffer). >> >> The 'never setting is not (yet) very useful because Gnus does not >> distinguish between deleted articles and regular articles in the summary >> buffer. However, this will be addressed by a separate patch. > > Hey, I'm trying out the rest of these patches -- I set `nnimap-expunge' > to 'never on an outlook imap account, and the messages still get > (completely) deleted when I use `gnus-summary-delete-article' -- I can > see them vanishing from the webmail interface. This is a little odd > because, with this patch applied, the EXPUNGE command never seems to be > issued, yet away the messages go. Is this perhaps a quirk of outlook? > I'll try it on a local dovecot as well... Some webmail interface automatically issue an EXPUNGE command when you look at a folder. Typically the argument is that it "eliminates potential confusion of the user". Try looking at the mailbox with Thunderbird (it shows deleted messages as crossed-out), or with Gnus and nnimap-hide-expunged set to false (you can't distinguish between deleted and not-deleted in this case, but you can confirm that the ones that you deleted are still there). Best, -Nikolaus --=20 GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB