1 Return-Path: <david@belohrad.ch>
\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 2B107431FB6
\r
6 for <notmuch@notmuchmail.org>; Fri, 5 Sep 2014 14:48:01 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id aRJsMtDmE4Fg for <notmuch@notmuchmail.org>;
\r
16 Fri, 5 Sep 2014 14:47:57 -0700 (PDT)
\r
17 Received: from pcbe13433.cern.ch (static-212-101-19-163.adsl.solnet.ch
\r
18 [212.101.19.163]) (using TLSv1 with cipher AES128-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 2AF07431FAF
\r
21 for <notmuch@notmuchmail.org>; Fri, 5 Sep 2014 14:47:57 -0700 (PDT)
\r
22 Received: from belohrad by pcbe13433.cern.ch with local (Exim 4.84_RC2)
\r
23 (envelope-from <david@belohrad.ch>)
\r
24 id 1XQ1MA-0006dY-Qe; Fri, 05 Sep 2014 23:47:46 +0200
\r
25 From: David Belohrad <david@belohrad.ch>
\r
26 To: Mark Walters <markwalters1009@gmail.com>,
\r
27 Keith Amidon <camalot@picnicpark.org>, notmuch@notmuchmail.org
\r
28 Subject: Re: sending email using different server for different 'From:' field
\r
29 In-Reply-To: <87egvtds04.fsf@qmul.ac.uk>
\r
30 References: <uaxzjei1a4j.fsf@beesknees.cern.ch>
\r
31 <1409668511.2507.32.camel@picnicpark.org>
\r
32 <uaxbnqxdvh8.fsf@beesknees.cern.ch> <87egvtds04.fsf@qmul.ac.uk>
\r
33 User-Agent: Notmuch/0.18~rc0+1~g40dc79d (http://notmuchmail.org) Emacs/24.3.1
\r
34 (x86_64-pc-linux-gnu)
\r
35 Date: Fri, 05 Sep 2014 23:47:46 +0200
\r
36 Message-ID: <87ppf9yc1p.fsf@pcbe13433.cern.ch>
\r
38 Content-Type: text/plain
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.13
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Fri, 05 Sep 2014 21:48:01 -0000
\r
54 thanks alot, i'll try to see those options (when i find a bit of
\r
57 nice evening (in europe at least)
\r
62 Mark Walters <markwalters1009@gmail.com> writes:
\r
66 > On Wed, 03 Sep 2014, David Belohrad <david@belohrad.ch> wrote:
\r
67 >> oukej. this seems to be exactly what I'm looking for. Is there a way how
\r
68 >> to 'cycle' in notmuch different From: fields? I'd need to setup like 3
\r
69 >> addresses, each of them with different signatures and be able to easily
\r
70 >> switch between them....
\r
72 > You might finding setting notmuch-always-prompt-for-sender to 't is
\r
73 > what you want (you can set if in customise or directly)
\r
75 > This prompts you for the sender address and takes options from your
\r
76 > notmuch config file (that is from user.primary_email and
\r
77 > user.other_email from .notmuch-config) so will quite possibly just work.
\r
81 >>> (defun kea/message-select-mail-dest ()
\r
82 >>> (cond ((string-match "<kea@x.com>"
\r
83 >>> (message-field-value "From"))
\r
84 >>> (kea/send-mail-with-x))
\r
86 >>> (kea/send-mail-with-y))))
\r
88 >>> (kea/send-mail-with-y)
\r
89 >>> (add-hook 'message-send-hook 'kea/message-select-mail-dest)
\r
91 > I will also mention an alternative approach to using hooks here. You
\r
92 > could customise message-send-mail-function to be your own function which
\r
93 > let binds the appropriate send-mail settings and have that call the
\r
94 > actual send-mail function (eg message-send-mail-with-sendmail)
\r