From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 555229380608 X-Google-Groups: supmua X-Google-Thread: 3030fda1bf,324dfb5ba4bc9617 X-Google-Attributes: gid3030fda1bf,domainid0,public,googlegroup X-Google-NewGroupId: yes X-Received: by 10.112.148.198 with SMTP id tu6mr365523lbb.3.1422563998132; Thu, 29 Jan 2015 12:39:58 -0800 (PST) X-BeenThere: supmua@googlegroups.com Received: by 10.152.7.100 with SMTP id i4ls301990laa.106.gmail; Thu, 29 Jan 2015 12:39:57 -0800 (PST) X-Received: by 10.112.37.72 with SMTP id w8mr366971lbj.6.1422563997417; Thu, 29 Jan 2015 12:39:57 -0800 (PST) Return-Path: Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com. [2a00:1450:400c:c05::230]) by gmr-mx.google.com with ESMTPS id j6si228297wix.1.2015.01.29.12.39.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Jan 2015 12:39:57 -0800 (PST) Received-SPF: pass (google.com: domain of matthieu.rakotojaona@gmail.com designates 2a00:1450:400c:c05::230 as permitted sender) client-ip=2a00:1450:400c:c05::230; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of matthieu.rakotojaona@gmail.com designates 2a00:1450:400c:c05::230 as permitted sender) smtp.mail=matthieu.rakotojaona@gmail.com; dkim=pass header.i=@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Received: by mail-wi0-x230.google.com with SMTP id bs8so22719440wib.3 for ; Thu, 29 Jan 2015 12:39:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:in-reply-to:references:date:message-id:user-agent :content-transfer-encoding:mime-version:content-type; bh=1JlZ1kIXUX6gkXvUWR7d+8gsOr3CQ0/e6vG62HjTUbA=; b=pqLUD4pIuyScqvEg/cYD4q+SX7kmPSwIguNQSGkmitKkauYkEdP40KOKsEQ+bjuZMT atMhTCky94AAFof7RMPvCcTKf26+/iEmjct0Ze5wYi9qRNvpDy7HUekNmXwZKrilJpnV s0D7ZnYovszWX/tA+RnU0ufH7Eteky5kSFqJaGRUXxl5vlT2bE1O6qGZpYyBioRFFDFZ KI0R2Ojbi1z+Ui0UQ1SmdHSBqpSFYAmC5yg2DxjAsa/tyha1Z2xz4dklPuMygDaTEznF qCe1k1bkjnrStPeqj79s7Kl6Xklb9fAjaYIkuCPPTJj9ADXaLKq/gj4FUMOcmV9PzYko qOHQ== X-Received: by 10.180.84.98 with SMTP id x2mr4850183wiy.14.1422563996958; Thu, 29 Jan 2015 12:39:56 -0800 (PST) Return-Path: Received: from localhost.localdomain (155-29-190-109.dsl.ovh.fr. [109.190.29.155]) by mx.google.com with ESMTPSA id fq10sm3094663wib.3.2015.01.29.12.39.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Jan 2015 12:39:56 -0800 (PST) Received: from localhost (localhost.localdomain [IPv6:::1]); by localhost.localdomain (OpenSMTPD) with ESMTP id 7e1121ee; for ; Thu, 29 Jan 2015 20:39:33 +0000 (UTC) From: Matthieu Rakotojaona To: supmua Subject: Re: [sup] serial mail instead of Bcc In-reply-to: <1422520391-sup-3@email.archlab.tuwien.ac.at> References: <1422520391-sup-3@email.archlab.tuwien.ac.at> X-pgp-key: http://otokar.looc2011.eu/static/matthieu.rakotojaona.asc Date: Thu, 29 Jan 2015 21:39:26 +0100 Message-Id: <1422562269-sup-7151@kpad> User-Agent: Sup/git Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1422563972-902234-14240-301-1-=" --=-1422563972-902234-14240-301-1-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Excerpts from Martin B=C3=A4hr's message of 2015-01-29 09:37:28 +0100: > hi, > = > i'd like to be able to send an email to a number of people without shar= ing the > addresses in the To: or Cc: headers. i can do that with Bcc: but i'd li= ke the > people to note that the mail is for them personally. and not something = copied > to them as fyi. > = > so what i would like to do is to have a mail sent to each recipient sep= arately, > with their own address on the To: field. > = > greetings, martin. > = > -- = > eKita - the online platform for your entire academi= c life > -- = > chief engineer eK= ita.co > pike programmer pike.lysator.liu.se caudium.net societyserv= er.org > secretary beijingl= ug.org > mentor fossas= ia.org > foresight developer foresightlinux.org real= ss.com > unix sysadmin > Martin B=C3=A4hr working in china http://societyserver.= org/mbaehr/ > = Hello Martin, That's an interesting use case. Just out of interest, is there an MUA/MTA out there that does it ? There is a "sendmail" hook that takes the message object to be sent [1] and does whatever logic to actually handle delivery of said message. You can write a hook that loops over the addresses in Bcc and sets the addresses as a recipient before shelling out to sendmail/msmtp/your MTA of choice. Very roughly, something like that (untested): ``` # The hook is responsible for _all_ sendings, so we also need to manage # the "standard" sendings bcc =3D message.bcc message.bcc =3D [] IO.popen("msmtp -t --read-recipient-from") {|p| p.puts message} # We need to save anything we modify, because we will put it back at the # end so that sup saves a relevant message internally to =3D message.to cc =3D message.cc # A specialized message, only for (each of) you message.to =3D [] message.cc =3D [] bcc.each do |recipient| message.to =3D [recipient] IO.popen("msmtp -t --read-recipient-from") {|p| p.puts message} end message.to =3D to message.cc =3D cc message.bcc =3D bcc ``` As I write this, I realize that messages can't be encrypted to the specified email address. To people more familiar with hooks: I don't presume methods in the Redwood module are available ? Is it possible to call CryptoManager.encrypt in a hook ? [1] https://github.com/sup-heliotrope/sup/wiki/SendEmail -- = Matthieu Rakotojaona --=-1422563972-902234-14240-301-1-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJUypqEXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwNkQ3NDcxMDJFRUU4MEYwRTY4MzQwMkEz QTc0RTE5NDVDM0Q5NzIyAAoJEDp04ZRcPZcijWgQAJkYLyo00NBHLEp8surOHFAt Cu0K6dserFnawX5kr5fbpG/vtQXQcGWvYI0D2Us327OmRiHTrkNYyLJJ6RIBSjjL 7NFIKdOfjkz/Q9qngVlYczzmkSToYVx/DfYHiw2Da0X1+TFU3qIe996eajapKPiZ ejJLGgodE3HEr4HfCd0yFPRrq0PDQoEVYDL+oLTraIarHxx8U1bSBuqakbDyjneI vEoiSI1pNLON4Mm6aZy/dyeWAGA+Db/ajWEo7XB5FBhBMt4IxtRO3Mdgcstl0xdj oOn0S4SZAYkBS/rpwD9OHm38SeOxvSu7NVw4kTqFhy+1QD0pQI+ZzfHYVwIHWmkx r7F7jpBXIOR72Vm/hx0baEbu70Co+P9JakTXM9aNMxaDU7K1pDpfctdWF7fMw5XC HpeVvLOtLFwjj3vou10BChAxaULGU9nxJW6v1/0vATjlfcMHkJGWKOb2AFQSCpmL pnRUCCSkCyk1hJMdunr5hNbPQzFj+z70iZPIF6skLvQRI5gtilPihfVFZfYvKbdu ht/kmgCPxUeZ9GKqiU7fLeA5XiVVLIuWdfg7KwS9xD4lRwjTjMoGn8I34M/X3+kW w1IYXkN3l8NB0jDT/aa1dtZxhC2kVdxR/6uwZACSB6U4FdbPH3mNZn+cZ1N5++GR h5GDfLiiF2yj8SybCLNQ =ZcEq -----END PGP SIGNATURE----- --=-1422563972-902234-14240-301-1-=--