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 264CF6DE61B3 for ; Fri, 16 Mar 2018 05:29:44 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, 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 jRTB3rEnqHyq for ; Fri, 16 Mar 2018 05:29:43 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 096DD6DE6088 for ; Fri, 16 Mar 2018 05:29:42 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1ewoUO-00044K-32; Fri, 16 Mar 2018 08:29:40 -0400 Received: (nullmailer pid 25414 invoked by uid 1000); Fri, 16 Mar 2018 12:29:39 -0000 From: David Bremner To: Thomas Schneider , notmuch@notmuchmail.org Subject: Re: emacs-notmuch: Set variables based on From when composing In-Reply-To: References: Date: Fri, 16 Mar 2018 09:29:39 -0300 Message-ID: <87efkkp5jg.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Fri, 16 Mar 2018 12:29:44 -0000 Thomas Schneider writes: > Hello list, > > I use notmuch with the Emacs frontend and multiple accounts. I=E2=80=99d= like > it to set the domain part of Message-Id header of any mail I compose to > something sensible, e.g. the FQDN of the host (which does not seem to be > easy, see [0]) or the domain part of the From header. There is some discussion on the wiki of using gnus-alias and message-templ with notmuch. The latter is more about setting headers. > > I was thinking about setting message-user-fqdn based on the From header > in an appropriate hook, but I haven=E2=80=99t found yet where and how to = do > this. There is notmuch-mua-send-hook (which by default just runs message-send-hoo= k)