]> rtime.felk.cvut.cz Git - notmuch.git/commit
emacs: prefer notmuch-emacs-version in User-Agent: header
authorTomi Ollila <tomi.ollila@iki.fi>
Sun, 2 Aug 2015 14:48:14 +0000 (17:48 +0300)
committerDavid Bremner <david@tethera.net>
Tue, 4 Aug 2015 18:56:38 +0000 (20:56 +0200)
commit3c1eea5646fcf33d66acb874d82f3518a75c24de
treea05eb83bdeff7e4d9cb8cd74e4a8691497f6808f
parent0c565fa29fc29f74209d4343e2fc88f3b8008aaa
emacs: prefer notmuch-emacs-version in User-Agent: header

Now that we have `notmuch-emacs-version' defined in notmuch emacs MUA
use that as a part of User-Agent: header to provide more accurate
version information when sending emails.

In case some incomplete installation of notmuch emacs MUA is used and
`notmuch-emacs-version' is defined as "unknown" then fall back to ask
version info from cli (as it used to be before this commit).

Requiring notmuch-version[.elc] and if that is missing setting
"fallback" notmuch-emacs-version (to "unknown") was moved from
notmuch.el to notmuch-lib.el as notmuch-mua.el (which provides
User-Agent: information) require's the latter.
emacs/notmuch-lib.el
emacs/notmuch-mua.el
emacs/notmuch.el