From a9c81fbbe3ec5bfd6450a556114a087a27e0d178 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 19 Jul 2015 09:59:44 +0200 Subject: [PATCH] Re: Modify message after send...? --- 37/8e6f316b4cd9c97646aca3445bccf1ee5dd966 | 68 +++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 37/8e6f316b4cd9c97646aca3445bccf1ee5dd966 diff --git a/37/8e6f316b4cd9c97646aca3445bccf1ee5dd966 b/37/8e6f316b4cd9c97646aca3445bccf1ee5dd966 new file mode 100644 index 000000000..0cb04fcac --- /dev/null +++ b/37/8e6f316b4cd9c97646aca3445bccf1ee5dd966 @@ -0,0 +1,68 @@ +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 113CE6DE175C + for ; Sun, 19 Jul 2015 01:04:23 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.165 +X-Spam-Level: +X-Spam-Status: No, score=0.165 tagged_above=-999 required=5 tests=[AWL=0.165] + 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 4Repz8ubW3c1 for ; + Sun, 19 Jul 2015 01:04:20 -0700 (PDT) +Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224]) + by arlo.cworth.org (Postfix) with ESMTPS id CA8AE6DE173B + for ; Sun, 19 Jul 2015 01:04:19 -0700 (PDT) +Received: from remotemail by gitolite.debian.net with local (Exim 4.80) + (envelope-from ) + id 1ZGjZB-0007dh-8f; Sun, 19 Jul 2015 08:03:21 +0000 +Received: (nullmailer pid 18288 invoked by uid 1000); Sun, 19 Jul 2015 + 07:59:44 -0000 +From: David Bremner +To: mailinglists@nawaz.org, notmuch@notmuchmail.org +Subject: Re: Modify message after send...? +In-Reply-To: <878uacpwse.fsf@fester.com> +References: <878uacpwse.fsf@fester.com> +User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Sun, 19 Jul 2015 09:59:44 +0200 +Message-ID: <87a8uswpan.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain +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: Sun, 19 Jul 2015 08:04:23 -0000 + +mailinglists@nawaz.org writes: + +> BTW, all I really want to do is modify the From: field based on the +> recipients (for every email, with no default From). I'll welcome +> suggestions for existing ways to do that. I Googled a little, but didn't +> find a clear good solution. Furthermore, I expect over time the rules by +> which I pick the From: field will get more complex than my knowledge of +> Elisp. + +I'm afraid it's a bit "some-assembly-required", but let me mention one +possible solution. + +At least if you just want to have a regular expression match on the +recipient, then the example configuration in message-templ [1] may be +enough to get you started. You'd have to either call +message-templ-config-exec in a hook, or bind it to a key and call it +manually to set up the headers before sending. + +[1]: http://pivot.cs.unb.ca/git?p=message-templ.git;a=tree -- 2.26.2