[PATCH v2 14/14] cli/reply: only pass gmime message to add recipients to reply message
[notmuch-archives.git] / 86 / 134169d50187b15dc207df86f1321329644d9f
1 Return-Path: <m.walters@qmul.ac.uk>\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 olra.theworths.org (Postfix) with ESMTP id 0EA2F431FB6\r
6         for <notmuch@notmuchmail.org>; Wed,  3 Sep 2014 01:32:34 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.502\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.502 tagged_above=-999 required=5\r
12         tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
13         NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id hbNKHn2wV1pf for <notmuch@notmuchmail.org>;\r
17         Wed,  3 Sep 2014 01:32:26 -0700 (PDT)\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id CA4EF431FAF\r
22         for <notmuch@notmuchmail.org>; Wed,  3 Sep 2014 01:32:25 -0700 (PDT)\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
24         by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
25         (envelope-from <m.walters@qmul.ac.uk>)\r
26         id 1XP5yv-0000J0-L9; Wed, 03 Sep 2014 09:32:17 +0100\r
27 Received: from 5751dfa2.skybroadband.com ([87.81.223.162] helo=localhost)\r
28         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71)\r
29         (envelope-from <m.walters@qmul.ac.uk>)\r
30         id 1XP5yv-0004bu-9c; Wed, 03 Sep 2014 09:31:57 +0100\r
31 From: Mark Walters <markwalters1009@gmail.com>\r
32 To: David Belohrad <david@belohrad.ch>, Keith Amidon <camalot@picnicpark.org>,\r
33         notmuch@notmuchmail.org\r
34 Subject: Re: sending email using different server for different 'From:' field\r
35 In-Reply-To: <uaxbnqxdvh8.fsf@beesknees.cern.ch>\r
36 References: <uaxzjei1a4j.fsf@beesknees.cern.ch>\r
37         <1409668511.2507.32.camel@picnicpark.org>\r
38         <uaxbnqxdvh8.fsf@beesknees.cern.ch>\r
39 User-Agent: Notmuch/0.15.2+803~ge083086 (http://notmuchmail.org) Emacs/23.4.1\r
40         (x86_64-pc-linux-gnu)\r
41 Date: Wed, 03 Sep 2014 09:31:55 +0100\r
42 Message-ID: <87egvtds04.fsf@qmul.ac.uk>\r
43 MIME-Version: 1.0\r
44 Content-Type: text/plain; charset=us-ascii\r
45 X-Sender-Host-Address: 87.81.223.162\r
46 X-QM-Geographic: According to ripencc,\r
47         this message was delivered by a machine in Britain (UK) (GB).\r
48 X-QM-SPAM-Info: Sender has good ham record.  :)\r
49 X-QM-Body-MD5: 73216c59c36b5ced87234fe02178ff3d (of first 20000 bytes)\r
50 X-SpamAssassin-Score: -0.1\r
51 X-SpamAssassin-SpamBar: /\r
52 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
53         determine if it is\r
54         spam. We require at least 5.0 points to mark a message as spam.\r
55         This message scored -0.1 points.\r
56         Summary of the scoring: \r
57         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
58         provider *      (markwalters1009[at]gmail.com)\r
59         * -0.1 AWL AWL: From: address is in the auto white-list\r
60 X-QM-Scan-Virus: ClamAV says the message is clean\r
61 X-BeenThere: notmuch@notmuchmail.org\r
62 X-Mailman-Version: 2.1.13\r
63 Precedence: list\r
64 List-Id: "Use and development of the notmuch mail system."\r
65         <notmuch.notmuchmail.org>\r
66 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
68 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
69 List-Post: <mailto:notmuch@notmuchmail.org>\r
70 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
71 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
72         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
73 X-List-Received-Date: Wed, 03 Sep 2014 08:32:34 -0000\r
74 \r
75 \r
76 Hi\r
77 \r
78 On Wed, 03 Sep 2014, David Belohrad <david@belohrad.ch> wrote:\r
79 > oukej. this seems to be exactly what I'm looking for. Is there a way how\r
80 > to 'cycle' in notmuch different From: fields? I'd need to setup like 3\r
81 > addresses, each of them with different signatures and be able to easily\r
82 > switch between them....\r
83 \r
84 You might finding setting notmuch-always-prompt-for-sender to 't is\r
85 what you want (you can set if in customise or directly)\r
86 \r
87 This prompts you for the sender address and takes options from your\r
88 notmuch config file (that is from user.primary_email and\r
89 user.other_email from .notmuch-config) so will quite possibly just work.\r
90 \r
91 \r
92 >>\r
93 >> (defun kea/message-select-mail-dest ()\r
94 >>   (cond ((string-match "<kea@x.com>"\r
95 >>                        (message-field-value "From"))\r
96 >>          (kea/send-mail-with-x))\r
97 >>         (t\r
98 >>          (kea/send-mail-with-y))))\r
99 >>\r
100 >> (kea/send-mail-with-y)\r
101 >> (add-hook 'message-send-hook 'kea/message-select-mail-dest)\r
102 \r
103 I will also mention an alternative approach to using hooks here. You\r
104 could customise message-send-mail-function to be your own function which\r
105 let binds the appropriate send-mail settings and have that call the\r
106 actual send-mail function (eg message-send-mail-with-sendmail)\r
107 \r
108 Best wishes\r
109 \r
110 Mark\r
111 \r