Skip to content

Commit

Permalink
Add limited support for mail forwarding
Browse files Browse the repository at this point in the history
Mail forwarding is not an easy feature to implement as it requires to
modify the Mail User Agent.  Also this is not a common use-case in my
workflow and it is low priority.

Michael-David Fiszer made some suggestion in Issue #11.  This patch is
the port of this suggestion.

Signed-off-by: Michael-David Fiszer
Signed-off-by: Jeremy Compostella <jeremy.compostella@gmail.com>
  • Loading branch information
jeremy-compostella committed Nov 29, 2019
1 parent 22b6eaa commit c8fca69
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions org-msg.el
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,7 @@ If the current `message' buffer is a reply, the
`org-msg-separator' string is inserted at the end of the editing
area."
(message-goto-body)
(let ((new (not (and (org-msg-message-fetch-field "to")
(org-msg-message-fetch-field "subject"))))
(let ((new (not (org-msg-message-fetch-field "subject")))
(with-original (not (= (point) (point-max))))
(reply-to))
(when (or new (org-msg-mua-call 'article-htmlp))
Expand All @@ -837,9 +836,9 @@ area."
(when org-msg-signature
(insert org-msg-signature))
(org-msg-edit-mode)))
(if new
(message-goto-to)
(org-msg-goto-body))))
(if (org-msg-message-fetch-field "to")
(org-msg-goto-body)
(message-goto-to))))

(defun org-msg-ctrl-c-ctrl-c ()
"Send message like `message-send-and-exit'.
Expand Down

0 comments on commit c8fca69

Please sign in to comment.