jeremy-compostella / org-msg

OrgMsg is a GNU/Emacs global minor mode mixing up Org mode and Message mode to compose and reply to emails in a Outlook HTML friendly style.
GNU General Public License v3.0
275 stars 58 forks source link

org-msg prevents mu4e~compose-mail from working as intended #52

Closed tecosaur closed 3 years ago

tecosaur commented 4 years ago

Hello,

I've just started using this package, but it seems great :smiley:. One tiny hiccup though, I've found that if I call

(mu4e~compose-mail to subject headers)

while org-msg-mode is active, none of the specified details (to, subject, headers) get filled in!

If it would be possible to fix this behaviour that would be marvelous :)

obar commented 4 years ago

I don't use mu4e but presumably you've called (org-msg-mode) at some point before? The relevant setup in org-msg happens when that is called:

(defun org-msg-mode-mu4e ()
  "Setup the hook for mu4e mail user agent."
  (if org-msg-mode
      (add-hook 'mu4e-compose-mode-hook 'org-msg-post-setup)
    (remove-hook 'mu4e-compose-mode-hook 'org-msg-post-setup)))

And I would guess that mu4e-compose-mode is used when you enter mu4e in that way.

jeremy-compostella commented 4 years ago

I use the venerable gnus so I can't really test and I would suggest that you investigate further. FYI when I use (compose-mail "myself" "mysubject") it works.