all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gnus gmail bcc question
@ 2013-04-29 16:46 Guido Van Hoecke
  2013-04-29 21:58 ` eqyiel
  2013-04-30 13:52 ` Tassilo Horn
  0 siblings, 2 replies; 6+ messages in thread
From: Guido Van Hoecke @ 2013-04-29 16:46 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I like the gmail web interface and use it for all my mail reading.

I never liked the gmail editor, so I used "It's all text" to write my
messages within emacs. This solution was satisfactory until the latest
gmail editor, which no longer uses a textbox for the mail.

So I configured gnus and bbdb, and now I am happy to create and send
gmail with gnus.

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.

So here's my question: when bcc'ing from within gnus, the label is not
attached. This is caused by the absence of a Bcc: header in the received
message. This header (when sent from gmail) contains the email adres
that triggers my gmail filter to assign the corresponding label.

In fact, the bcc address 'guivho+emacs@gnmail.com' is not in the mail
received by gmail, so the filter can not work

Is it possible to tell gnus to generate and send a BCC: header? I have
perused the gnus manual as well as the net without success. It probably
is, but I have not been able to find a setting to control that.

Thanks in advance,

Guido

--
Lavish spending can be disastrous.
Don't buy any lavishes for a while.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gnus gmail bcc question
  2013-04-29 16:46 gnus gmail bcc question Guido Van Hoecke
@ 2013-04-29 21:58 ` eqyiel
  2013-04-30  6:39   ` Guido Van Hoecke
  2013-04-30 13:52 ` Tassilo Horn
  1 sibling, 1 reply; 6+ messages in thread
From: eqyiel @ 2013-04-29 21:58 UTC (permalink / raw)
  To: Guido Van Hoecke; +Cc: help-gnu-emacs

Hi Guido,

You just need to customize the variable message-default-mail-headers.

;; add Cc and Bcc headers to the message buffer
(setq message-default-mail-headers "Cc: \nBcc: \n")

Kind regards,

Ruben



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gnus gmail bcc question
  2013-04-29 21:58 ` eqyiel
@ 2013-04-30  6:39   ` Guido Van Hoecke
  2013-04-30 10:00     ` eqyiel
  0 siblings, 1 reply; 6+ messages in thread
From: Guido Van Hoecke @ 2013-04-30  6:39 UTC (permalink / raw)
  To: eqyiel; +Cc: help-gnu-emacs

Hi Ruben,

eqyiel@gmail.com writes:

> Hi Guido,
>
> You just need to customize the variable message-default-mail-headers.
>
> ;; add Cc and Bcc headers to the message buffer
> (setq message-default-mail-headers "Cc: \nBcc: \n")

I have this variable set to show the desired Bcc header. The mail has
the header when sending it from the buffer. But it does not have this
header when gmail receives it, at least it is not visible when looking
at the message with the 'Show original' button of gmail.

And that is why my filters do not work when sending from gnus. The
filter text (ie the +something) text is completely absent from the
received mail.

So basically I want the Bcc: header to be sent to gmail too.

With kind regards,



Guido

--
	A housewife, an accountant and a lawyer were asked to add 2 and 2.
	The housewife replied, "Four!".
	The accountant said, "It's either 3 or 4.  Let me run those figures
through my spreadsheet one more time."
	The lawyer pulled the drapes, dimmed the lights and asked in a
hushed voice, "How much do you want it to be?"



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gnus gmail bcc question
  2013-04-30  6:39   ` Guido Van Hoecke
@ 2013-04-30 10:00     ` eqyiel
  0 siblings, 0 replies; 6+ messages in thread
From: eqyiel @ 2013-04-30 10:00 UTC (permalink / raw)
  To: Guido Van Hoecke; +Cc: help-gnu-emacs


Sorry I misunderstood!  I was too eager to help with something I thought
I knew the answer to.

It seems that it might not be Gnus at fault, take a look here:

> When you send through SMTP, Gmail saves the message as it was sent,
> which, of course, does not include the BCC addresses.  You can set your
> email program to save the messages in a local folder, if you want to see
> them later. [1]

A quick test with msmtp [2] gives the same results, a blind carbon copy
arrives in my Gmail inbox without the filter text.

[1] http://productforums.google.com/forum/#!topic/gmail/g3-chzo_NbQ
[2] http://msmtp.sourceforge.net/



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gnus gmail bcc question
  2013-04-29 16:46 gnus gmail bcc question Guido Van Hoecke
  2013-04-29 21:58 ` eqyiel
@ 2013-04-30 13:52 ` Tassilo Horn
  2013-04-30 19:20   ` Guido Van Hoecke
  1 sibling, 1 reply; 6+ messages in thread
From: Tassilo Horn @ 2013-04-30 13:52 UTC (permalink / raw)
  To: help-gnu-emacs

Guido Van Hoecke <guivho@gmail.com> writes:

Hi Guido,

> 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:

--8<---------------cut here---------------start------------->8---
(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"))))
--8<---------------cut here---------------end--------------->8---

,----[ (info "(gnus)Group Parameters") ]
| `gcc-self'
|      If `(gcc-self . t)' is present in the group parameter list, newly
|      composed messages will be `Gcc''d to the current group.  If
|      `(gcc-self . none)' is present, no `Gcc:' header will be
|      generated, if `(gcc-self . "string")' is present, this string will
|      be inserted literally as a `gcc' header.  This parameter takes
|      precedence over any default `Gcc' rules as described later (*note
|      Archived Messages::), with the exception for messages to resend.
| 
|      *Caveat*: Adding `(gcc-self . t)' to the parameter list of `nntp'
|      groups (or the like) isn't valid.  An `nntp' server doesn't accept
|      articles.
`----

Bye,
Tassilo




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: gnus gmail bcc question
  2013-04-30 13:52 ` Tassilo Horn
@ 2013-04-30 19:20   ` Guido Van Hoecke
  0 siblings, 0 replies; 6+ messages in thread
From: Guido Van Hoecke @ 2013-04-30 19:20 UTC (permalink / raw)
  To: Tassilo Horn, Ruben; +Cc: help-gnu-emacs

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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-30 19:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-29 16:46 gnus gmail bcc question Guido Van Hoecke
2013-04-29 21:58 ` eqyiel
2013-04-30  6:39   ` Guido Van Hoecke
2013-04-30 10:00     ` eqyiel
2013-04-30 13:52 ` Tassilo Horn
2013-04-30 19:20   ` Guido Van Hoecke

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.