Add List-Unsubscribe header

This commit is contained in:
Amit Kumar 2017-03-08 16:07:37 +05:30 committed by GitHub
parent 4153940c08
commit b20d001e52

View file

@ -414,6 +414,10 @@ function formatMessage(message, callback) {
'List-ID': {
prepared: true,
value: libmime.encodeWords(list.name) + ' <' + list.cid + '.' + (url.parse(configItems.serviceUrl).hostname || 'localhost') + '>'
},
'List-Unsubscribe': {
prepared: true,
value: url.resolve(configItems.serviceUrl, '/subscription/' + list.cid + '/unsubscribe/' + message.subscription.cid + '?auto=yes')
}
},
list: {