From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54682 Path: main.gmane.org!not-for-mail From: Lloyd Zusman Newsgroups: gmane.emacs.gnus.general Subject: Re: Unable to delete "References:" lines Date: Wed, 05 Nov 2003 09:05:49 -0500 Organization: FreeBSD/Linux Hippopotamus Preserve Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1068041217 11542 80.91.224.253 (5 Nov 2003 14:06:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2003 14:06:57 +0000 (UTC) Original-X-From: ding-owner+M3223@lists.math.uh.edu Wed Nov 05 15:06:55 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AHOJD-0008P6-00 for ; Wed, 05 Nov 2003 15:06:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AHOIM-0005bC-00; Wed, 05 Nov 2003 08:06:02 -0600 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AHOID-0005b4-00 for ding@lists.math.uh.edu; Wed, 05 Nov 2003 08:05:53 -0600 Original-Received: from asfast.net (hippo.asfast.net [216.182.10.250]) by justine.libertine.org (Postfix) with ESMTP id 7037A3A006C for ; Wed, 5 Nov 2003 08:05:51 -0600 (CST) Original-Received: from localhost (localhost [127.0.0.1]) (uid 0) by asfast.net with local; Wed, 05 Nov 2003 09:05:51 -0500 Original-To: ding@gnus.org X-Face: "!ga1s|?LNLE3MeeeEYs(%LIl9q[xV9!j4#xf4!**BFW_ihlOb;:Slb>)vy>CJM (Katsumi Yamaoka's message of "Tue, 14 Oct 2003 09:14:10 +0900") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54682 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54682 > Hi, > > By a similar reason, I also feel it is inconvenient that I can't > edit the References header. Then I use the following hook: Thank you for this (and I apologize for not replying sooner). I presume this works because deleting the existing references causes Gnus to assume that there are none to preserve, correct? > (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)))))) > >>>>>> In >>>>>> Lloyd Zusman wrote: > >> One more detail: in the case I mentioned below, the exact behavior is >> this: I see the deleted "References:" line reappear if I save the >> message (C-x C-s) before sending. I therefore believe that this >> behavior has something to do with saving drafts. > >> Lloyd Zusman writes: > >>> I'm writing about something I first noticed in the CVS of ognus several >>> months ago, and that I have kept forgetting to mention here until now. >>> >>> I don't keep much of an address book on line, and if I want to send an >>> email to someone to whom I've corresponded before, I often will just >>> take a copy of an old message from that person, respond to it via >>> `gnus-summary-reply-{wide-}with-original', change the subject, delete >>> the "References:" line, and continue with my new message to him or her. >>> >>> But what I've been noticing over the past few months is that when I send >>> the outgoing message, the deleted "References:" line reappears. I >>> assume that this was done for a good reason, probably to help maintain >>> the integrity of message threads, but in cases such as these, I'd like >>> to disable this behavior and send the message out with no "References:" >>> header at all. >>> >>> Is there a variable or hook which controls this behavior? >>> >>> Thanks in advance. -- Lloyd Zusman ljz@asfast.com