]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-mua.el
test: Add --format=json testing to the "notmuch search --format" tests.
[notmuch] / emacs / notmuch-mua.el
index ddaec676f4232b614920c7c0d66d88cb42d6b7d2..dc7b386f23c32abbba3a8e8ad8966764ce9d0c8c 100644 (file)
@@ -126,7 +126,7 @@ list."
       (when (not (string= "" user-agent))
        (push (cons "User-Agent" user-agent) other-headers))))
 
-  (unless (assoc "From" other-headers)
+  (unless (mail-header 'from other-headers)
     (push (cons "From" (concat
                        (notmuch-user-name) " <" (notmuch-user-primary-email) ">")) other-headers))