unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Michal Sojka <sojkam1@fel.cvut.cz>
To: sfischme@uwaterloo.ca, Notmuch Mail <notmuch@notmuchmail.org>
Subject: Re: Mail merge with notmuch
Date: Thu, 21 Jan 2016 09:34:47 +0100	[thread overview]
Message-ID: <87vb6nmiu0.fsf@steelpick.2x.cz> (raw)
In-Reply-To: <87twmdqkwg.fsf@uwaterloo.ca>

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 <<EOF
    From: Me <me@xample.com>
    To: $EMAIL
    Subject: Foobar
     
    Hello $NAME!
    ...
    EOF
    done

BR
-Michal

      reply	other threads:[~2016-01-21  8:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-16 21:40 Mail merge with notmuch Sebastian Fischmeister
2016-01-21  8:34 ` Michal Sojka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vb6nmiu0.fsf@steelpick.2x.cz \
    --to=sojkam1@fel.cvut.cz \
    --cc=notmuch@notmuchmail.org \
    --cc=sfischme@uwaterloo.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).