From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78618 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap blindly assumes that imap server can store arbitrary flags Date: Sun, 01 May 2011 17:50:26 +0200 Message-ID: <87fwoyzagt.fsf@latte.josefsson.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304265085 12460 80.91.229.12 (1 May 2011 15:51:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 May 2011 15:51:25 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M26920@lists.math.uh.edu Sun May 01 17:51:21 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QGYvY-00040e-WE for ding-account@gmane.org; Sun, 01 May 2011 17:51:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QGYv7-0001F7-Ig; Sun, 01 May 2011 10:50:53 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QGYv6-0001Ew-Jy for ding@lists.math.uh.edu; Sun, 01 May 2011 10:50:52 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QGYv2-00078e-Av for ding@lists.math.uh.edu; Sun, 01 May 2011 10:50:52 -0500 Original-Received: from yxa-v.extundo.com ([213.115.69.139]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QGYuy-0000mh-QA for ding@gnus.org; Sun, 01 May 2011 17:50:44 +0200 Original-Received: from latte.josefsson.org (c80-216-4-108.bredband.comhem.se [80.216.4.108]) (authenticated bits=0) by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p41FoQaQ003720 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sun, 1 May 2011 17:50:28 +0200 OpenPGP: id=B565716F; url=http://josefsson.org/key.txt Mail-Copies-To: nobody X-Hashcash: 1:22:110501:ding@gnus.org::n4Sn/5nXH6HAo7XB:62TX In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 01 May 2011 16:54:22 +0200") User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.2 (gnu/linux) X-Spam-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00, DATE_IN_FUTURE_96_XX,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com X-Virus-Scanned: clamav-milter 0.97 at yxa-v X-Virus-Status: Clean X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78618 Archived-At: Lars Magne Ingebrigtsen writes: > James Cloos writes: > >> I see this kind of error, lately, when I ?-tick an article: >> >> ,---- >> | 238728 UID STORE 4467 +FLAGS.SILENT (gnus-dormant) >> | 238728 BAD invalid flag list to STORE command >> `---- >> >> Gnus needs to store its own flags in .newsrc.eld. > > It does store these flags in .newsrc.eld. But I guess sending flags > that the server don't understand to the server is kinda rude? But does > it matter? Gnus should only send it to the server if either gnus-dormant is mentioned as a PERMANENTFLAGS, or more likely, \* is part of the server-provided PERMANENTFLAGS. See its documentation: PERMANENTFLAGS Followed by a parenthesized list of flags, indicates which of the known flags the client can change permanently. Any flags that are in the FLAGS untagged response, but not the PERMANENTFLAGS list, can not be set permanently. If the client attempts to STORE a flag that is not in the PERMANENTFLAGS list, the server will either ignore the change or store the state change for the remainder of the current session only. The PERMANENTFLAGS list can also include the special flag \*, which indicates that it is possible to create new keywords by attempting to store those flags in the mailbox. /Simon