Change the send-as functionality to use a string in the Subject.
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 30 Apr 2020 05:37:40 +0000 (01:37 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 30 Apr 2020 05:37:40 +0000 (01:37 -0400)
commitd72ced943e0fe2f942a9810ba73a233f03841b82
tree4255f1e62513d158d6c376547df48596528d6182
parente4fc0f5d15444a12991a3c1e370b451aee175708
Change the send-as functionality to use a string in the Subject.

Using the RCPT TO for BCCs does not work if mailpopbox is not the
original MTA to accept the message. The originating MTA creates two
envelopes with 1 RCPT TO each, rather than 1 envelope with 2 RCPT TO.

Editing the subject breaks Gmail threading on the send-side, but it
works. An alternative was to search the body of the message for a
string, but that gets more complex with complex message Content-Types.
README.md
smtp/conn.go
smtp/conn_test.go
smtp/server.go