]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Email.php
move forgotten rotator from template
[friendica.git] / src / Protocol / Email.php
index 79ad16ed2f6fec8e6a306ea255f23d62c3285685..4c6ac9cb4d5023fafe1422db553e02645eb8ea1d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -78,21 +78,21 @@ class Email
                if (!$search1) {
                        $search1 = [];
                } else {
-                       Logger::notice("Found mails from ".$email_addr);
+                       Logger::debug("Found mails from ".$email_addr);
                }
 
                $search2 = @imap_search($mbox, 'UNDELETED TO "' . $email_addr . '"', SE_UID);
                if (!$search2) {
                        $search2 = [];
                } else {
-                       Logger::notice("Found mails to ".$email_addr);
+                       Logger::debug("Found mails to ".$email_addr);
                }
 
                $search3 = @imap_search($mbox, 'UNDELETED CC "' . $email_addr . '"', SE_UID);
                if (!$search3) {
                        $search3 = [];
                } else {
-                       Logger::notice("Found mails cc ".$email_addr);
+                       Logger::debug("Found mails cc ".$email_addr);
                }
 
                $res = array_unique(array_merge($search1, $search2, $search3));
@@ -570,7 +570,7 @@ class Email
         * Removes signature from message
         *
         * @param string $message Unfiltered message
-        * @return string Message with no signature
+        * @return array Message array with no signature (elements "body" and "sig")
         */
        private static function removeSig(string $message): array
        {