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) {
|
||||
|
||||
$this->message_headers_done = true;
|
||||
if(!isset($p['headers']->others['list-unsubscribe'])) return $p;
|
||||
|
||||
$ListUnsubscribe = $p['headers']->others['list-unsubscribe'];
|
||||
|
||||
if (preg_match_all('/<(.+)>/mU', $ListUnsubscribe, $items, PREG_PATTERN_ORDER)) {
|
||||
@ -59,4 +61,4 @@ class easy_unsubscribe extends rcube_plugin {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user