Gnus development mailing list
 help / color / mirror / Atom feed
* Bad interaction between nnimap + agent + expiry (bug?)
@ 2005-12-13 23:08 Gregory Novak
  2005-12-14 14:29 ` Simon Josefsson
  0 siblings, 1 reply; 6+ messages in thread
From: Gregory Novak @ 2005-12-13 23:08 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-12-14 22:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-13 23:08 Bad interaction between nnimap + agent + expiry (bug?) Gregory Novak
2005-12-14 14:29 ` Simon Josefsson
2005-12-14 16:04   ` Steven E. Harris
2005-12-14 19:08     ` Simon Josefsson
2005-12-14 19:44       ` Steven E. Harris
2005-12-14 22:11         ` Simon Josefsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).