Merge pull request #164 from heroic/listUnsubscribe
Add List-Unsubscribe header
This commit is contained in:
commit
745bfb06e3
1 changed files with 4 additions and 0 deletions
|
@ -414,6 +414,10 @@ function formatMessage(message, callback) {
|
||||||
'List-ID': {
|
'List-ID': {
|
||||||
prepared: true,
|
prepared: true,
|
||||||
value: libmime.encodeWords(list.name) + ' <' + list.cid + '.' + (url.parse(configItems.serviceUrl).hostname || 'localhost') + '>'
|
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: {
|
list: {
|
||||||
|
|
Loading…
Reference in a new issue