]> 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 0ad079ffaea88a38a2a1cc9ed594341ec3bc0265..dc7b386f23c32abbba3a8e8ad8966764ce9d0c8c 100644 (file)
@@ -126,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)