--- /dev/null
+Return-Path: <david@belohrad.ch>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 2B107431FB6\r
+ for <notmuch@notmuchmail.org>; Fri, 5 Sep 2014 14:48:01 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id aRJsMtDmE4Fg for <notmuch@notmuchmail.org>;\r
+ Fri, 5 Sep 2014 14:47:57 -0700 (PDT)\r
+Received: from pcbe13433.cern.ch (static-212-101-19-163.adsl.solnet.ch\r
+ [212.101.19.163]) (using TLSv1 with cipher AES128-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 2AF07431FAF\r
+ for <notmuch@notmuchmail.org>; Fri, 5 Sep 2014 14:47:57 -0700 (PDT)\r
+Received: from belohrad by pcbe13433.cern.ch with local (Exim 4.84_RC2)\r
+ (envelope-from <david@belohrad.ch>)\r
+ id 1XQ1MA-0006dY-Qe; Fri, 05 Sep 2014 23:47:46 +0200\r
+From: David Belohrad <david@belohrad.ch>\r
+To: Mark Walters <markwalters1009@gmail.com>,\r
+ Keith Amidon <camalot@picnicpark.org>, notmuch@notmuchmail.org\r
+Subject: Re: sending email using different server for different 'From:' field\r
+In-Reply-To: <87egvtds04.fsf@qmul.ac.uk>\r
+References: <uaxzjei1a4j.fsf@beesknees.cern.ch>\r
+ <1409668511.2507.32.camel@picnicpark.org>\r
+ <uaxbnqxdvh8.fsf@beesknees.cern.ch> <87egvtds04.fsf@qmul.ac.uk>\r
+User-Agent: Notmuch/0.18~rc0+1~g40dc79d (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Fri, 05 Sep 2014 23:47:46 +0200\r
+Message-ID: <87ppf9yc1p.fsf@pcbe13433.cern.ch>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 05 Sep 2014 21:48:01 -0000\r
+\r
+Dear Both,\r
+thanks alot, i'll try to see those options (when i find a bit of\r
+time :)\r
+\r
+nice evening (in europe at least)\r
+\r
+.d.\r
+\r
+\r
+Mark Walters <markwalters1009@gmail.com> writes:\r
+\r
+> Hi\r
+>\r
+> On Wed, 03 Sep 2014, David Belohrad <david@belohrad.ch> wrote:\r
+>> oukej. this seems to be exactly what I'm looking for. Is there a way how\r
+>> to 'cycle' in notmuch different From: fields? I'd need to setup like 3\r
+>> addresses, each of them with different signatures and be able to easily\r
+>> switch between them....\r
+>\r
+> You might finding setting notmuch-always-prompt-for-sender to 't is\r
+> what you want (you can set if in customise or directly)\r
+>\r
+> This prompts you for the sender address and takes options from your\r
+> notmuch config file (that is from user.primary_email and\r
+> user.other_email from .notmuch-config) so will quite possibly just work.\r
+>\r
+>\r
+>>>\r
+>>> (defun kea/message-select-mail-dest ()\r
+>>> (cond ((string-match "<kea@x.com>"\r
+>>> (message-field-value "From"))\r
+>>> (kea/send-mail-with-x))\r
+>>> (t\r
+>>> (kea/send-mail-with-y))))\r
+>>>\r
+>>> (kea/send-mail-with-y)\r
+>>> (add-hook 'message-send-hook 'kea/message-select-mail-dest)\r
+>\r
+> I will also mention an alternative approach to using hooks here. You\r
+> could customise message-send-mail-function to be your own function which\r
+> let binds the appropriate send-mail settings and have that call the\r
+> actual send-mail function (eg message-send-mail-with-sendmail)\r
+>\r
+> Best wishes\r
+>\r
+> Mark\r