From 079ea7fe6951b05434f9595b46ac1f455f19e799 Mon Sep 17 00:00:00 2001 From: Steven Sullivan Date: Wed, 14 Feb 2018 12:26:03 -0500 Subject: [PATCH] Indent fix --- easy_unsubscribe.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/easy_unsubscribe.php b/easy_unsubscribe.php index 1ef296c..644bb8c 100644 --- a/easy_unsubscribe.php +++ b/easy_unsubscribe.php @@ -16,21 +16,21 @@ class easy_unsubscribe extends rcube_plugin $this->include_stylesheet('easy_unsubscribe.css'); } - public function storage_init($p) - { - $p['fetch_headers'] = trim($p['fetch_headers'] . ' ' . strtoupper('List-Unsubscribe')); - return $p; - } + public function storage_init($p) + { + $p['fetch_headers'] = trim($p['fetch_headers'] . ' ' . strtoupper('List-Unsubscribe')); + return $p; + } - public function message_headers($p) - { - if($this->message_headers_done===false) + public function message_headers($p) + { + if($this->message_headers_done===false) { $this->message_headers_done = true; - + $ListUnsubscribe = $p['headers']->others['list-unsubscribe']; preg_match('/<(.*?)>/', $ListUnsubscribe, $rVal); - + if($rVal[1]!='') $this->unsubscribe_img = 'Unsubscribe'; else @@ -40,13 +40,13 @@ class easy_unsubscribe extends rcube_plugin $this->unsubscribe_img = 'Unsubscribe'; } } - + if(isset($p['output']['subject'])) { $p['output']['subject']['value'] = $p['output']['subject']['value'] . $this->unsubscribe_img; $p['output']['subject']['html'] = 1; } - return $p; - } + return $p; + } }