From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45747 Path: main.gmane.org!not-for-mail From: Nevin Kapur Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] nnmail-fancy-expiry-target Date: Sat, 20 Jul 2002 19:34:07 -0400 Organization: Mathematical Sciences, The Johns Hopkins University Sender: owner-ding@hpc.uh.edu Message-ID: References: <87sn2fiznh.fsf@hal.Olympus.INVALID> <87eldyajuu.fsf@hal.Olympus.INVALID> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1027208336 30370 127.0.0.1 (20 Jul 2002 23:38:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 20 Jul 2002 23:38:56 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17W3oM-0007tj-00 for ; Sun, 21 Jul 2002 01:38:55 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17W3kA-0000ex-00; Sat, 20 Jul 2002 18:34:34 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 20 Jul 2002 18:34:59 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id SAA16250 for ; Sat, 20 Jul 2002 18:34:46 -0500 (CDT) Original-Received: (qmail 8474 invoked by alias); 20 Jul 2002 23:34:13 -0000 Original-Received: (qmail 8469 invoked from network); 20 Jul 2002 23:34:13 -0000 Original-Received: from main.gmane.org (80.91.224.249) by gnus.org with SMTP; 20 Jul 2002 23:34:13 -0000 Original-Received: from list by main.gmane.org with local (Exim 3.33 #1 (Debian)) id 17W3ja-0007lt-00 for ; Sun, 21 Jul 2002 01:33:58 +0200 Original-To: ding@gnus.org X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.33 #1 (Debian)) id 17W3ja-0007ll-00 for ; Sun, 21 Jul 2002 01:33:58 +0200 Original-Path: not-for-mail Original-Newsgroups: gmane.emacs.ding Original-Lines: 39 Original-NNTP-Posting-Host: fermat.mts.jhu.edu Original-X-Trace: main.gmane.org 1027208038 28851 128.220.17.18 (20 Jul 2002 23:33:58 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Sat, 20 Jul 2002 23:33:58 +0000 (UTC) X-Face: #i!d%y+1tilG}1ua9z&9waMLqE>H+;pUwWFetZe]4uWiv;VE:GHLnT1\Gj]>l^(]R#}sD@E"(@?vMv,yb@`?32;i~D$6x6m*%!3gPyp-rb$}.%QpxZ!3Y+jESN5[s7SL_68Sc`Aek)A$M|h++b/2VjR.k+Tw4X+0a%:K-kcUeMZ(rs?}v\eG({5J&IPS Mail-Copies-To: never User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Honest Recruiter, i686-pc-linux) Cancel-Lock: sha1:J75SeTpXKvgJBBelfA8EKuaDlxY= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45747 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45747 "Davide G. M. Salvetti" writes: [...] > Since we have an expiry-target in this group, nnmail-expiry-target-group > gets called in the (possibly empty because no such article exists) > buffer which results from nnimap-request-article, for each (possibly non > existent) article in the list. The patch I posted yesterday will work around this by ignoring such empty buffers and more generally, non-existent headers. I'm posting it again with a ChangeLog. Could someone with commit privileges please apply it? 2002-07-20 Nevin Kapur * nnmail.el (nnmail-fancy-expiry-target): Assume empty header if it doesn't exist. Index: lisp/nnmail.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnmail.el,v retrieving revision 6.46 diff -u -r6.46 nnmail.el --- lisp/nnmail.el 2002/07/02 16:06:57 6.46 +++ lisp/nnmail.el 2002/07/19 15:49:55 @@ -1770,7 +1770,9 @@ (setq target (format-time-string (caddr regexp-target-pair) date))) ((and (not (equal header 'to-from)) (string-match (cadr regexp-target-pair) - (message-fetch-field header))) + (or + (message-fetch-field header) + ""))) (setq target (format-time-string (caddr regexp-target-pair) date))))))) -Nevin