From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: [PATCH] Make message-insert-citation-line works with nnrss groups
Date: Fri, 15 Sep 2006 08:57:32 +0900 [thread overview]
Message-ID: <b4m7j06c87n.fsf@jpl.org> (raw)
In-Reply-To: <87ejuekzhm.fsf@onosendai.org>
>>>>> In <87ejuekzhm.fsf@onosendai.org> Andrea Russo wrote:
> There is a bug in `message-insert-citation-line' that happens when
> trying to reply to an article in a nnrss group.
> Various blogging software doesn't set a `From' header in blog posts,
> so when gnus tries to cite the author of the post, it hits a `Wrong
> type argument' error.
I agree that's really a bug.
> This patch tries to fix this.
[...]
> +2006-09-14 Andrea Russo <rast4ndy@gmail.com>
> +
> + * message.el (message-insert-citation-line): Check if the from header
> + is nil. This may happens in articles from nnrss groups.
In No Gnus, `message-insert-formated-citation-line' which is
another candidate to `message-citation-line-function' should be
fixed as well. Furthermore, any function that a user specified
to that variable should suppose `From' might not be present in
the `message-reply-headers' variable. Instead, how about making
`From' default to `nobody'? Here's another patch to Gnus v5.11:
--- message.el~ 2006-09-05 21:59:23 +0000
+++ message.el 2006-09-14 23:55:26 +0000
@@ -3280,7 +3280,7 @@
(message-narrow-to-head-1)
(vector 0
(or (message-fetch-field "subject") "none")
- (message-fetch-field "from")
+ (or (message-fetch-field "from") "nobody")
(message-fetch-field "date")
(message-fetch-field "message-id" t)
(message-fetch-field "references")
@@ -3329,7 +3329,7 @@
(message-narrow-to-head-1)
(vector 0
(or (message-fetch-field "subject") "none")
- (message-fetch-field "from")
+ (or (message-fetch-field "from") "nobody")
(message-fetch-field "date")
(message-fetch-field "message-id" t)
(message-fetch-field "references")
next prev parent reply other threads:[~2006-09-14 23:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-14 19:41 Andrea Russo
2006-09-14 23:57 ` Katsumi Yamaoka [this message]
2006-09-16 6:52 ` Katsumi Yamaoka
2006-09-16 10:50 ` Andrea Russo
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=b4m7j06c87n.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=ding@gnus.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).