View Issue Details

IDProjectCategoryView StatusLast Update
5955Composrcorepublic2024-09-19 23:48
ReporterPDStig Assigned ToPDStig  
PriorityhighSeverityminor 
Status resolvedResolutionfixed 
Product Version11.beta2 
Summary5955: Many fixes and improvements to List-Unsubscribe
DescriptionThere 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.
TagsRoadmap: v11, Type: Legal compliance / Privacy
Attach Tags
Attached Files
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Relationships

related to 5366 ResolvedPDStig Composr alpha bug reports List-Unsubscribe target option has misleading description 

Activities

admin

2024-09-19 20:55

administrator   ~9407

Fixed in Git commit 1cc5657240 (https://gitlab.com/composr-foundation/composr/commit/1cc5657240 - link will become active once code pushed to GitLab)

admin

2024-09-19 20:55

administrator   ~9408

A hotfix (a TAR of files to upload) has been uploaded to this issue. Only apply this hotfix if you absolutely need it and cannot wait until the next release of Composr (releases are more reliable and strictly tested). As of Composr version 11, the recommended way to apply a hotfix is by following the same steps as an upgrade (https://baseurl/upgrader.php, use the hotfix on the step “Transfer across new/updated files”). The upgrader will automatically skip files belonging to addons you do not have installed or that are newer on disk than in the hotfix. Otherwise, you can manually extract and replace these files (do not replace if your on-disk file is newer than the one in the hotfix). Always take backups of your site or at least files you are replacing before applying a hotfix. Not sure how to extract TAR files to your Windows computer? Try 7-zip (http://www.7-zip.org/).

PDStig

2024-09-19 23:48

administrator   ~9409

I had to modify data/unsubscribe.php to show a form if accessed directly without POST data:

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

Issue History

Date Modified Username Field Change
2024-09-19 20:55 PDStig Relationship added related to 5366
2024-09-19 20:56 PDStig Tag Attached: Roadmap: v11
2024-09-19 21:02 PDStig Tag Attached: Type: Legal compliance / Privacy
2024-09-19 23:48 PDStig Note Added: 0009409