From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76807 Path: news.gmane.org!not-for-mail From: david.goldberg6@verizon.net (Dave Goldberg) Newsgroups: gmane.emacs.gnus.general Subject: Re: How to know a mail is sent with gnus ? Date: Tue, 15 Feb 2011 17:36:01 -0500 Message-ID: <844o85ylgu.fsf@davestoy.home> References: <84ipwmt8hg.fsf@davestoy.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297809392 4571 80.91.229.12 (15 Feb 2011 22:36:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 22:36:32 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25146@lists.math.uh.edu Tue Feb 15 23:36:28 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PpTVT-0004M6-Nl for ding-account@gmane.org; Tue, 15 Feb 2011 23:36:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PpTVP-0003bW-M2; Tue, 15 Feb 2011 16:36:23 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PpTVO-0003bB-16 for ding@lists.math.uh.edu; Tue, 15 Feb 2011 16:36:22 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PpTVN-00025H-4m for ding@lists.math.uh.edu; Tue, 15 Feb 2011 16:36:21 -0600 Original-Received: from vms173001pub.verizon.net ([206.46.173.1]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PpTVM-0002lY-7R for ding@gnus.org; Tue, 15 Feb 2011 23:36:20 +0100 Original-Received: from davestoy.home.verizon.net ([unknown] [173.48.216.252]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LGO0021LK40DY54@vms173001.mailsrvcs.net> for ding@gnus.org; Tue, 15 Feb 2011 16:36:02 -0600 (CST) X-Face: W!bie|rYVd43O:2CkHTb*~s5}Yzx30X<@6Tq_bnP56Hp!xX4sVl4tgYRirjRcke\wfY!JJ9 i?]VIUJicJzq2\!3%7$5R%wi!R[.]Va97q In-reply-to: (Francis Moreau's message of "Tue, 15 Feb 2011 08:59:19 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.4.22 (linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76807 Archived-At: > david.goldberg6@verizon.net (Dave Goldberg) writes: >>> Andreas Schwab writes: >>>> Francis Moreau 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