From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id E8CE16DE01ED for ; Fri, 28 Sep 2018 17:13:00 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.002 X-Spam-Level: X-Spam-Status: No, score=0.002 tagged_above=-999 required=5 tests=[AWL=0.013, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 sOe-AVjL7ZTi for ; Fri, 28 Sep 2018 17:12:58 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id A261D6DE00D4 for ; Fri, 28 Sep 2018 17:12:58 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1g62sQ-0005dU-UB; Fri, 28 Sep 2018 20:12:54 -0400 Received: (nullmailer pid 19305 invoked by uid 1000); Sat, 29 Sep 2018 00:12:53 -0000 From: David Bremner To: David Edmondson , notmuch@notmuchmail.org Subject: Re: [PATCH v1 2/2] emacs: Call `notmuch-mua-send-hook' hooks when sending a message In-Reply-To: <87pnwz3ei5.fsf@tethera.net> References: <20180925150910.22318-1-dme@dme.org> <20180925150910.22318-3-dme@dme.org> <87pnwz3ei5.fsf@tethera.net> Date: Fri, 28 Sep 2018 21:12:53 -0300 Message-ID: <87d0sx2mbe.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 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, 29 Sep 2018 00:13:01 -0000 David Bremner writes: > > This looks plausible to me, and of course the test passes. I did wonder > if this means that people actually using notmuch-user-agent would run > the hook twice now? After a certain amount of re-reading the docstring of define-mail-user-agent, and the source for compose-mail, I see that the HOOKVAR parameter is something that users of the mail-agent can tweak, rather than something that e.g. compose-mail promises to run. So I think your patch is fine. And I'm 99% sure the issue with the spurious output is just a little bug in test-lib.sh d