Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: Unable to delete "References:" lines
Date: Thu, 06 Nov 2003 07:54:57 +0900	[thread overview]
Message-ID: <b9yad7axw72.fsf@jpl.org> (raw)
In-Reply-To: <m3r80m6hc2.fsf@asfast.com>

>>>>> In <m3r80m6hc2.fsf@asfast.com>
>>>>>	Lloyd Zusman <ljz@asfast.com> wrote:

> I presume this works because deleting the existing references causes
> Gnus to assume that there are none to preserve, correct?

Exactly.  You can edit them (for example, delete except the last ID)
and can also delete the header whole.

>> (add-hook
>>  'message-setup-hook
>>  (lambda nil
>>    ;; Generate the References header and clear the corresponding
>>    ;; elements in the `message-reply-headers' buffer-local variable.
>>    (let ((references (message-make-references))
>> 	 reference)
>>      (if references
>> 	 (progn
>> 	   (mail-header-set-message-id message-reply-headers nil)
>> 	   (mail-header-set-references message-reply-headers nil)
>> 	   (setq references (split-string references))
>> 	   (goto-char (point-min))
>> 	   (insert "References: ")
>> 	   (while references
>> 	     (setq reference (car references)
>> 		   references (cdr references))
>> 	     (if (> (+ (current-column) (length reference)) 78)
>> 		 (progn
>> 		   (delete-char -1)
>> 		   (insert "\n ")))
>> 	     (insert reference (if references
>> 				   " "
>> 				 "\n")))
>> 	   (message-sort-headers))))))
-- 
Katsumi Yamaoka <yamaoka@jpl.org>



  reply	other threads:[~2003-11-05 22:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-11 13:11 Lloyd Zusman
2003-10-11 14:13 ` Lloyd Zusman
2003-10-14  0:14   ` Katsumi Yamaoka
2003-11-05 14:05     ` Lloyd Zusman
2003-11-05 22:54       ` Katsumi Yamaoka [this message]
2003-11-06  0:50         ` Lloyd Zusman
2003-10-13 17:59 ` Mark Thomas
2003-10-16 14:01   ` Lars Magne Ingebrigtsen
2003-11-05 14:06   ` Lloyd Zusman

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=b9yad7axw72.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).