From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86088 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] nnimap: enable additional expunge options Date: Mon, 03 Aug 2015 17:24:39 +0800 Message-ID: <87wpxc7mi0.fsf@ericabrahamsen.net> References: <87oal63goc.fsf@vostro.rath.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438593948 13566 80.91.229.3 (3 Aug 2015 09:25:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Aug 2015 09:25:48 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34322@lists.math.uh.edu Mon Aug 03 11:25:37 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 1ZMC00-00066c-Se for ding-account@gmane.org; Mon, 03 Aug 2015 11:25:37 +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 1ZMBzM-0006Ky-3u; Mon, 03 Aug 2015 04:24:56 -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 1ZMBzL-0006Km-0C for ding@lists.math.uh.edu; Mon, 03 Aug 2015 04:24:55 -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 1ZMBzG-0001n9-Vy for ding@lists.math.uh.edu; Mon, 03 Aug 2015 04:24:54 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1ZMBzF-0007vM-2o for ding@gnus.org; Mon, 03 Aug 2015 11:24:49 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZMBzD-0005tR-Fr for ding@gnus.org; Mon, 03 Aug 2015 11:24:47 +0200 Original-Received: from 221.220.62.166 ([221.220.62.166]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Aug 2015 11:24:47 +0200 Original-Received: from eric by 221.220.62.166 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Aug 2015 11:24:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 45 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 221.220.62.166 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:Tq/j36QqfPdLhhx//w3tWVJ9a6Y= X-Spam-Score: 0.0 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86088 Archived-At: Nikolaus Rath writes: > Hello, > > 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... E