From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73706 Path: news.gmane.org!not-for-mail From: Knut Anders Hatlen Newsgroups: gmane.emacs.gnus.general Subject: Re: Missing marks with nnimap Date: Sat, 30 Oct 2010 11:55:59 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1288432606 17386 80.91.229.12 (30 Oct 2010 09:56:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Oct 2010 09:56:46 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22075@lists.math.uh.edu Sat Oct 30 11:56:45 2010 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 1PC8B3-0006vn-5G for ding-account@gmane.org; Sat, 30 Oct 2010 11:56:45 +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 1PC8Ah-00043S-Po; Sat, 30 Oct 2010 04:56:23 -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 1PC8Af-000438-D7 for ding@lists.math.uh.edu; Sat, 30 Oct 2010 04:56:21 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PC8Aa-0004Lt-5D for ding@lists.math.uh.edu; Sat, 30 Oct 2010 04:56:20 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PC8AZ-0005mK-00 for ; Sat, 30 Oct 2010 11:56:15 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PC8AV-0006iK-6Z for ding@gnus.org; Sat, 30 Oct 2010 11:56:11 +0200 Original-Received: from gw2.mysql.com ([213.136.52.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Oct 2010 11:56:11 +0200 Original-Received: from kahatlen by gw2.mysql.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 30 Oct 2010 11:56:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 59 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: gw2.mysql.com User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (usg-unix-v) Cancel-Lock: sha1:VcDjBGHrFCOzEAhR6TsKq76lRZ4= X-Spam-Score: -1.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73706 Archived-At: --=-=-= Content-Type: text/plain Knut Anders Hatlen writes: > Lars Magne Ingebrigtsen writes: > >> Knut Anders Hatlen writes: >> >>> *nnimap *nntpd** says this after M-g: >> >> [...] >> >>> * OK [PERMANENTFLAGS (%Seen %Deleted %Answered %Forwarded %Redirected %Flagged %Hidden %Draft $MDNSent)] Permanent flags^M >> >> [...] >> >>> * 202 FETCH (FLAGS (%Flagged) UID 1215)^M >> >> Looks OK. What does `G E' on the group after this look like? > > ("mail.autoderby" 3 > ((1 . 1222)) > ((seen (1223 . 1224))) > nil > ((modseq) > (uidvalidity . "6567453") > (active 1012 . 1224) > (permanent-flags %Seen %Deleted %Answered %Forwarded %Redirected %Flagged %Hidden %Draft $MDNSent))) Found it. The server doesn't have \* in PERMANENTFLAGS. And the non-QRESYNC code in nnimap-update-info fails to see that \Flagged is supported because it checks whether (%Flagged 1012 1027 ...) is member of permanent-flags. So it seems it's just missing a call to car before calling memq. The attached patch made the problem go away for me. -- Knut Anders --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=flags.diff diff --git a/lisp/nnimap.el b/lisp/nnimap.el index 8ea5063..7568807 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -1181,7 +1181,8 @@ textual parts.") (setq marks (gnus-info-marks info)) (dolist (type (cdr nnimap-mark-alist)) (when (or (not (listp permanent-flags)) - (memq (assoc (caddr type) flags) permanent-flags) + (memq (car (assoc (caddr type) flags)) + permanent-flags) (memq '%* permanent-flags)) (let ((old-marks (assoc (car type) marks)) (new-marks --=-=-=--