Fossil SCM

Further reading of RFC-8058 shows that I must also include a List-Unsubscribe-Post header.

drh 2021-05-28 15:13 trunk
Commit 733fcecaca6f45878e7a58ece286ff06ccb652c7c087164e84f4d2ffc214f666
1 file changed +1
--- src/alerts.c
+++ src/alerts.c
@@ -2756,10 +2756,11 @@
27562756
}
27572757
}
27582758
if( nHit==0 ) continue;
27592759
blob_appendf(&hdr, "List-Unsubscribe: <%s/unsubscribe/%s>\r\n",
27602760
zUrl, zCode);
2761
+ blob_appendf(&hdr, "List-Unsubscribe-Post: List-Unsubscribe=One-Click\r\n");
27612762
blob_appendf(&body,"\n-- \nSubscription info: %s/alerts/%s\n",
27622763
zUrl, zCode);
27632764
alert_send(pSender,&hdr,&body,0);
27642765
nSent++;
27652766
blob_truncate(&hdr, 0);
27662767
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button