Re: problem with outbound mail headers from Emacs

Subject: Re: problem with outbound mail headers from Emacs

Date: Wed, 04 Jul 2012 12:07:59 -0700

To: Edwin, Camber, and Astor, notmuch@notmuchmail.org

Cc:

From: Jameson Graef Rollins


On Wed, Jul 04 2012, "Edwin, Camber, and Astor" <cstring@pobox.com> wrote:
> I've installed notmuch on my OS X computer and it seems to work fine.
> I can search, filter, tag, etc. mail successfully.  However, when
> notmuch is loaded, sending mail doesn't work correctly any more.  The
> headers I see after C-x m are:
>
> -------------------------------------------------------------
>
> From: /bin/bash: notmuch: command not found </bin/bash: notmuch: command not found>
> To: 
> Subject: 
> User-Agent: Notmuch/unknown (http://notmuchmail.org) Emacs/23.4.1 (x86_64-apple-darwin)
> Fcc: /bin/bash: notmuch: command not found/sent
> --text follows this line--
>
> --------------------------------------------------------

The broken user-agent string is a hint to me as to what's going on.  The
Fcc dir is by default set relative to config database.path, which is
determined using notmuch-database-path.  notmuch-database-path calls
notmuch-config-get, which uses shell-command-to-string to get the
config.  And low and behold the only other place we use
shell-command-to-string is in notmuch-version, which is used to create
the user-agent string.  So I'm guessing that shell-command-to-string is
not getting the message that you've added /usr/local/bin to the path
with exec-path.

What happens if you start emacs with /usr/local/bin already in the path,
e.g. (bash):

PATH=/usr/local/bin:$PATH emacs -f notmuch

?

jamie.
part-000.sig (application/pgp-signature)

Thread: