X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-mua.el;h=3e52d5e2979f8995c33aa2b0b5b4763c536414df;hb=e4e04bbc328f990e36b77f508aef904d156029b1;hp=33f139987e659135cb2aeb29767144455a26429e;hpb=2bbe5e034db4d982a754e481e7a59a0a4d886e44;p=notmuch diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 33f13998..3e52d5e2 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -118,7 +118,10 @@ Note that these functions use `mail-citation-hook' if that is non-nil." (defun notmuch-mua-user-agent-notmuch () "Generate a `User-Agent:' string suitable for notmuch." - (concat "Notmuch/" (notmuch-version) " (http://notmuchmail.org)")) + (let ((notmuch-version (if (string= notmuch-emacs-version "unknown") + (notmuch-cli-version) + notmuch-emacs-version))) + (concat "Notmuch/" notmuch-version " (http://notmuchmail.org)"))) (defun notmuch-mua-user-agent-emacs () "Generate a `User-Agent:' string suitable for notmuch."