> > I wish I could, problem is, if the mail recipient is within the company, > no legal boilerplate is added making the joke fall flat. >
What if you could send all your mail to another address on a server you control, or can at least run programs on? Could you configure all your outgoing mail to include the actual recipient list in brackets in the subject line, rather than in the "To:" field? So, your outgoing SMTP message, instead of looking like: "From: [email protected] To: Foo Barbaz <[email protected]>, [email protected] Subject: Please don't make blahblahblah I wish I could, but I can't, ergo I won't TOP SECRET EMAIL MESSAGE WITH DIRE CONSEQUENCES FOR WANDERING EYES" might look more like: "From: [email protected] To: otheremailaddress@serveryoucontrol_or_canatleastrunprogramson.com Subject: [Foo Barbaz <[email protected]>, [email protected]] Please don't make blahblahblah I wish I could, but I can't, ergo I won't TOP SECRET EMAIL MESSAGE WITH DIRE CONSEQUENCES FOR WANDERING EYES"? Then could you use pass the message through a script that uses email.message_from_string() <https://docs.python.org/3/library/email.parser.html#email.message_from_string> to create an <email.message> object, remove the delivery cruft by calling <email.message>.__delitem__('Received') on it, recreate the actual "To:" field with some to_list = [email.utils.parseaddr <https://docs.python.org/3/library/email.util.html>(x) for x in string_in_brackets_in_subject] hackery, do a quick strained_string = re.sub <https://docs.python.org/3/library/re.html>('TOP SECRET EMAIL MESSAGE WITH DIRE CONSEQUENCES FOR WANDERING EYES', '', <modifed.email.message>.as_string())? Could you then send that off? This is not a privileged message. If you're reading this, it could be because this is just a text file without any implied security or privacy capacity.
-- https://mail.python.org/mailman/listinfo/python-list
