[PATCH v3 4/7] Add internal functions to search for alternate doc types
[notmuch-archives.git] / 93 / bec3fdecc63a015f9414055486a37c6489614d
1 Return-Path: <markwalters1009@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id 835AB6DE1781\r
6  for <notmuch@notmuchmail.org>; Sun, 19 Jul 2015 01:22:21 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.017\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.017 tagged_above=-999 required=5 tests=[AWL=0.587, \r
12  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13  FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,\r
14  RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
15  RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled\r
16 Received: from arlo.cworth.org ([127.0.0.1])\r
17  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
18  with ESMTP id jZ9XCNYntxX9 for <notmuch@notmuchmail.org>;\r
19  Sun, 19 Jul 2015 01:22:19 -0700 (PDT)\r
20 Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com\r
21  [209.85.212.178])\r
22  by arlo.cworth.org (Postfix) with ESMTPS id 860466DE177D\r
23  for <notmuch@notmuchmail.org>; Sun, 19 Jul 2015 01:22:19 -0700 (PDT)\r
24 Received: by wibxm9 with SMTP id xm9so1869922wib.1\r
25  for <notmuch@notmuchmail.org>; Sun, 19 Jul 2015 01:22:16 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27  h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
28  :mime-version:content-type;\r
29  bh=lHIxpYIC6+laUHJFfu49L/XDtkR13oz9AtVhgv83BCU=;\r
30  b=p2RMOXuOkQhY9X71qJuCFwfccuiaNrI+6/vQ3jTPIiP6QeLebERUqia+ILzhYw7voe\r
31  cQmiEHfhC1p3ilHzUrjhMx0kyprV9+D3KgiRfJZQPHR0AZTjhpSvTpnxYJwELWxNgUw+\r
32  cN14Z2x9/RKbGBk6b1t3rb0GSm7rf2OQMPnYljBkzFA9ipcpE55qR1dIhP7qdEUsxuPz\r
33  iWaUlB0enL15MjnV7wdRnvpCKAVHMP8wdgRi+3R65LxYtsisxLgbV5OmT/D0tA6aarWy\r
34  hbsg7lO9RYoCZhdxNO927L9MTHi5BV50QQZVYZ0eA/vrX4qEiIARiQBI8z2PZ/1EuCiC\r
35  k/3Q==\r
36 X-Received: by 10.180.21.244 with SMTP id y20mr10837977wie.65.1437294136282;\r
37  Sun, 19 Jul 2015 01:22:16 -0700 (PDT)\r
38 Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
39  by smtp.gmail.com with ESMTPSA id fa8sm6039319wib.14.2015.07.19.01.22.15\r
40  (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
41  Sun, 19 Jul 2015 01:22:15 -0700 (PDT)\r
42 From: Mark Walters <markwalters1009@gmail.com>\r
43 To: David Bremner <david@tethera.net>, mailinglists@nawaz.org,\r
44  notmuch@notmuchmail.org\r
45 Subject: Re: Modify message after send...?\r
46 In-Reply-To: <87a8uswpan.fsf@maritornes.cs.unb.ca>\r
47 References: <878uacpwse.fsf@fester.com> <87a8uswpan.fsf@maritornes.cs.unb.ca>\r
48 User-Agent: Notmuch/0.18.1+86~gef5e66a (http://notmuchmail.org) Emacs/23.4.1\r
49  (x86_64-pc-linux-gnu)\r
50 Date: Sun, 19 Jul 2015 09:22:14 +0100\r
51 Message-ID: <87fv4kzhe1.fsf@qmul.ac.uk>\r
52 MIME-Version: 1.0\r
53 Content-Type: text/plain; charset=us-ascii\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.18\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58  <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Sun, 19 Jul 2015 08:22:21 -0000\r
67 \r
68 \r
69 >> BTW, all I really want to do is modify the From: field based on the\r
70 >> recipients (for every email, with no default From). I'll welcome\r
71 >> suggestions for existing ways to do that. I Googled a little, but didn't\r
72 >> find a clear good solution. Furthermore, I expect over time the rules by\r
73 >> which I pick the From: field will get more complex than my knowledge of\r
74 >> Elisp.\r
75 \r
76 I don't know how practical the following is but an alternative which\r
77 would keep you entirely outside lisp would be to configure\r
78 sendmail-program to be your python script and let it modify the message\r
79 and then send it on to whatever sendmail program you use.\r
80 \r
81 Getting everything right with command line arguments and the message on\r
82 stdin (I guess) and keeping any sane form of error handling may be difficult \r
83 \r
84 Also, note that sendmail-program is not notmuch specific so if you\r
85 configure it might affect other emacs mail stuff like gnus.\r
86 \r
87 Best wishes\r
88 \r
89 Mark\r
90 \r
91 \r
92 \r