Improve error handling
This commit is contained in:
parent
6154d87a89
commit
3970c082f6
@ -35,6 +35,8 @@ class easy_unsubscribe extends rcube_plugin {
|
|||||||
if($this->message_headers_done===false) {
|
if($this->message_headers_done===false) {
|
||||||
|
|
||||||
$this->message_headers_done = true;
|
$this->message_headers_done = true;
|
||||||
|
if(!isset($p['headers']->others['list-unsubscribe'])) return $p;
|
||||||
|
|
||||||
$ListUnsubscribe = $p['headers']->others['list-unsubscribe'];
|
$ListUnsubscribe = $p['headers']->others['list-unsubscribe'];
|
||||||
|
|
||||||
if (preg_match_all('/<(.+)>/mU', $ListUnsubscribe, $items, PREG_PATTERN_ORDER)) {
|
if (preg_match_all('/<(.+)>/mU', $ListUnsubscribe, $items, PREG_PATTERN_ORDER)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user