Gnus development mailing list
 help / color / mirror / Atom feed
From: Nevin Kapur <nevin@jhu.edu>
Subject: Re: [PATCH] nnmail-fancy-expiry-target
Date: Sun, 28 Jul 2002 12:17:16 -0400	[thread overview]
Message-ID: <m3eldnx1wz.fsf@fermat.mts.jhu.edu> (raw)
In-Reply-To: <ilu7kji30el.fsf@latte.josefsson.org>

Simon Josefsson <jas@extundo.com> writes:

> "Davide G.M.Salvetti" <salve@debian.org> writes:

[...]

>> 1. If the target (nnimap) group where expired articles should go doesn't
>>    already exists, the articles will be deleted instead (with no error
>>    signaled to the user).
>
> Does this patch fix it?
>
> --- nnimap.el.~6.37.~	2002-07-10 18:19:30.000000000 +0200
> +++ nnimap.el	2002-07-26 18:42:11.000000000 +0200
> @@ -1296,6 +1296,8 @@
>  (defun nnimap-expiry-target (arts group server)
>    (unless (eq nnmail-expiry-target 'delete)
>      (with-temp-buffer
> +      (or (imap-mailbox-status group 'UIDVALIDITY)
> +	  (imap-mailbox-create group))
>        (dolist (art (gnus-uncompress-sequence arts))
>  	(nnimap-request-article art group server  (current-buffer))
>  	;; hints for optimization in `nnimap-request-accept-article'

Applying this patch gives the following error each time I exit an
nnimap group which does not use delete as its expiry-target:

Signaling: (error "Buffer  *temp* has no process")
  process-send-string(nil "12 STATUS \"mail/Mailbox\" (UIDVALIDITY)\r\n")
  imap-send-command-1("12 STATUS \"mail/Mailbox\" (UIDVALIDITY)")
  imap-send-command(("STATUS \"" "mail/Mailbox" "\" " "(UIDVALIDITY)") nil)
  imap-send-command-wait(("STATUS \"" "mail/Mailbox" "\" " "(UIDVALIDITY)"))
  imap-mailbox-status("mail/Mailbox" UIDVALIDITY)
  nnimap-expiry-target(nil "mail/Mailbox" "jesse")
  nnimap-request-expire-articles((134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 ...) "mail/Mailbox" "jesse" nil)
  gnus-request-expire-articles((134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 ...) "nnimap+jesse:mail/Mailbox")
  gnus-summary-expire-articles()
  run-hooks(gnus-summary-expire-articles)
  apply(run-hooks gnus-summary-expire-articles)
  gnus-run-hooks(gnus-summary-prepare-exit-hook)
  #<compiled-function (&optional temporary) "...(384)" [gname gnus-article-buffer group quit-config buf buffer gnus-set-global-variables gnus-buffer-live-p mm-destroy-parts nil gnus-kill-save-kill-buffer gnus-async-halt-prefetch gnus-group-quit-config gnus-score-adaptive gnus-score-save gnus-run-hooks gnus-summary-prepare-exit-hook get-buffer buffer-name kill-buffer gnus-cache-possibly-remove-articles gnus-cache-save-buffers gnus-async-prefetch-remove-group gnus-dup-enter-articles gnus-tree-close gnus-cache-write-active nnmail-purge-split-history string-match "^[^:]+:" 0 gnus-exit-group-hook gnus-summary-update-info gnus-close-group gnus-group-jump-to-group gnus-summary-exit-hook gnus-group-group-name gnus-group-next-unread-group 1 gnus-deaden-summary gnus-summary-clear-local-variables bury-buffer pop-to-buffer gnus-configure-windows force gnus-handle-ephemeral-exit gnus-summary-mode gnus-newsgroup-name mode group-point gnus-group-buffer ...] 5 ("/usr/local/src/gnus/lisp/gnus-sum.elc" . 173844) nil>()
  call-interactively(gnus-summary-exit)

-Nevin





  reply	other threads:[~2002-07-28 16:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-19 14:02 nnimap, expiry-target, nnmail-fancy-expiry-targets Davide G. M. Salvetti
2002-07-19 15:24 ` Nevin Kapur
2002-07-20  8:23   ` nnimap-request-expire-articles bug? (Was Re: nnimap, expiry-target, nnmail-fancy-expiry-targets) Davide G. M. Salvetti
2002-07-20 23:34     ` [PATCH] nnmail-fancy-expiry-target Nevin Kapur
2002-07-21  8:54       ` Kai Großjohann
2002-07-21 14:12         ` Nevin Kapur
2002-07-21 15:56           ` Kai Großjohann
2002-07-26 14:30       ` Davide G.M.Salvetti
2002-07-26 15:43         ` Nevin Kapur
2002-07-26 16:43         ` Simon Josefsson
2002-07-28 16:17           ` Nevin Kapur [this message]
2002-07-29 11:46             ` Simon Josefsson
2002-07-29 13:10               ` Nevin Kapur
2002-07-29 11:47     ` nnimap-request-expire-articles bug? (Was Re: nnimap, expiry-target, nnmail-fancy-expiry-targets) Simon Josefsson
2002-07-29 11:58       ` Simon Josefsson
2002-07-19 15:38 ` nnimap, expiry-target, nnmail-fancy-expiry-targets 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=m3eldnx1wz.fsf@fermat.mts.jhu.edu \
    --to=nevin@jhu.edu \
    /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).