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

david.goldberg6@verizon.net (Dave Goldberg) writes:

>> 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.

Ah, yes indeed that's a good idea, assuming that no other modes call
this hook, but that would be pretty silly I think.

Thanks
-- 
Francis



      reply	other threads:[~2011-02-19 11:15 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
2011-02-19 11:15           ` Francis Moreau [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=m2hbc0b7hj.fsf@gmail.com \
    --to=francis.moro@gmail.com \
    --cc=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).