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': {
 | 
			
		||||
                                            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…
	
	Add table
		Add a link
		
	
		Reference in a new issue