From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Guido Van Hoecke Newsgroups: gmane.emacs.help Subject: Re: gnus gmail bcc question Date: Tue, 30 Apr 2013 21:20:47 +0200 Message-ID: References: <87fvy8dt27.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1367349677 2023 80.91.229.3 (30 Apr 2013 19:21:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Apr 2013 19:21:17 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tassilo Horn , Ruben Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 30 21:21:16 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UXG6z-0002gv-Nv for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Apr 2013 21:21:13 +0200 Original-Received: from localhost ([::1]:37949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXG6z-0002n2-AT for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Apr 2013 15:21:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXG6g-0002ix-H5 for help-gnu-emacs@gnu.org; Tue, 30 Apr 2013 15:20:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXG6f-0001EK-5F for help-gnu-emacs@gnu.org; Tue, 30 Apr 2013 15:20:54 -0400 Original-Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:49477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXG6e-0001Dv-Ah; Tue, 30 Apr 2013 15:20:52 -0400 Original-Received: by mail-wg0-f50.google.com with SMTP id m15so792119wgh.17 for ; Tue, 30 Apr 2013 12:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=J5mNrQgtT3G87P7aXlnpOKPDkQNnm74rZxbHRDecN+E=; b=CDL6GkciNDqaVm9CPVCDyI5lPSLW76jmax9/Uji+zje4We4Kl//R74ZD/8PLT8/UP8 Ok2g0+8KdeF0cNfA8ThA4i3LCbkwlSgGE/AaOFYnlVpfSHHVZJKoOaJjXzvXNI85QfXu H4c8yRhEaQ/TeChpi1YPIcqdfr0FUAluM68Mm0bpgbFjnERxBlntUWEbWQtaH/CsELv3 V/F0SNjV7xGXUPG7nshUkmOeUI6LbPqN0japOun9+VTfnAvBcfFT2QOo3UJoiERgFE1q /nWoMqKnLvPMmN/XfmknLLm74vDkJZnTH9XF1rxoSZEcEYdXJjBJsB8rBaRLt9TwKalj HUYQ== X-Received: by 10.194.58.243 with SMTP id u19mr65732312wjq.47.1367349651192; Tue, 30 Apr 2013 12:20:51 -0700 (PDT) Original-Received: from zac.local.vanhoecke.org (78-23-197-126.access.telenet.be. [78.23.197.126]) by mx.google.com with ESMTPSA id k5sm31027966wiy.5.2013.04.30.12.20.49 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 30 Apr 2013 12:20:50 -0700 (PDT) In-Reply-To: <87fvy8dt27.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Tue, 30 Apr 2013 15:52:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90435 Archived-At: Hi Tassilo and Ruben, Thanks for your help. >> I always send a blind copy to myself in order to attach a specific >> label to my messages, e.g. send a Bcc: guivho+emacs@gmail.com to >> attach the 'emacs' label to that message and have it automagically >> appearing in my emacs maul folder. > > I use Gnus gcc-self parameter for exactly the same purpose: > > (setq gnus-parameters > `((,(rx "nnimap+") > ;; Place a copy of sent mail in the group I'm writing from... > (gcc-self . t)) > > (,(rx "nnimap+Fastmail:INBOX.mailinglists.") > ;; ...except for mailing list groups > (gcc-self . "nnimap+Fastmail:INBOX.Sent Items")))) > Here's what I now have in my .gnus: #+BEGIN_SRC elisp ;; Add Bcc header to the message buffer ;; The Bcc header is needed to ensure that I always get a copy of the message. ;; This copy will not trigger the sentmail filter as the Bcc: header is not ;; present in the received mail. ;; Adding the Gcc: header does trigger the filter. (setq message-default-mail-headers "Bcc: myname+sentmail@gmail.com\nGcc: sentmail\n") ;; Add Gcc header to attach the label of the 'originating' folder (setq gnus-parameters '( (".*" (gcc-self . t) ))) #+END_SRC It achieves what I want. With kind regards Guido -- You will become rich and famous unless you don't.