<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I wish I could, problem is, if the mail recipient is within the company, no legal boilerplate is added making the joke fall flat.<br></blockquote><div><br></div><div>What if you could send all your mail to another address on a server you control, or can at least run programs on?</div><div><br></div><div>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?</div><div><br></div><div>So, your outgoing SMTP message, instead of looking like:</div><div>"From: <a href="mailto:jeanmichel@sequans.com">jeanmichel@sequans.com</a><br></div><div>To: Foo Barbaz <<a href="mailto:f.barbaz@foobarbaz.com">f.barbaz@foobarbaz.com</a>>, <a href="mailto:python-list@python.org">python-list@python.org</a></div><div>Subject: Please don't make blahblahblah</div><div>I wish I could, but I can't, ergo I won't</div><div><br></div><div>TOP SECRET EMAIL MESSAGE WITH DIRE CONSEQUENCES FOR WANDERING EYES"</div><div><br></div><div>might look more like:</div><div>"From: <a href="mailto:jeanmichel@sequans.com">jeanmichel@sequans.com</a></div><div>To: <a href="mailto:otheremailaddress@serveryoucontrol_or_canatleastrunprogramson.com">otheremailaddress@serveryoucontrol_or_canatleastrunprogramson.com</a></div><div>Subject: [Foo Barbaz <<a href="mailto:f.barbaz@foobarbaz.com">f.barbaz@foobarbaz.com</a>>, <a href="mailto:python-list@python.org">python-list@python.org</a>] Please don't make blahblahblah</div><div>I wish I could, but I can't, ergo I won't</div><div><br></div><div>TOP SECRET EMAIL MESSAGE WITH DIRE CONSEQUENCES FOR WANDERING EYES"?</div><div><br></div><div>Then could you use pass the message through a script that uses <a href="https://docs.python.org/3/library/email.parser.html#email.message_from_string">email.message_from_string()</a> 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 = [<a href="https://docs.python.org/3/library/email.util.html">email.utils.parseaddr</a>(x) for x in string_in_brackets_in_subject] hackery, do a quick</div><div><br></div><div>strained_string = <a href="https://docs.python.org/3/library/re.html">re.sub</a>('TOP SECRET EMAIL MESSAGE WITH DIRE CONSEQUENCES FOR WANDERING EYES', '', <modifed.email.message>.as_string())?</div><div><br></div><div>Could you then send that off?</div><div><br></div><div><br></div><div><br></div><div><br></div><div>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.</div></div></div></div>