]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-mua.el
test: Clear the "BROKEN" flag on an existing emacs test
[notmuch] / emacs / notmuch-mua.el
index 0975fe610415c895965a1a150984fcab9ab9c428..dc7b386f23c32abbba3a8e8ad8966764ce9d0c8c 100644 (file)
@@ -118,6 +118,7 @@ list."
 
 (defun notmuch-mua-mail (&optional to subject other-headers continue
                                   switch-function yank-action send-actions)
+  "Invoke the notmuch mail composition window."
   (interactive)
 
   (when notmuch-mua-user-agent-function
@@ -125,6 +126,10 @@ list."
       (when (not (string= "" user-agent))
        (push (cons "User-Agent" user-agent) other-headers))))
 
+  (unless (mail-header 'from other-headers)
+    (push (cons "From" (concat
+                       (notmuch-user-name) " <" (notmuch-user-primary-email) ">")) other-headers))
+
   (message-mail to subject other-headers continue
                switch-function yank-action send-actions)
   (message-sort-headers)