From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/4320 Path: main.gmane.org!not-for-mail From: jvinson@cheux.ecs.umass.edu (Jack Vinson) Newsgroups: gmane.emacs.gnus.general Subject: Re: [sgnus 0.18] gnus-summary-resend-message and mail-self-blind Date: 08 Dec 1995 15:37:00 -0500 Organization: University of Massachusetts Sender: jvinson@cheux.ecs.umass.edu Message-ID: References: <55vinvjjxa.fsf@galil.austnsc.tandem.com> <55ybsqkrcr.fsf@galil.austnsc.tandem.com> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035145081 29146 80.91.224.250 (20 Oct 2002 20:18:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:18:01 +0000 (UTC) Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by miranova.com (8.6.11/8.6.9) with ESMTP id NAA23358 for ; Fri, 8 Dec 1995 13:37:25 -0800 Original-Received: from cheux.ecs.umass.edu (cheux.ecs.umass.edu [128.119.82.11]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Fri, 8 Dec 1995 21:42:29 +0100 Original-Received: by cheux.ecs.umass.edu (5.65/DEC-Ultrix/4.3) id AA23431; Fri, 8 Dec 1995 15:37:11 -0500 Original-To: ding@ifi.uio.no In-Reply-To: larsi@ifi.uio.no's message of 08 Dec 1995 09:10:09 +0100 Original-Lines: 39 Xref: main.gmane.org gmane.emacs.gnus.general:4320 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:4320 >>>>> "LMI" == Lars Magne Ingebrigtsen writes: LMI> Gnus calls `sendmail-send-it' which picks out the "Resent-To" header LMI> and passes that as an explicit delivery address to sendmail. So LMI> sendmail doesn't sniff the headers itself. This is a problem when one has mail-send-hooks defined which interact with the user. I am thinking of ispell-message, since I got caught with that one. I recommend placing a wrapper (let ((mail-send-hook nil)) ...) around the function that calls mail-send-hooks. For now, here is a piece of advice that simply turns off the hook before calling the function. (defadvice gnus-summary-resend-message (around gnus-resend-advice act comp) "Turn off mail-send-hooks when resending mail. Assumes nothing extra needs to be done to the message as it goes out." (let ((mail-send-hook nil) ) ad-do-it )) The same thing goes for gnus-inews-news if one has, for example, ispell-message in both the news-inews-hook and the mail-send-hook. I've got a piece of advice that fixes this too, if anyone is interested: (defadvice gnus-inews-news (around gnus-inews-news-advice act comp) "Turn off ispell-message when posting news, in case there is a To: header in the posting." (let ((mail-send-hook (remove 'ispell-message mail-send-hook)) ) ad-do-it )) -- __o __o __o __o __o __o Jack Vinson _`\<_`\<_ _`\<_ _`\<_`\<_ _`\<_ Captain Jack - Purple Puddle Eater (_)/---/(_) (_)/(_) (_)/---/(_) (_)/(_) Sunderland, MA jvinson@cheux.ecs.umass.edu