From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61524 Path: news.gmane.org!not-for-mail From: Gregory Novak Newsgroups: gmane.emacs.gnus.general Subject: Bad interaction between nnimap + agent + expiry (bug?) Date: Tue, 13 Dec 2005 15:08:46 -0800 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134515965 24728 80.91.229.2 (13 Dec 2005 23:19:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2005 23:19:25 +0000 (UTC) Original-X-From: ding-owner+m10056@lists.math.uh.edu Wed Dec 14 00:19:21 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmJOt-0004D2-B7 for ding-account@gmane.org; Wed, 14 Dec 2005 00:17:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EmJOm-0003dN-00; Tue, 13 Dec 2005 17:17:32 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EmJGT-0003d7-00 for ding@lists.math.uh.edu; Tue, 13 Dec 2005 17:08:57 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EmJGQ-0001WA-KS for ding@lists.math.uh.edu; Tue, 13 Dec 2005 17:08:56 -0600 Original-Received: from santo.ucolick.org ([128.114.23.204] helo=smtp.ucolick.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EmJGO-0002bZ-00 for ; Wed, 14 Dec 2005 00:08:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by smtp.ucolick.org (Postfix) with ESMTP id 4D50F5D717 for ; Tue, 13 Dec 2005 15:08:48 -0800 (PST) Original-Received: from euterpe.local (69-12-135-116.dsl.static.sonic.net [69.12.135.116]) by smtp.ucolick.org (Postfix) with ESMTP id 9870811416 for ; Tue, 13 Dec 2005 15:08:47 -0800 (PST) Original-To: gnus-devel User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61524 Archived-At: I am using Gnus to read e-mail via the nnimap backend. When I mark an email as expirable in my INBOX and then quit the group, it gets filed into a folder with the name recd-mail-2005-12 (for example; code attached below). This works as I expect it when I'm talking to the IMAP server directly (gnus-agent is "plugged"). That is, the expired messages end up in the group recd-mail-2005-12 marked 'O'. However, I would like to be able to read e-mail when not connected to the internet, and I've found that reading mail via the agent is more pleasant in that there are fewer annoying pauses while Gnus talks to the imap server. Therefore I would like to use the agent. The problem is that when I: 1) 'J j' to "unplug" the agent 2) Enter a group, hit 'E' to expire some messages, then quit the group 3) 'J j' to "plug" the agent 4) 'J Y' to synchronize agent flags with the server 5) Enter the group in question and then quit it (so that expiry runs its course) I would like for the expired messages to end up in recd-mail-2005-12 with the mark 'O'. What actually happens is that they end up in recd-mail-2005-12 marked 'E'. I would call this a bug but I'm willing to entertain the notion that there's some sublime logic to what Gnus is doing. I've spent most of today stepping through various gnus functions, trying to figure out why on Earth messages that were marked as expiriable while the agent was unplugged should be treated differently from messages that were marked as expirable when talking to the imap server. I've had no success. Two reasonable candidates that failed were: 1) the value of gnus-preserve-flags makes no difference 2) the (when (and (gnus-agent ... line at the end of gnus-request-accept-article in gnus-int.el seemed like a likely place for the funny business, but commenting it out made no difference. So, a few questions: 1) Why is this happening? 2) How can I make it stop? 3) Is the expiry information stored within Gnus or on the imap server? 4) What is the 'cannonical' way to find out what flags are attached to a given message? (This was a major sticking point when trying to step through the various functions... I would like to be able to see exactly where the 'expired' flag was set, but couldn't seem to get reasonable answers. That is, gnus-article-mark returned some value even if the message number I gave didn't exist, and gnus-summary-article-mark only returned non-nil for the message in question after the whole expiry process was done and I had quit and re-entered the group recd-mail-2005-12). Ok, that's it. Thanks for any guidance/solutions. Greg