emacs - Gnus: How to archive emails according to the account they were written from? [gcc-self not working as expected] -


i have 2 mail accounts, foo.bar@uni.edu , foo.bar@gmail.com. archive messages send either 1 in corresponding "sent mail" folder (nnimap+foo.bar@uni.edu:sent items , foo.bar@gmail.com:[google mail]/sent mail).

i tried 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 not set gcc (new messages don't have gcc; solution here?). went (setq gnus-message-archive-group "nnimap+foo.bar@uni.edu:sent items") sets gcc correctly (for main account foo.bar@uni.edu) if open new message in *group* via m.

i tried use gcc-self via gnus-parameters archive 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 if gcc-self string, inserted literally gcc header. made following experience: wherever start new message in *group* via c-u m (with m, gcc "nnimap+foo.bar@uni.edu:sent items" mentioned before), gcc taken name point on in *group* before m hit. if point on nnimap+foo.bar@gmail.com:drafts, gcc gcc: nnimap+foo.bar@gmail.com:drafts (instead of foo.bar@gmail.com:[google mail]/sent mail). how can fixed , messages archived in corresponding sent mail folders if written via c-u m? in other words, why gcc's not set correctly?

[this on emacs 24.3.50.1, gnus v5.13]

i had same issue you. though adding in gcc-self parameter "inbox.sent" when sent message ending in "nnfolder+archive:sent.yyyy-mm"

my setup have default account (home) , secondary account (work) both imap (but not gmail, answer still applies)

through lot of trial , error managed functioning wanted: work emails saved in work sent folder, home emails saved in home sent folder.

in gnus-parameters changed gcc-self param gcc , worked! however, secondary address.

for default address set gnus-message-archive-group

a cut down of ~/.gnus file

(setq gnus-select-method       '(nnimap "home"                 (nnimap-address "mail.homeaddress.com")                 (nnimap-server-port 143)                 (nnimap-stream starttls)                 (nnimap-inbox "inbox")                  ))  (setq gnus-secondary-select-methods       '((nnimap "work"                 (nnimap-address "mail.workaddress.com")                 (nnimap-server-port 143)                 (nnimap-stream starttls)                 (nnimap-inbox "inbox")))) (setq gnus-parameters       '(         ("work"          (posting-style           (address "me@workaddress.com")           (gcc "nnimap+work:inbox.sent")))))  (setq gnus-message-archive-group "nnimap:inbox.sent") 

notice don't have posting-styles home.

i hope helps.

emacs version 24.3.1, gnus v5.13


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -