Fossil SCM
Further reading of RFC-8058 shows that I must also include a List-Unsubscribe-Post header.
Commit
733fcecaca6f45878e7a58ece286ff06ccb652c7c087164e84f4d2ffc214f666
Parent
4a3909afc8f9f3e…
1 file changed
+1
+1
| --- src/alerts.c | ||
| +++ src/alerts.c | ||
| @@ -2756,10 +2756,11 @@ | ||
| 2756 | 2756 | } |
| 2757 | 2757 | } |
| 2758 | 2758 | if( nHit==0 ) continue; |
| 2759 | 2759 | blob_appendf(&hdr, "List-Unsubscribe: <%s/unsubscribe/%s>\r\n", |
| 2760 | 2760 | zUrl, zCode); |
| 2761 | + blob_appendf(&hdr, "List-Unsubscribe-Post: List-Unsubscribe=One-Click\r\n"); | |
| 2761 | 2762 | blob_appendf(&body,"\n-- \nSubscription info: %s/alerts/%s\n", |
| 2762 | 2763 | zUrl, zCode); |
| 2763 | 2764 | alert_send(pSender,&hdr,&body,0); |
| 2764 | 2765 | nSent++; |
| 2765 | 2766 | blob_truncate(&hdr, 0); |
| 2766 | 2767 |
| --- src/alerts.c | |
| +++ src/alerts.c | |
| @@ -2756,10 +2756,11 @@ | |
| 2756 | } |
| 2757 | } |
| 2758 | if( nHit==0 ) continue; |
| 2759 | blob_appendf(&hdr, "List-Unsubscribe: <%s/unsubscribe/%s>\r\n", |
| 2760 | zUrl, zCode); |
| 2761 | blob_appendf(&body,"\n-- \nSubscription info: %s/alerts/%s\n", |
| 2762 | zUrl, zCode); |
| 2763 | alert_send(pSender,&hdr,&body,0); |
| 2764 | nSent++; |
| 2765 | blob_truncate(&hdr, 0); |
| 2766 |
| --- src/alerts.c | |
| +++ src/alerts.c | |
| @@ -2756,10 +2756,11 @@ | |
| 2756 | } |
| 2757 | } |
| 2758 | if( nHit==0 ) continue; |
| 2759 | blob_appendf(&hdr, "List-Unsubscribe: <%s/unsubscribe/%s>\r\n", |
| 2760 | zUrl, zCode); |
| 2761 | blob_appendf(&hdr, "List-Unsubscribe-Post: List-Unsubscribe=One-Click\r\n"); |
| 2762 | blob_appendf(&body,"\n-- \nSubscription info: %s/alerts/%s\n", |
| 2763 | zUrl, zCode); |
| 2764 | alert_send(pSender,&hdr,&body,0); |
| 2765 | nSent++; |
| 2766 | blob_truncate(&hdr, 0); |
| 2767 |