X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-mua.el;h=08c73c1637abf4bdb88101165a5f09c9723c770b;hb=371f481d93073cad23f7ce8579a83a4db09147ef;hp=c5b1b4829b0d1f1fcc045f4c1298b1ba97851470;hpb=9ca1f945d9f5030600dc14ffff10d4dad14db4ca;p=notmuch diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index c5b1b482..08c73c16 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -388,7 +388,7 @@ instead of `message-mode' and SWITCH-FUNCTION is mandatory." (interactive) (when notmuch-mua-user-agent-function (let ((user-agent (funcall notmuch-mua-user-agent-function))) - (unless (string= "" user-agent) + (unless (string-empty-p user-agent) (push (cons 'User-Agent user-agent) other-headers)))) (unless (assq 'From other-headers) (push (cons 'From (message-make-from