At some point soon email providers like Google, Yahoo and others will require bulk mail senders to include one-click list unsubscribe headers.
This requires the inclusion in bulk email messages of two headers: List-Unsubscribe AND List-Unsubscribe-Post.
The latter is not currently supported by py4web. Per the RFC the former includes one OR MORE uri's, comma separated and each enclosed in <....> brackets. One may be a mailto: link, the other https:. This is not consistent with the current list_unsubscribe implementation in mailer.py, which assumes a single mailto: URI and adds both the brackets and the mailto:. I think the user should supply the entire text of the header.
I've experimented with a modified mailer.py, as attached. The resulting messages (example atteched) appear correct, and pass SPF, DKIM and DMARC validation, but Google still does not display its 'unsubscribe' button. Per Google's docs there can be many reasons for this.
So, I'm not sure if, in particular, I'm meeting the DKIM constraint mentioned in the first para of 3.1 in the RFC. Do I need to do something special, like using the mailer's dkim parameter? If so, I have no idea how to do this?
David