From 681ca35fbdabd08c353d6ea6cf37052bcadf90d9 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Thu, 5 Jul 2012 12:07:59 +1700 Subject: [PATCH] Re: problem with outbound mail headers from Emacs --- f6/707d8b6e89df8bde486e367af3a77fab195edd | 118 ++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 f6/707d8b6e89df8bde486e367af3a77fab195edd diff --git a/f6/707d8b6e89df8bde486e367af3a77fab195edd b/f6/707d8b6e89df8bde486e367af3a77fab195edd new file mode 100644 index 000000000..347ac5265 --- /dev/null +++ b/f6/707d8b6e89df8bde486e367af3a77fab195edd @@ -0,0 +1,118 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 7630D431FB6 + for ; Wed, 4 Jul 2012 12:08:13 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.29 +X-Spam-Level: +X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id mqXchSedA3gE for ; + Wed, 4 Jul 2012 12:08:11 -0700 (PDT) +Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu + [131.215.239.19]) + by olra.theworths.org (Postfix) with ESMTP id 651AE431FAE + for ; Wed, 4 Jul 2012 12:08:11 -0700 (PDT) +Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1]) + by earth-doxen-postvirus (Postfix) with ESMTP id DDF1766E0101; + Wed, 4 Jul 2012 12:08:08 -0700 (PDT) +X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new +Received: from finestructure.net (unknown [76.89.192.57]) + (Authenticated sender: jrollins) + by earth-doxen-submit (Postfix) with ESMTP id 5BFE766E016A; + Wed, 4 Jul 2012 12:08:05 -0700 (PDT) +Received: by finestructure.net (Postfix, from userid 1000) + id B1014292; Wed, 4 Jul 2012 12:08:04 -0700 (PDT) +From: Jameson Graef Rollins +To: "Edwin\, Camber\, and Astor" , notmuch@notmuchmail.org +Subject: Re: problem with outbound mail headers from Emacs +In-Reply-To: <29E3AFF3-000F-4831-9709-570B69239FB5@pobox.com> +References: <29E3AFF3-000F-4831-9709-570B69239FB5@pobox.com> +User-Agent: Notmuch/0.13.2+54~ga0426dc (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Wed, 04 Jul 2012 12:07:59 -0700 +Message-ID: <87hatn73ao.fsf@servo.finestructure.net> +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha256; protocol="application/pgp-signature" +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 04 Jul 2012 19:08:13 -0000 + +--=-=-= +Content-Transfer-Encoding: quoted-printable + +On Wed, Jul 04 2012, "Edwin, Camber, and Astor" 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 +> To:=20 +> Subject:=20 +> 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=3D/usr/local/bin:$PATH emacs -f notmuch + +? + +jamie. + +--=-=-= +Content-Type: application/pgp-signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.12 (GNU/Linux) + +iQIcBAEBCAAGBQJP9JSQAAoJEO00zqvie6q8xuUP/R3vArTK87/t2PHAN5ttPNjx +1yWdu/FLtbtJlMjiRyPs2J0wCH9vw3dKewo2MKFYOx6+U1IpyS05kONPDEj3ZGnW +MuvMGSwDBps4yWN7i3Uez9OMB2A4/S1rtUM03Xf+OBSk6C7L4E+63jbTOzrJBx+A +iwmskiIaZ3sSeSdZN9qCGr27hb/EDOLFr5Q/AXhme8HVMNN8BSquFqAYu98bEFjI +ft5rEP0QGiXJdDnJIN0YMcjA8p0ZrQxwVrtG5XGlQBOdnBXkAtcXA7E4UTw6FEyC +WgssoERBsRCcjT4R49e1x/x0xGPz+qGjo2Tn/yeYyf5NNV0NiDWfYvJnq8tsYLZd +PJIHypwaTQkvRuWsFZByw3Bv2aKwkPhENKa+pJLQ00o/kYprYMJGF7vXBtqWSC// +ey97F29Bpmp1CoIzHtF4h7hSHgG+AJ2AQkKbbi7vy/oXV2fbdpApZDy70aDU/cid +q3i9a3DOJdi++WpsKUSIQamvQ+nd4IdbpMX9x00GkzkboWt6j5UW+lx94uBJkUZR +iNOtaNdtADclGftrnBJdBLOfSD1cXaKH65bXcRrPWbVADBHgO9oSPLTqg0pp8nyq +FPcckQmz4yT8+uImZSw9SRT/Vc5HhaNow5+IChTAv71YktQQ7rUTr/hwLT76Ys00 +iTcFUID+TAMaEYTAX63K +=BS2n +-----END PGP SIGNATURE----- +--=-=-=-- -- 2.26.2