Add List-Unsubscribe header
This commit is contained in:
parent
4153940c08
commit
b20d001e52
1 changed files with 4 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue