From unknown Wed Jun 18 00:24:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20672 <20672@debbugs.gnu.org> To: bug#20672 <20672@debbugs.gnu.org> Subject: Status: [PATCH] Support hiding deleted IMAP messages Reply-To: bug#20672 <20672@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:24:22 +0000 retitle 20672 [PATCH] Support hiding deleted IMAP messages reassign 20672 emacs,gnus submitter 20672 Nikolaus Rath severity 20672 wishlist tag 20672 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 27 00:29:59 2015 Received: (at submit) by debbugs.gnu.org; 27 May 2015 04:29:59 +0000 Received: from localhost ([127.0.0.1]:57752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxSyc-0001hI-LP for submit@debbugs.gnu.org; Wed, 27 May 2015 00:29:59 -0400 Received: from ebox.rath.org ([23.92.25.96]:44632) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YxSya-0001h9-A5 for submit@debbugs.gnu.org; Wed, 27 May 2015 00:29:57 -0400 Received: from vostro ([192.168.12.4] helo=vostro.rath.org) by ebox.rath.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80) (envelope-from ) id 1YxSyV-000252-Qg; Wed, 27 May 2015 04:29:51 +0000 Received: by vostro.rath.org (Postfix, from userid 1000) id 69B76E74E20; Tue, 26 May 2015 21:29:51 -0700 (PDT) From: Nikolaus Rath To: ding@gnus.org, submit@debbugs.gnu.org Subject: [PATCH] Support hiding deleted IMAP messages Mail-Copies-To: never Mail-Followup-To: ding@gnus.org, submit@debbugs.gnu.org Date: Tue, 26 May 2015 21:29:51 -0700 Message-ID: <87d21m3ao0.fsf@vostro.rath.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Package: gnus Tags: patch Hello, The attached patch introduces a new server variable, nnimap-hide-deleted. If non-nil, articles with the IMAP \Deleted flag will not be included in Summary buffers. This is intended to increase operability with other IMAP mailreaders and the new 'never value for nnimap-expunge (see patch in bug 20670). Thanks for considering. 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 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=nnimap_hide_deleted.diff --- nnimap.el.bak 2015-05-26 19:28:32.453605543 -0700 +++ nnimap.el 2015-05-26 21:10:58.221688253 -0700 @@ -134,6 +134,10 @@ likely value would be \"text/\" to automatically fetch all textual parts.") +(defvoo nnimap-hide-deleted nil + "If non-nil, articles flagged as deleted (using the IMAP +\\Delete flag) will not be shown in the Summary buffer.") + (defgroup nnimap nil "IMAP for Gnus." :group 'gnus) @@ -180,7 +184,7 @@ (nnimap-find-process-buffer nntp-server-buffer)) (defun nnimap-header-parameters () - (format "(UID RFC822.SIZE BODYSTRUCTURE %s)" + (format "(UID FLAGS RFC822.SIZE BODYSTRUCTURE %s)" (format (if (nnimap-ver4-p) "BODY.PEEK[HEADER.FIELDS %s]" @@ -239,12 +243,17 @@ (and (re-search-forward "UID \\([0-9]+\\)" (line-end-position) t) (match-string 1))) - (setq lines nil) + (setq flags + (and (re-search-forward "FLAGS (\\([^)]+\\))" + (line-end-position) + t) + (split-string (match-string 1)))) (setq size (and (re-search-forward "RFC822.SIZE \\([0-9]+\\)" (line-end-position) t) (match-string 1))) + (setq lines nil) (beginning-of-line) (when (search-forward "BODYSTRUCTURE" (line-end-position) t) (let ((structure (ignore-errors @@ -258,20 +267,25 @@ (equal (upcase (nth 1 structure)) "RFC822")) (nth 9 structure) (nth 7 structure))))) - (delete-region (line-beginning-position) (line-end-position)) - (insert (format "211 %s Article retrieved." article)) - (forward-line 1) - (when size - (insert (format "Chars: %s\n" size))) - (when lines - (insert (format "Lines: %s\n" lines))) - ;; Most servers have a blank line after the headers, but - ;; Davmail doesn't. - (unless (re-search-forward "^\r$\\|^)\r?$" nil t) - (goto-char (point-max))) - (delete-region (line-beginning-position) (line-end-position)) - (insert ".") - (forward-line 1))))) + (if (and nnimap-hide-deleted + (member "\\Deleted" flags)) + (delete-region (line-beginning-position) + (or (re-search-forward "^\r$\\|^)\r?$" nil t) + (point-max))) + (delete-region (line-beginning-position) (line-end-position)) + (insert (format "211 %s Article retrieved." article)) + (forward-line 1) + (when size + (insert (format "Chars: %s\n" size))) + (when lines + (insert (format "Lines: %s\n" lines))) + ;; Most servers have a blank line after the headers, but + ;; Davmail doesn't. + (unless (re-search-forward "^\r$\\|^)\r?$" nil t) + (goto-char (point-max))) + (delete-region (line-beginning-position) (line-end-position)) + (insert ".") + (forward-line 1)))))) (defun nnimap-unfold-quoted-lines () ;; Unfold quoted {number} strings. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 01 22:37:02 2015 Received: (at 20672) by debbugs.gnu.org; 2 Jul 2015 02:37:02 +0000 Received: from localhost ([127.0.0.1]:36626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAUN3-0003DS-FB for submit@debbugs.gnu.org; Wed, 01 Jul 2015 22:37:01 -0400 Received: from ebox.rath.org ([23.92.25.96]:36592) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAUN1-0003DH-KB for 20672@debbugs.gnu.org; Wed, 01 Jul 2015 22:37:00 -0400 Received: from vostro ([192.168.12.4] helo=vostro.rath.org) by ebox.rath.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80) (envelope-from ) id 1ZAUN0-0001fs-3h; Thu, 02 Jul 2015 02:36:58 +0000 Received: by vostro.rath.org (Postfix, from userid 1000) id BA9F3EC421D; Wed, 1 Jul 2015 19:36:57 -0700 (PDT) From: Nikolaus Rath To: ding@gnus.org, 20672@debbugs.gnu.org Subject: [PATCH] Support hiding deleted IMAP messages (v2) Mail-Copies-To: never Mail-Followup-To: ding@gnus.org, 20672@debbugs.gnu.org Date: Wed, 01 Jul 2015 19:36:57 -0700 Message-ID: <873817cmk6.fsf@vostro.rath.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 20672 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, The previous patch did not take into account that an IMAP server is free to send the UID, FLAGS and RFC822.SIZE response data items in arbitrary order. This has been fixed in this version of the patch. 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 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=nnimap_hide_deleted.diff --- nnimap.el.bak3 2015-05-26 19:27:53.797971148 -0700 +++ nnimap.el.bak4 2015-07-01 19:20:21.220598632 -0700 @@ -134,6 +134,10 @@ likely value would be \"text/\" to automatically fetch all textual parts.") +(defvoo nnimap-hide-deleted nil + "If non-nil, articles flagged as deleted (using the IMAP +\\Delete flag) will not be shown in the Summary buffer.") + (defgroup nnimap nil "IMAP for Gnus." :group 'gnus) @@ -180,7 +184,7 @@ (nnimap-find-process-buffer nntp-server-buffer)) (defun nnimap-header-parameters () - (format "(UID RFC822.SIZE BODYSTRUCTURE %s)" + (format "(UID FLAGS RFC822.SIZE BODYSTRUCTURE %s)" (format (if (nnimap-ver4-p) "BODY.PEEK[HEADER.FIELDS %s]" @@ -239,12 +243,19 @@ (and (re-search-forward "UID \\([0-9]+\\)" (line-end-position) t) (match-string 1))) - (setq lines nil) + (beginning-of-line) + (setq flags + (and (re-search-forward "FLAGS (\\([^)]+\\))" + (line-end-position) + t) + (split-string (match-string 1)))) + (beginning-of-line) (setq size (and (re-search-forward "RFC822.SIZE \\([0-9]+\\)" (line-end-position) t) (match-string 1))) + (setq lines nil) (beginning-of-line) (when (search-forward "BODYSTRUCTURE" (line-end-position) t) (let ((structure (ignore-errors @@ -258,20 +269,25 @@ (equal (upcase (nth 1 structure)) "RFC822")) (nth 9 structure) (nth 7 structure))))) - (delete-region (line-beginning-position) (line-end-position)) - (insert (format "211 %s Article retrieved." article)) - (forward-line 1) - (when size - (insert (format "Chars: %s\n" size))) - (when lines - (insert (format "Lines: %s\n" lines))) - ;; Most servers have a blank line after the headers, but - ;; Davmail doesn't. - (unless (re-search-forward "^\r$\\|^)\r?$" nil t) - (goto-char (point-max))) - (delete-region (line-beginning-position) (line-end-position)) - (insert ".") - (forward-line 1))))) + (if (and nnimap-hide-deleted + (member "\\Deleted" flags)) + (delete-region (line-beginning-position) + (or (re-search-forward "^\r$\\|^)\r?$" nil t) + (point-max))) + (delete-region (line-beginning-position) (line-end-position)) + (insert (format "211 %s Article retrieved." article)) + (forward-line 1) + (when size + (insert (format "Chars: %s\n" size))) + (when lines + (insert (format "Lines: %s\n" lines))) + ;; Most servers have a blank line after the headers, but + ;; Davmail doesn't. + (unless (re-search-forward "^\r$\\|^)\r?$" nil t) + (goto-char (point-max))) + (delete-region (line-beginning-position) (line-end-position)) + (insert ".") + (forward-line 1)))))) (defun nnimap-unfold-quoted-lines () ;; Unfold quoted {number} strings. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 02 13:14:43 2015 Received: (at 20672) by debbugs.gnu.org; 2 Jul 2015 17:14:43 +0000 Received: from localhost ([127.0.0.1]:37900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAi4Q-0000F4-WD for submit@debbugs.gnu.org; Thu, 02 Jul 2015 13:14:43 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:33681) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAi4O-0000Ev-7q for 20672@debbugs.gnu.org; Thu, 02 Jul 2015 13:14:41 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3mMmHy722tz3hhq1; Thu, 2 Jul 2015 19:14:38 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3mMmHy5n2rzvjDJ; Thu, 2 Jul 2015 19:14:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id grv0plTcIf_p; Thu, 2 Jul 2015 19:14:38 +0200 (CEST) X-Auth-Info: 1/Vf8c1EQHTc65z2TRPWDzc9N11cMSK9tB0BUR7o1XHcfMUlD8Dzc/IZSnytWyGZ Received: from igel.home (ppp-93-104-95-10.dynamic.mnet-online.de [93.104.95.10]) by mail.mnet-online.de (Postfix) with ESMTPA; Thu, 2 Jul 2015 19:14:38 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id C5E212C1F82; Thu, 2 Jul 2015 19:14:37 +0200 (CEST) From: Andreas Schwab To: ding@gnus.org Subject: Re: [PATCH] Support hiding deleted IMAP messages (v2) References: <873817cmk6.fsf@vostro.rath.org> X-Yow: It's OKAY --- I'm an INTELLECTUAL, too. Date: Thu, 02 Jul 2015 19:14:37 +0200 In-Reply-To: <873817cmk6.fsf@vostro.rath.org> (Nikolaus Rath's message of "Wed, 01 Jul 2015 19:36:57 -0700") Message-ID: <878uaytrb6.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20672 Cc: 20672@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Nikolaus Rath writes: > +(defvoo nnimap-hide-deleted nil > + "If non-nil, articles flagged as deleted (using the IMAP > +\\Delete flag) will not be shown in the Summary buffer.") > + The first line of a doc string should be a complete sentence. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 02 22:17:33 2015 Received: (at 20672) by debbugs.gnu.org; 3 Jul 2015 02:17:33 +0000 Received: from localhost ([127.0.0.1]:38121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAqXk-00066Z-86 for submit@debbugs.gnu.org; Thu, 02 Jul 2015 22:17:32 -0400 Received: from ebox.rath.org ([23.92.25.96]:37472) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAqXi-00066R-3Y for 20672@debbugs.gnu.org; Thu, 02 Jul 2015 22:17:30 -0400 Received: from vostro ([192.168.12.4] helo=vostro.rath.org) by ebox.rath.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80) (envelope-from ) id 1ZAqXh-0002IC-6u; Fri, 03 Jul 2015 02:17:29 +0000 Received: by vostro.rath.org (Postfix, from userid 1000) id D0C9FEC44D4; Thu, 2 Jul 2015 19:17:28 -0700 (PDT) From: Nikolaus Rath To: ding@gnus.org, 20672@debbugs.gnu.org Subject: [PATCH] Support hiding deleted IMAP messages (v3) Mail-Copies-To: never Mail-Followup-To: ding@gnus.org, 20672@debbugs.gnu.org Date: Thu, 02 Jul 2015 19:17:28 -0700 Message-ID: <87pp4a9e87.fsf@vostro.rath.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 20672 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, This patch introduces a new server variable, nnimap-hide-deleted. If non-nil, articles with the IMAP \Deleted flag will not be included in Summary buffers. This is intended to increase operability with other IMAP mailreaders and the new 'never value for nnimap-expunge (see patch in bug 20670). Changes in v2: * Take into account that server may send the UID, FLAGS and RFC822.SIZE response data items in arbitrary order Changes in v3: * Made first line of docstring a complete sentence. Thanks for considering, -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 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=nnimap_hide_deleted_v3.diff diff --git a/nnimap.el b/nnimap.el --- a/nnimap.el +++ b/nnimap.el @@ -135,6 +135,11 @@ likely value would be \"text/\" to automatically fetch all textual parts.") +(defvoo nnimap-hide-deleted nil + "Whether to hide deletes messages in summary buffer. +If non-nil, articles flagged as deleted (using the IMAP +\\Delete flag) will not be shown in the Summary buffer.") + (defgroup nnimap nil "IMAP for Gnus." :group 'gnus) @@ -181,7 +186,7 @@ (nnimap-find-process-buffer nntp-server-buffer)) (defun nnimap-header-parameters () - (format "(UID RFC822.SIZE BODYSTRUCTURE %s)" + (format "(UID FLAGS RFC822.SIZE BODYSTRUCTURE %s)" (format (if (nnimap-ver4-p) "BODY.PEEK[HEADER.FIELDS %s]" @@ -240,12 +245,19 @@ (and (re-search-forward "UID \\([0-9]+\\)" (line-end-position) t) (match-string 1))) - (setq lines nil) + (beginning-of-line) + (setq flags + (and (re-search-forward "FLAGS (\\([^)]+\\))" + (line-end-position) + t) + (split-string (match-string 1)))) + (beginning-of-line) (setq size (and (re-search-forward "RFC822.SIZE \\([0-9]+\\)" (line-end-position) t) (match-string 1))) + (setq lines nil) (beginning-of-line) (when (search-forward "BODYSTRUCTURE" (line-end-position) t) (let ((structure (ignore-errors @@ -259,20 +271,25 @@ (equal (upcase (nth 1 structure)) "RFC822")) (nth 9 structure) (nth 7 structure))))) - (delete-region (line-beginning-position) (line-end-position)) - (insert (format "211 %s Article retrieved." article)) - (forward-line 1) - (when size - (insert (format "Chars: %s\n" size))) - (when lines - (insert (format "Lines: %s\n" lines))) - ;; Most servers have a blank line after the headers, but - ;; Davmail doesn't. - (unless (re-search-forward "^\r$\\|^)\r?$" nil t) - (goto-char (point-max))) - (delete-region (line-beginning-position) (line-end-position)) - (insert ".") - (forward-line 1))))) + (if (and nnimap-hide-deleted + (member "\\Deleted" flags)) + (delete-region (line-beginning-position) + (or (re-search-forward "^\r$\\|^)\r?$" nil t) + (point-max))) + (delete-region (line-beginning-position) (line-end-position)) + (insert (format "211 %s Article retrieved." article)) + (forward-line 1) + (when size + (insert (format "Chars: %s\n" size))) + (when lines + (insert (format "Lines: %s\n" lines))) + ;; Most servers have a blank line after the headers, but + ;; Davmail doesn't. + (unless (re-search-forward "^\r$\\|^)\r?$" nil t) + (goto-char (point-max))) + (delete-region (line-beginning-position) (line-end-position)) + (insert ".") + (forward-line 1)))))) (defun nnimap-unfold-quoted-lines () ;; Unfold quoted {number} strings. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 03 10:18:49 2015 Received: (at 20672) by debbugs.gnu.org; 3 Jul 2015 14:18:49 +0000 Received: from localhost ([127.0.0.1]:38828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB1nk-0004dm-8G for submit@debbugs.gnu.org; Fri, 03 Jul 2015 10:18:48 -0400 Received: from linuxpal.mit.edu ([18.62.1.14]:50707) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB1Gf-0003la-Ii for 20672@debbugs.gnu.org; Fri, 03 Jul 2015 09:44:37 -0400 Received: by linuxpal.mit.edu (Postfix, from userid 9545) id EE8C116078; Fri, 3 Jul 2015 09:44:31 -0400 (EDT) From: Greg Troxel To: ding@gnus.org Subject: Re: [PATCH] Support hiding deleted IMAP messages (v3) References: <87pp4a9e87.fsf@vostro.rath.org> OpenPGP: id=098ED60E X-Hashcash: 1:20:150703:ding@gnus.org::ZXZb59f8JxSHRm5H:00000rgF X-Hashcash: 1:20:150703:20672@debbugs.gnu.org::ZXZb59f8JxSHRm5H:00000000000000000000000000000000000000001KhZ Date: Fri, 03 Jul 2015 09:44:28 -0400 In-Reply-To: <87pp4a9e87.fsf@vostro.rath.org> (Nikolaus Rath's message of "Thu, 02 Jul 2015 19:17:28 -0700") Message-ID: User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 20672 X-Mailman-Approved-At: Fri, 03 Jul 2015 10:18:46 -0400 Cc: 20672@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Nikolaus Rath writes: > This patch introduces a new server variable, nnimap-hide-deleted. If > non-nil, articles with the IMAP \Deleted flag will not be included in > Summary buffers. > > This is intended to increase operability with other IMAP mailreaders and > the new 'never value for nnimap-expunge (see patch in bug 20670). I haven't reviewed the patch, but the functionality is needed. I find that on deleting messages with GUI IMAP clients, they are still seen in gnus. I find the deletion notion in IMAP confusing, between move-to-trash and just-marked-deleted-but-keep, and don't really know how the articles end up in the trash folder using the just-mark scheme, but it hasn't bothered me enough to dig in. I do find myself deleting things twice once in $GUI_IMAP, and once in gus. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlWWkbwACgkQH9p66AmO1g6K6ACfS0DFoQxBdimBzAZRy3w0nD9a g2IAn3EEyRdtpzo8sVBhOwrIMKPA9S2Y =glwx -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 26 14:24:53 2017 Received: (at 20672) by debbugs.gnu.org; 26 Jan 2017 19:24:53 +0000 Received: from localhost ([127.0.0.1]:46000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpfB-0003tl-19 for submit@debbugs.gnu.org; Thu, 26 Jan 2017 14:24:53 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:56676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpf8-0003td-L3 for 20672@debbugs.gnu.org; Thu, 26 Jan 2017 14:24:51 -0500 Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWpf6-0006Zl-40; Thu, 26 Jan 2017 20:24:50 +0100 From: Lars Ingebrigtsen To: ding@gnus.org Subject: Re: bug#20672: [PATCH] Support hiding deleted IMAP messages (v2) In-Reply-To: <873817cmk6.fsf@vostro.rath.org> (Nikolaus Rath's message of "Wed, 01 Jul 2015 19:36:57 -0700") Date: Thu, 26 Jan 2017 20:15:11 +0100 Message-ID: <87poj9r5ts.fsf@gnus.org> References: <87d21m3ao0.fsf@vostro.rath.org> <873817cmk6.fsf@vostro.rath.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "hermes.netfonds.no", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Nikolaus Rath writes: > The previous patch did not take into account that an IMAP server is free > to send the UID, FLAGS and RFC822.SIZE response data items in arbitrary > order. This has been fixed in this version of the patch. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20672 Cc: Nikolaus Rath , 20672@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Nikolaus Rath writes: > The previous patch did not take into account that an IMAP server is free > to send the UID, FLAGS and RFC822.SIZE response data items in arbitrary > order. This has been fixed in this version of the patch. [...] > + (if (and nnimap-hide-deleted > + (member "\\Deleted" flags)) > + (delete-region (line-beginning-position) > + (or (re-search-forward "^\r$\\|^)\r?$" nil t) > + (point-max))) Hm... won't this make Gnus think that the articles doesn't exist? So they'll end up in the "unexist tracking" list? I don't think that's correct... I think it would be better to just convey the information up to the Gnus layer, and then Gnus could have a switch to not display these deleted messages. Or perhaps just pretend like all \Deleted messages are \Read? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 26 14:24:47 2017 Received: (at control) by debbugs.gnu.org; 26 Jan 2017 19:24:47 +0000 Received: from localhost ([127.0.0.1]:45997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpf4-0003tT-PS for submit@debbugs.gnu.org; Thu, 26 Jan 2017 14:24:46 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:56669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpf1-0003tH-2o for control@debbugs.gnu.org; Thu, 26 Jan 2017 14:24:43 -0500 Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWpex-0005tK-Lt for control@debbugs.gnu.org; Thu, 26 Jan 2017 20:24:41 +0100 From: Lars Ingebrigtsen To: control@debbugs.gnu.org Subject: control message for bug #20672 Message-ID: <87wpdhr5xf.fsf@totally-fudged-out-message-id> Date: Thu, 26 Jan 2017 20:24:33 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) reassign 20672 emacs,gnus From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 13 04:47:47 2020 Received: (at 20672) by debbugs.gnu.org; 13 Aug 2020 08:47:47 +0000 Received: from localhost ([127.0.0.1]:46810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k68tn-0008Br-6z for submit@debbugs.gnu.org; Thu, 13 Aug 2020 04:47:47 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k68tl-00087s-5s for 20672@debbugs.gnu.org; Thu, 13 Aug 2020 04:47:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+EVASP4Ef4eP9Mt6kNVpWU4C4miUEsqRGBciVjKBSd0=; b=Q6hZOfBF3qMZuWsyDhOmvcvBci +MwXcayoD+sA1WlfZH9URBv4lSJXjVojl0mGeDl0MrjRlBxhWm0z41p/S0FqlDZO8kHL/VBXp/EWf HQIpko8hbOlT1t5dEZ06/pEgF1XIxgYGDViCZ3Y8PGO/Kw6ae+kEsgDq0rSHSSMEf0lg=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k68tb-00047b-Ly; Thu, 13 Aug 2020 10:47:38 +0200 From: Lars Ingebrigtsen To: ding@gnus.org Subject: Re: bug#20672: [PATCH] Support hiding deleted IMAP messages (v2) References: <87d21m3ao0.fsf@vostro.rath.org> <873817cmk6.fsf@vostro.rath.org> <87poj9r5ts.fsf@gnus.org> Date: Thu, 13 Aug 2020 10:47:33 +0200 In-Reply-To: <87poj9r5ts.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 26 Jan 2017 20:15:11 +0100") Message-ID: <87zh6zgcey.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > I think it would be better to just convey the information up to the Gnus > layer, and then Gnus could have a switch to not display these deleted > messages. > > Or perhaps just pretend like all \Del [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20672 Cc: Nikolaus Rath , 20672@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > I think it would be better to just convey the information up to the Gnus > layer, and then Gnus could have a switch to not display these deleted > messages. > > Or perhaps just pretend like all \Deleted messages are \Read? Apparently, that's what we've been doing since 2013: (let* ((unread (gnus-compress-sequence (gnus-set-difference (gnus-set-difference existing (gnus-sorted-union (cdr (assoc '%Seen flags)) (cdr (assoc '%Deleted flags)))) (cdr (assoc '%Flagged flags))))) (read (gnus-range-difference (cons start-article high) unread))) So I think re-handling this (as the patch suggested) should be unnecessary, so I'm closing this bug report. If the problem still exists, please respond to this email and we'll reopen the bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 13 04:47:52 2020 Received: (at control) by debbugs.gnu.org; 13 Aug 2020 08:47:53 +0000 Received: from localhost ([127.0.0.1]:46813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k68ts-0008ET-Iw for submit@debbugs.gnu.org; Thu, 13 Aug 2020 04:47:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k68tr-0008BK-9I for control@debbugs.gnu.org; Thu, 13 Aug 2020 04:47:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=uZWsd0CBNvBahuH9YesR86Ij5lz5uxxn5CWdSBzg9eg=; b=Kit0GQ/NGTMcQmntXiD3aLJTjX IoVfGE+Z229u0RjxgQrJcfYEYQj43FKesw/q3/WrvO+SxlrMEGlI7L264Rsa+Jvx9bYmdSQDcSLyV pE1SkbHPmPZl+ASeOO6I2iDnu/svR6Hsn9SNS4qRCNNDlC2agP7h66s6ls+unS/hkA2g=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k68tj-00047k-ID for control@debbugs.gnu.org; Thu, 13 Aug 2020 10:47:45 +0200 Date: Thu, 13 Aug 2020 10:47:42 +0200 Message-Id: <87y2mjgcep.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #20672 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 20672 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 20672 quit From unknown Wed Jun 18 00:24:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 10 Sep 2020 11:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator