From 7c77c6f61db35f19e04539c2dc2cffa68c771b8b Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Sat, 11 Jul 2015 10:07:48 +0100 Subject: [PATCH] Re: Emacs: notmuch-mua-mail throws error if notmuch-fcc-dirs does not exist --- a3/8d9930e0363c90b1f8e2116d5708ba570bfdb0 | 120 ++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 a3/8d9930e0363c90b1f8e2116d5708ba570bfdb0 diff --git a/a3/8d9930e0363c90b1f8e2116d5708ba570bfdb0 b/a3/8d9930e0363c90b1f8e2116d5708ba570bfdb0 new file mode 100644 index 000000000..420a3b521 --- /dev/null +++ b/a3/8d9930e0363c90b1f8e2116d5708ba570bfdb0 @@ -0,0 +1,120 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id F0DAE6DE100F + for ; Sat, 11 Jul 2015 02:07:55 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.063 +X-Spam-Level: +X-Spam-Status: No, score=0.063 tagged_above=-999 required=5 tests=[AWL=0.633, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, + RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 4GRfQteYsfJY for ; + Sat, 11 Jul 2015 02:07:53 -0700 (PDT) +Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com + [209.85.212.172]) + by arlo.cworth.org (Postfix) with ESMTPS id 31E266DE0C66 + for ; Sat, 11 Jul 2015 02:07:53 -0700 (PDT) +Received: by widjy10 with SMTP id jy10so32373231wid.1 + for ; Sat, 11 Jul 2015 02:07:50 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:subject:in-reply-to:references:user-agent:date:message-id + :mime-version:content-type; + bh=9kpJEGzbsiHBsAkaCcNr8ayQCVk8RsZoCkCTYfKCXT0=; + b=Hrb99dGgvU9mlVInV2YF3FkKeAIYpBuMxlHC4MrntkQhTqHSLypuPWw6lQ4PNUlhsj + 5dsjouuavgM8OhFTytjgUWQDZcq5ywgGC9TfcDWBu2LU9X/mL6QuCX9VENyn4HRu4ll5 + Ld9vycKFZe9lrdE3rTP1dNstuBxEvDOOhnKfAQlGQpx3n9XWZGmqDeSWO6fIJxIa09rw + ZQpslcWG6fY+c0zyUn7Shy32hi4C460XhuKas9pvqP/uAM8OFVQVtAOIDnkAxvdbX1rB + 5e0fZquwTPFnF1kNvIXMu5Lvva7wJehSP312M46H24Igi0LsurmRdK5Un5RFqRyI6Xo1 + lJMA== +X-Received: by 10.180.87.199 with SMTP id ba7mr5507305wib.81.1436605670737; + Sat, 11 Jul 2015 02:07:50 -0700 (PDT) +Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) + by smtp.gmail.com with ESMTPSA id q9sm2660451wiz.23.2015.07.11.02.07.49 + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Sat, 11 Jul 2015 02:07:50 -0700 (PDT) +From: Mark Walters +To: Felix Konstantin Maurer , notmuch@notmuchmail.org +Subject: Re: Emacs: notmuch-mua-mail throws error if notmuch-fcc-dirs does not + exist +In-Reply-To: <55A025BD.2090105@maufl.de> +References: <55A025BD.2090105@maufl.de> +User-Agent: Notmuch/0.18.1+86~gef5e66a (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Sat, 11 Jul 2015 10:07:48 +0100 +Message-ID: <87vbdrysd7.fsf@qmul.ac.uk> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +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: Sat, 11 Jul 2015 09:07:56 -0000 + + +This may have been obvious to others but wasn't to me until I started +digging into this: + +we add the function notmuch-fcc-header-setup +to message-header-setup-hook + +and it is this function that is calling the error and forcing the +exit. In other words the problem is entirely on the notmuch side, rather +than something caused by message-mode. + +Best wishes + +Mark + + + +On Fri, 10 Jul 2015, Felix Konstantin Maurer wrote: +> Hi, +> +> I had a problem where creating a reply from a message would not include +> the quoted original body in the emacs notmuch client. I now found out +> what the problem was. +> +> What would happen: +> From a search in notmuch, I would open a thread. +> In the read I would hit "r" or "R" to reply. +> A new buffer would open, containing all headers and the "--text .." line. +> The headers included an FCC header to a non existing sent folder. +> I would be asked whether I want to create that folder but would decline. +> Then I would be in the message buffer but without a quoted body. +> +> What seemed to be the problem: +> In notmuch-mua-mail the message-mail function is called, which asked me +> about the folder. When I declined to create the folder, it returned an +> error "Message not sent". +> The rest of notmuch-mua-mail was not executed anymore, and also the rest +> of notmuch-mua-reply. +> +> I fixed it by setting notmuch-fcc-dirs to nil. +> This is good for me, but might bite somebody else at some point. +> +> I'm quite new to emacs and don't know much elisp. I hope my findings are +> correct. +> Maybe somebody with more experience can confirm this problem and propose +> a good fix. +> +> Regards +> Felix +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch -- 2.26.2