I have two mail accounts, foo.bar@uni.edu
and foo.bar@gmail.com
. I would like to archive messages I send from either one in a corresponding "sent mail" folder (nnimap+foo.bar@uni.edu:Sent Items
and foo.bar@gmail.com:[Google Mail]/Sent Mail
).
I tried to set
(setq gnus-message-archive-group
'(("uni" "nnimap+foo.bar@uni.edu:Sent Items")
("gmail" "nnimap+foo.bar@gmail.com:[Google Mail]/Sent Mail")
))
but that does not set Gcc (new messages don't have a Gcc; any solution here?). I thus went back to (setq
gnus-message-archive-group "nnimap+foo.bar@uni.edu:Sent Items")
which sets Gcc
correctly (for the main account foo.bar@uni.edu
) if I open a new message in *Group* via m
.
I then tried to use gcc-self
via gnus-parameters
to archive the sent mails correctly:
(setq gnus-parameters
`((,(rx "nnimap+foo.bar@uni.edu")
(gcc-self . "nnimap+foo.bar@uni.edu:Sent Items"))
(,(rx "nnimap+foo.bar@gmail.com")
(gcc-self . "foo.bar@gmail.com:[Google Mail]/Sent Mail"))))
The manual (http://www.gnus.org/manual/gnus_28.html) says that if gcc-self
is
a string, it is simply inserted literally as Gcc header. I made the following
experience: Wherever I start a new message in *Group* via C-u m
(with m
, Gcc
is "nnimap+foo.bar@uni.edu:Sent Items" as mentioned before), Gcc is taken to be
the name the point was on in *Group* before m
was hit. So if the point is on
nnimap+foo.bar@gmail.com:Drafts
, Gcc will be Gcc:
nnimap+foo.bar@gmail.com:Drafts
(instead of foo.bar@gmail.com:[Google
Mail]/Sent Mail
). How can this be fixed and messages archived in the corresponding sent mail folders if written via C-u m
? In other words, why are the Gcc
's not set correctly?
[this is on Emacs 24.3.50.1, Gnus v5.13]