From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76964 Path: news.gmane.org!not-for-mail From: Francis Moreau Newsgroups: gmane.emacs.gnus.general Subject: Re: How to know a mail is sent with gnus ? Date: Sat, 19 Feb 2011 12:15:36 +0100 Message-ID: References: <84ipwmt8hg.fsf@davestoy.home> <844o85ylgu.fsf@davestoy.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1298114166 29380 80.91.229.12 (19 Feb 2011 11:16:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Feb 2011 11:16:06 +0000 (UTC) Cc: ding@gnus.org To: david.goldberg6@verizon.net (Dave Goldberg) Original-X-From: ding-owner+M25297@lists.math.uh.edu Sat Feb 19 12:16:02 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 1PqknB-0004Wb-7F for ding-account@gmane.org; Sat, 19 Feb 2011 12:16:01 +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 1Pqkn2-00032i-HQ; Sat, 19 Feb 2011 05:15:52 -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 1Pqkmz-00032E-UP for ding@lists.math.uh.edu; Sat, 19 Feb 2011 05:15:49 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Pqkmy-0001n7-EN for ding@lists.math.uh.edu; Sat, 19 Feb 2011 05:15:49 -0600 Original-Received: from mail-fx0-f44.google.com ([209.85.161.44]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Pqkmx-0002DL-BF for ding@gnus.org; Sat, 19 Feb 2011 12:15:47 +0100 Original-Received: by fxm15 with SMTP id 15so941727fxm.17 for ; Sat, 19 Feb 2011 03:15:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:mail-followup-to :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=TprdvuDuBEqt/t0Ez/LK5zPIRpvayaN3/jH/uh5Vljc=; b=umHtvEvOwwE/vN+wK5gJK41VtD2R6DF2VoD6SzV3WqrL2RCMlspa3iwim4SXJIN/KU wxBwAx31fzf/s7Xe8mjrnxzC0Vp3p+Mh0EnbwJsWmdDhTjWUDy8/x9fVbVK/cOPAWJtY xCf4JDyFw37gwySMVOOQYduMobddwldX/alIY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=JlHQmPNj6t5eyTnTeptizOtgYgWS2Z7tDj/U+lda4fgG83/kxCU73Hoahlcqq0UUcG WDbsPQzC/z72jcJkzsWHEy0JLfIvFDRrfg/2MGvu6gA66pkLJ/mBkD+jfHHANKmVu332 64oh/bUPCVFjNy5s0ApgQQK9M4HxxcJnbxGug= Original-Received: by 10.223.100.15 with SMTP id w15mr425553fan.121.1298114141860; Sat, 19 Feb 2011 03:15:41 -0800 (PST) Original-Received: from localhost (au213-1-82-235-205-153.fbx.proxad.net [82.235.205.153]) by mx.google.com with ESMTPS id 17sm1512685far.19.2011.02.19.03.15.39 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 Feb 2011 03:15:40 -0800 (PST) Mail-Followup-To: david.goldberg6@verizon.net (Dave Goldberg), ding@gnus.org In-Reply-To: <844o85ylgu.fsf@davestoy.home> (Dave Goldberg's message of "Tue, 15 Feb 2011 17:36:01 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76964 Archived-At: david.goldberg6@verizon.net (Dave Goldberg) writes: >> 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. 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