--- /dev/null
+Return-Path: <sojkam1@fel.cvut.cz>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 65B266DE10F8\r
+ for <notmuch@notmuchmail.org>; Thu, 21 Jan 2016 00:34:58 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.873\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.873 tagged_above=-999 required=5 tests=[AWL=0.977,\r
+ RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.55] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id fo7qWv_EH-Vo for <notmuch@notmuchmail.org>;\r
+ Thu, 21 Jan 2016 00:34:56 -0800 (PST)\r
+Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
+ by arlo.cworth.org (Postfix) with ESMTP id D56816DE1016\r
+ for <notmuch@notmuchmail.org>; Thu, 21 Jan 2016 00:34:55 -0800 (PST)\r
+Received: from localhost (unknown [192.168.200.7])\r
+ by max.feld.cvut.cz (Postfix) with ESMTP id 1225C5CD093;\r
+ Thu, 21 Jan 2016 09:34:53 +0100 (CET)\r
+X-Virus-Scanned: IMAP STYX AMAVIS\r
+Received: from max.feld.cvut.cz ([192.168.200.1])\r
+ by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new, port 10044)\r
+ with ESMTP id W8KEsO5W_vzk; Thu, 21 Jan 2016 09:34:51 +0100 (CET)\r
+Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
+ by max.feld.cvut.cz (Postfix) with ESMTP id 417185CD099;\r
+ Thu, 21 Jan 2016 09:34:50 +0100 (CET)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.86)\r
+ (envelope-from <sojkam1@fel.cvut.cz>)\r
+ id 1aMAhb-0004WY-Va; Thu, 21 Jan 2016 09:34:47 +0100\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: sfischme@uwaterloo.ca, Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: Re: Mail merge with notmuch\r
+In-Reply-To: <87twmdqkwg.fsf@uwaterloo.ca>\r
+References: <87twmdqkwg.fsf@uwaterloo.ca>\r
+User-Agent: Notmuch/0.21+30~g55c056a (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Thu, 21 Jan 2016 09:34:47 +0100\r
+Message-ID: <87vb6nmiu0.fsf@steelpick.2x.cz>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 21 Jan 2016 08:34:58 -0000\r
+\r
+Hi Sebastian,\r
+\r
+On Sat, Jan 16 2016, Sebastian Fischmeister wrote:\r
+> Hi,\r
+>\r
+> Is there a straightforward way to for mail merge with notmuch? I need to\r
+> send emails with only minor modifications to a number of people. If I\r
+> could send mails from the command line, then that would be perfect.\r
+>\r
+> Any ideas?\r
+\r
+You can do this easily without notmuch. You need a locally configured\r
+MTA such as sendmail or exim (which provides sendmail alias) and then\r
+run something like:\r
+\r
+ cat people | while read EMAIL NAME; do\r
+ sendmail -t <<EOF\r
+ From: Me <me@xample.com>\r
+ To: $EMAIL\r
+ Subject: Foobar\r
+ \r
+ Hello $NAME!\r
+ ...\r
+ EOF\r
+ done\r
+\r
+BR\r
+-Michal\r