From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87356 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: bug#20672: [PATCH] Support hiding deleted IMAP messages (v2) 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485458787 18684 195.159.176.226 (26 Jan 2017 19:26:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2017 19:26:27 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 20672@debbugs.gnu.org, Nikolaus Rath To: ding@gnus.org Original-X-From: ding-owner+M35576@lists.math.uh.edu Thu Jan 26 20:26:21 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWpgJ-0002uC-75 for ding-account@gmane.org; Thu, 26 Jan 2017 20:26:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1cWpfF-0005Zz-QK; Thu, 26 Jan 2017 13:24:57 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cWpfE-0005ZQ-8M for ding@lists.math.uh.edu; Thu, 26 Jan 2017 13:24:56 -0600 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.87) (envelope-from ) id 1cWpfA-0001Cz-QO for ding@lists.math.uh.edu; Thu, 26 Jan 2017 13:24:56 -0600 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1cWpf9-0001D8-CO for ding@gnus.org; Thu, 26 Jan 2017 20:24:51 +0100 Original-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 In-Reply-To: <873817cmk6.fsf@vostro.rath.org> (Nikolaus Rath's message of "Wed, 01 Jul 2015 19:36:57 -0700") List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87356 Archived-At: 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