From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76780 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: Tue, 15 Feb 2011 08:59:19 +0100 Message-ID: References: <84ipwmt8hg.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 1297756799 25584 80.91.229.12 (15 Feb 2011 07:59:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 07:59:59 +0000 (UTC) Cc: ding@gnus.org To: david.goldberg6@verizon.net (Dave Goldberg) Original-X-From: ding-owner+M25120@lists.math.uh.edu Tue Feb 15 08:59:48 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 1PpFp4-0005ks-27 for ding-account@gmane.org; Tue, 15 Feb 2011 08:59:46 +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 1PpFot-0007kr-5i; Tue, 15 Feb 2011 01:59:35 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PpFor-0007kT-1L for ding@lists.math.uh.edu; Tue, 15 Feb 2011 01:59:33 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PpFop-00028W-NT for ding@lists.math.uh.edu; Tue, 15 Feb 2011 01:59:32 -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 1PpFoo-0003uQ-Ow for ding@gnus.org; Tue, 15 Feb 2011 08:59:30 +0100 Original-Received: by fxm9 with SMTP id 9so6270429fxm.17 for ; Mon, 14 Feb 2011 23:59:25 -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=Ory1hOazsggvVuJzb6DLKSDkjZ680EJjff/DAVP7Xs4=; b=gG3hGTS/Hw3o6G2QaU/dVI/bcc81G2sgmnHl493D4cIcG9ehfhYKROS9pkDVQsNN9h oq6YKMZOtwsmhnGtl+winh270Nx6eDJYuTevmR6thmCp2Im6gqS7NjkvmgU/n3rndak7 oD0f0Bp/XF1ILVr91dVGZB9GImw4KdTLuUpNY= 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=BO8E3J1vV3A5gqJF94mdtz4HdNElQBqUpkAe46Z/VReXwgmwlLUWnQfYQLuDBsru1f 6+N5RK8bbJeZ0yFHAW6+vDw+6bNOFsjN5ss0MEbAiwAQV8hTKs+l1QYzrfXouGMprI8h OgICHBLnUVHwjV3lz+xB9rDNm1tvYeql0o1cI= Original-Received: by 10.223.72.9 with SMTP id k9mr2899568faj.93.1297756765320; Mon, 14 Feb 2011 23:59:25 -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 o12sm1486343fav.6.2011.02.14.23.59.21 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Feb 2011 23:59:23 -0800 (PST) Mail-Followup-To: david.goldberg6@verizon.net (Dave Goldberg), ding@gnus.org In-Reply-To: <84ipwmt8hg.fsf@davestoy.home> (Dave Goldberg's message of "Mon, 14 Feb 2011 20:03:07 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Spam-Score: -1.6 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76780 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 ? -- Francis