#5955 - Many fixes and improvements to List-Unsubscribe
| Identifier | #5955 |
|---|---|
| Issue type | Minor issue (breaks specific functionality) |
| Title | Many fixes and improvements to List-Unsubscribe |
| Status | Completed |
| Tags |
Roadmap: v11 (custom) Type: Legal compliance / Privacy (custom) |
| Handling member | PDStig |
| Version | 11 beta2 |
| Addon | core |
| Description | There were many glaring issues with List-Unsubscribe. This hotfix fixes / changes the following: 1) List-Unsubscribe target config should have been a line, not a tick. 2) Added '1' as an option to List-Unsubscribe target (which is the new default); if set to '1', the target will be the new data/unsubscribe.php endpoint. 3) Added data/unsubscribe.php; mail clients are starting to require use of the http/https POST method of List-Unsubscribe and rejecting mailto. This endpoint (with the provided correct nonce and checksum) will add an e-mail address to the new unsubscribed_emails table. The mail dispatch will filter out e-mails that exist in this table regardless of priority. 4) Mail dispatch was not properly adding the List-Unsubscribe headers. This is fixed (but not fully tested yet; see notes as I will post when they have been fully tested). Swift Mailer was also not setting them at all. 5) Added List-Unsubscribe post config option (also a line). If the target is a URL, this can be POST data to send to the URL. email_address is always passed automatically by the software. 6) Added can_email_address function for checking if we can e-mail a specific address. This will also now check unsubscribed_emails in addition to mail bounces. 7) can_email_member is now a wrapper for can_email_address. 8) Added a warning on a member profile's edit settings screen if can_email_member returns false. It instructs the member that they are not receiving e-mails from the site and possible reasons why (no e-mail set, unsubscribed through their mail client, or received a bounce-back in the last 8 weeks) along with what to do. Reminder this is not fully tested yet. It will undergo testing for v11 beta3. |
| Steps to reproduce | |
| Funded? | No |
| Commits |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
https://gitlab.com/composr-foundation/composr/-/commit/4d45e83997f860061e5b58a048d5dee682729b6e