Open danielfleischer opened 2 years ago
Just to note, the setup function for Gnus posting styles is actually called; I am switching Org-Msg variables through the use of posting styles, although that is through the use of eval
in the relevant posting style, and so it isn't ideal. I had to switch to programatically constructing the posting styles to help share the settings and I do have to slightly work around my signature being set for both Gnus and for Org-Msg.
It would be good to just use the posting styles as-is.
Hi, as I said, I'm using gnus-parameters as a multi-account system where - based on the group I'm in - the correct SMTP server is selected and sent messages are saved in the right place, whether it's local or in an IMAP sent "folder".
The way it works is simple; it's just adding 2 headers: X-Message-SMTP-Method
and Gcc
to the message.
Going through the code, I see the headers "from" "subject" "to" "cc" "date" being processed; can we just leave other fields as they are?
Here is an example; there are 2 accounts with different SMTP servers and different IMAP folders used for sent messages:
(setq gnus-parameters
'(("home"
(gnus-message-archive-method '(nnimap "Gmail"))
(gnus-message-archive-group "[Gmail]/Sent")
(gnus-posting-styles
'((".*"
(address "<daniel@gmail.com>")
("X-Message-SMTP-Method" "smtp smtp.gmail.com 587 daniel@gmail.com")))))
("work"
(gnus-message-archive-method '(nnimap "Work"))
(gnus-message-archive-group "[Gmail]/Work/Sent")
(gnus-posting-styles
'((".*"
(address "<daniel.WORK@work.com>")
("X-Message-SMTP-Method" "smtp smtp.gmail.com 587 daniel.WORK@work.com")))))))
When using Org-Msg via
(org-msg-mode)
, when writing a new message I see thatgnus-parameters
are ignored. They contain posting styles, e.g. theX-Message-SMTP-Method
header used to specify the SMTP details which is missing. In addition mygnus-parameters
also definegnus-message-archive-group/method
used to get proper sent-messages archiving on IMAP using theGcc
header, which is also missing.Expectation: Gnus logic regarding headers should stay intact.