Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: info-gnus-english@gnu.org
Subject: Re: nnmail-fancy-expiry-target problems
Date: Thu, 18 Oct 2007 14:51:42 +0900	[thread overview]
Message-ID: <b4mprzdezrl.fsf@jpl.org> (raw)
In-Reply-To: <mailman.2213.1192650770.18990.info-gnus-english@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 523 bytes --]

>>>>> Austin Frank wrote:

> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   string-match(nil "\"John Q. Public\" <jqpublic@MIT.EDU>")
>   nnmail-fancy-expiry-target("mail.academic")

You may possibly be the first person who tried using `to-from'
and `nnmail-fancy-expiry-target' ever since it was introduced in
December, 2001.  IIUC, this is a bug that arises in the case
where `message-dont-reply-to-names' is nil, though it is likely
to default to nil in most Gnus users.  Could you try this patch?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 686 bytes --]

--- nnmail.el~	2007-10-04 21:53:35 +0000
+++ nnmail.el	2007-10-18 05:49:39 +0000
@@ -1910,8 +1910,10 @@
        ;; To or From header
        ((and (equal header 'to-from)
 	     (or (string-match (cadr regexp-target-pair) from)
-		 (and (string-match (message-dont-reply-to-names) from)
-		      (string-match (cadr regexp-target-pair) to))))
+		 (and (string-match (cadr regexp-target-pair) to)
+		      (let ((rmail-dont-reply-to-names
+			     (message-dont-reply-to-names)))
+			(equal (rmail-dont-reply-to from) "")))))
 	(setq target (format-time-string (caddr regexp-target-pair) date)))
        ((and (not (equal header 'to-from))
 	     (string-match (cadr regexp-target-pair)

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

  parent reply	other threads:[~2007-10-18  5:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-17 17:36 Austin Frank
2007-10-17 18:52 ` Reiner Steib
2007-10-17 19:52   ` Austin Frank
     [not found]   ` <mailman.2213.1192650770.18990.info-gnus-english@gnu.org>
2007-10-18  5:51     ` Katsumi Yamaoka [this message]
2007-10-18 22:30       ` Austin Frank
     [not found]       ` <mailman.2270.1192746661.18990.info-gnus-english@gnu.org>
2007-10-18 23:16         ` Katsumi Yamaoka

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=b4mprzdezrl.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=info-gnus-english@gnu.org \
    /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).