Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: nnimap does not create non-existent groups on expiry (lost mail)
Date: Tue, 07 Jan 2003 00:07:05 +0100	[thread overview]
Message-ID: <ilu7kdhho86.fsf@latte.josefsson.org> (raw)
In-Reply-To: <m31y3qruq9.fsf@fermat.mts.jhu.edu> (Nevin Kapur's message of "Mon, 06 Jan 2003 13:36:30 -0500")

Nevin Kapur <nevin@jhu.edu> writes:

> I've made the following naive change and now nonexistent groups do get
> created on expiry.  Is this the right thing to do?  If so, would
> someone apply the patch?

In theory it is the right thing, but various IMAP server bugs make the
TRYCREATE stuff unreliable, so with your patch I believe nnimap would
have sent a CREATE command for every expired article (which would have
failed in the normal case).  Does the following work instead?  It also
has the feature that no articles are expired if the group could not be
created.  Thanks for debugging this.

Index: nnimap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v
retrieving revision 6.56
diff -u -p -u -w -r6.56 nnimap.el
--- nnimap.el	2002/12/28 18:52:55	6.56
+++ nnimap.el	2003/01/06 23:08:26
@@ -1341,7 +1344,8 @@ function is generally only called when G
 		imap-current-message))
 
 (defun nnimap-expiry-target (arts group server)
-  (unless (eq nnmail-expiry-target 'delete)
+  (when (and (not (eq nnmail-expiry-target 'delete))
+	     (nnimap-request-create-group group server))
     (with-temp-buffer
       (dolist (art arts)
 	(nnimap-request-article art group server (current-buffer))




  reply	other threads:[~2003-01-06 23:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-05  6:24 Nevin Kapur
2003-01-06 18:36 ` Nevin Kapur
2003-01-06 23:07   ` Simon Josefsson [this message]
2003-01-07  3:12     ` Nevin Kapur
2003-01-08  2:55       ` Simon Josefsson
2003-01-08  4:17         ` Lars Magne Ingebrigtsen
2003-01-08  6:10           ` Simon Josefsson
2003-01-08  6:40             ` Lars Magne Ingebrigtsen
2003-01-08  8:52               ` Simon Josefsson
2003-01-08 11:06                 ` Nevin Kapur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ilu7kdhho86.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).