sendout(): FIX, recode and implement *add-file-recipients*..
commitda2445897434dfbd84aecf98afe3b2cc6befe29b
authorSteffen "Daode" Nurpmeso <sdaoden@users.sf.net>
Thu, 4 Oct 2012 12:07:43 +0000 (4 14:07 +0200)
committerSteffen "Daode" Nurpmeso <sdaoden@users.sf.net>
Thu, 4 Oct 2012 15:43:39 +0000 (4 17:43 +0200)
treeb808ec6add1e77226fada41a2e92a2696f5f3295
parentc993bf8dbaaaa93c6e6fd9a1092991fba0690aae
sendout(): FIX, recode and implement *add-file-recipients*..

Use a flag carrier instead of variables.
Write the comma once it is clear that *this* name will be
written, not when we look at the *next* name and see that
this may be written.  This fixes faulty creations like

  echo bla | heirloom -s au t1@x.com ./tof1 ./tof2 t2@x.com

which creates

  To: t2@x.com t1@x.com

Also implement the new *add-file-recipients* option that can
be used to specify that file and pipe-command addressees shall
be included in the corresponding recipient list of the final
message.
Before files were always ex-, and pipes always included.
sendout.c