Gnus development mailing list
 help / color / mirror / Atom feed
From: jvinson@cheux.ecs.umass.edu (Jack Vinson)
Subject: Re: [sgnus 0.18] gnus-summary-resend-message and mail-self-blind
Date: 08 Dec 1995 15:37:00 -0500	[thread overview]
Message-ID: <woybsnqolv.fsf@cheux.ecs.umass.edu> (raw)
In-Reply-To: larsi@ifi.uio.no's message of 08 Dec 1995 09:10:09 +0100

>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@ifi.uio.no> 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             <http://www.cis.upenn.edu/~vinson/>


      parent reply	other threads:[~1995-12-08 20:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-12-05 21:10 Sten Drescher
1995-12-05 22:27 ` David K}gedal
1995-12-06 17:57   ` Sten Drescher
1995-12-08  8:10     ` Lars Magne Ingebrigtsen
1995-12-08 17:27       ` Sten Drescher
1995-12-08 20:37       ` Jack Vinson [this message]

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=woybsnqolv.fsf@cheux.ecs.umass.edu \
    --to=jvinson@cheux.ecs.umass.edu \
    /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).