--- /dev/null
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id CF0E6431E82\r
+ for <notmuch@notmuchmail.org>; Wed, 25 Mar 2015 02:06:47 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.438\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
+ tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 6xqqEzBkaa5q for <notmuch@notmuchmail.org>;\r
+ Wed, 25 Mar 2015 02:06:44 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by olra.theworths.org (Postfix) with ESMTP id 81993431E62\r
+ for <notmuch@notmuchmail.org>; Wed, 25 Mar 2015 02:06:44 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id 358CE100086;\r
+ Wed, 25 Mar 2015 11:06:21 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: glyn.millington@gmail.com, notmuch@notmuchmail.org\r
+Subject: Re: Can't compose message in Emacs - Notmuch\r
+In-Reply-To: <87619q3s9w.fsf@nowhere.org>\r
+References: <878uembwmj.fsf@nowhere.org> <87fv8u6wbc.fsf@maritornes.cs.unb.ca>\r
+ <87619q3s9w.fsf@nowhere.org>\r
+User-Agent: Notmuch/0.19+92~g402df12 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Wed, 25 Mar 2015 11:06:21 +0200\r
+Message-ID: <m2r3sdh2eq.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 25 Mar 2015 09:06:47 -0000\r
+\r
+On Wed, Mar 25 2015, Glyn Millington <glyn.millington@gmail.com> wrote:\r
+\r
+> David Bremner <david@tethera.net> writes:\r
+>\r
+>> Glyn Millington <glyn.millington@gmail.com> writes:\r
+>>\r
+>>> Greetings!\r
+>>>\r
+>>> Emacs 24.4.1 (Arch Linux if that helps)\r
+>>> Notmuch 0.19\r
+>>>\r
+>>> The problem is that I can neither compose a new email nor reply to an old\r
+>>> email unless I have already used message mode (via Gnus) first.\r
+>>> I get an error message - Google on the error message below gets me nowhere!\r
+>>>\r
+>>\r
+>> Can you duplicate the error with a minimal .emacs? In particular save\r
+>> the following to "run-notmuch.el" and start emacs with\r
+>>\r
+>> % emacs -Q --load run-emacs.el\r
+>>\r
+>> ;; -8x-------------------------------------------------------------\r
+>> ;; adjust the following line to point to either the .el or .elc of\r
+>> ;; notmuch.el\r
+>>\r
+>> (add-to-list 'load-path "/path/to/notmuch/dot/el")\r
+>> (require 'notmuch)\r
+>> (notmuch-mua-mail)\r
+>>\r
+>> ;; -8x-------------------------------------------------------------\r
+>>\r
+>> If that doesn't error, then the most likely trigger is some setting or\r
+>> add on package in your .emacs. Once we know what the trigger is, we can\r
+>> try to figure out where bug lies.\r
+>\r
+> Thanks David,\r
+>\r
+> It didn't error! \r
+>\r
+> A thorough trawl through init.el revealed that this line is the culprit\r
+>\r
+> (setq message-mail-user-agent t)\r
+>\r
+> which refers on to mail-user-agent, which was invoking gnus!\r
+>\r
+>\r
+> Sorry for the noise. \r
+\r
+Instead of noise I think this is valuable information...\r
+\r
+... if we had "troubleshooting" (or just put to emacstips.mdwn) page\r
+we could add something along the line:\r
+\r
+ emacs -Q -L /path/to/notmuch/elisp/dir --eval "(require 'notmuch)"\r
+\r
+(with some explanation) there (e.g. M-x notmuch-hello & M-x notmuch-mua-mail)\r
+\r
+(emacs manpage says -L 'add's this dir to load-path -- I verified\r
+it "prepends"! it to load-path (like add-to-list does by default))\r
+\r
+>\r
+> atb\r
+>\r
+> Glyn\r
+\r
+Tomi\r