Active
Project:
Simplenews
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2013 at 15:08 UTC
Updated:
27 Mar 2013 at 15:08 UTC
Even if a newsletter is set as hidden and users are not supposed to be able to unsubscribe from it, a List-Unsubscribe header is sent out in the individual e-mails.
In simplenews.source.inc::getHeaders(), add this conditional statement:
if ($this->category->opt_inout != 'hidden') {
$headers['List-Unsubscribe'] = '<' . token_replace('[simplenews-subscriber:unsubscribe-url]', $this->getTokenContext(), array('sanitize' => FALSE)) . '>';
}