Gnus development mailing list
 help / color / mirror / Atom feed
From: david.goldberg6@verizon.net (Dave Goldberg)
To: ding@gnus.org
Subject: Re: How to know a mail is sent with gnus ?
Date: Tue, 15 Feb 2011 17:36:01 -0500	[thread overview]
Message-ID: <844o85ylgu.fsf@davestoy.home> (raw)
In-Reply-To: <m21v39k9t4.fsf@gmail.com> (Francis Moreau's message of "Tue, 15	Feb 2011 08:59:19 +0100")


> david.goldberg6@verizon.net (Dave Goldberg) writes:
>>> Andreas Schwab <schwab@linux-m68k.org> writes:
>>>> Francis Moreau <francis.moro@gmail.com> writes:
>>>> 
>>>>> I'm writing a hook for 'message-send-hook' and I would like to know from
>>>>> this hook if the current message has been sent by Gnus.
>>>> 
>>>> Why do you need to know that?
>>>> 
>> 
>>> Because I have this in my .emacs:
>> 
>>> (setq mail-default-headers
>>> (concat "Bcc: " user-mail-address "\n"))
>> 
>>> that is I want to receive a copy of my emails sent from emacs but not by
>>> gnus itself.
>> 
>>> When writing stuff with Gnus, I prefer to use Gcc header. Therefore when
>>> I'm writing email from Gnus, I want to drop the Bcc header automatically
>>> set.
>> 
>> Perhaps a call to message-remove-header in message-setup-hook will
>> work?

> But isn't that new hook be installed for my whole emacs session ?

Yes, sorry, I should have said gnus-message-setup-hook, which I would hope that other modes that use message do not call.

-- 
Dave Goldberg
david.goldberg6@verizon.net



  reply	other threads:[~2011-02-15 22:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-13 20:07 Francis Moreau
2011-02-13 20:20 ` Tassilo Horn
2011-02-13 21:32   ` Francis Moreau
2011-02-14  7:28     ` Tassilo Horn
2011-02-14  7:55       ` Francis Moreau
2011-02-13 23:51 ` Andreas Schwab
2011-02-14  8:05   ` Francis Moreau
2011-02-15  1:03     ` Dave Goldberg
2011-02-15  7:59       ` Francis Moreau
2011-02-15 22:36         ` Dave Goldberg [this message]
2011-02-19 11:15           ` Francis Moreau

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=844o85ylgu.fsf@davestoy.home \
    --to=david.goldberg6@verizon.net \
    --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).