[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnus gmail bcc question
From: |
Guido Van Hoecke |
Subject: |
Re: gnus gmail bcc question |
Date: |
Tue, 30 Apr 2013 21:20:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) |
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.