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