You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ImapMailbox.php
+57-57
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ protected function initImapStream() {
56
56
protectedfunctiondisconnect() {
57
57
$imapStream = $this->getImapStream(false);
58
58
if($imapStream) {
59
-
$this->expungeDeletedMessages();
59
+
$this->expungeDeletedMails();
60
60
imap_close($imapStream);
61
61
}
62
62
}
@@ -68,8 +68,8 @@ protected function disconnect() {
68
68
* Date - current system time formatted according to RFC2822
69
69
* Driver - protocol used to access this mailbox: POP3, IMAP, NNTP
70
70
* Mailbox - the mailbox name
71
-
* Nmsgs - number of messages in the mailbox
72
-
* Recent - number of recent messages in the mailbox
71
+
* Nmsgs - number of mails in the mailbox
72
+
* Recent - number of recent mails in the mailbox
73
73
*
74
74
* @return stdClass
75
75
*/
@@ -79,35 +79,35 @@ public function checkMailbox() {
79
79
80
80
/*
81
81
* This function performs a search on the mailbox currently opened in the given IMAP stream.
82
-
* For example, to match all unanswered messages sent by Mom, you'd use: "UNANSWERED FROM mom".
82
+
* For example, to match all unanswered mails sent by Mom, you'd use: "UNANSWERED FROM mom".
83
83
* Searches appear to be case insensitive. This list of criteria is from a reading of the UW
84
84
* c-client source code and may be incomplete or inaccurate (see also RFC2060, section 6.4.4).
85
85
*
86
86
* @param string $criteria String, delimited by spaces, in which the following keywords are allowed. Any multi-word arguments (e.g. FROM "joey smith") must be quoted. Results will match all criteria entries.
87
-
* ALL - return all messages matching the rest of the criteria
88
-
* ANSWERED - match messages with the \\ANSWERED flag set
89
-
* BCC "string" - match messages with "string" in the Bcc: field
90
-
* BEFORE "date" - match messages with Date: before "date"
91
-
* BODY "string" - match messages with "string" in the body of the message
92
-
* CC "string" - match messages with "string" in the Cc: field
93
-
* DELETED - match deleted messages
94
-
* FLAGGED - match messages with the \\FLAGGED (sometimes referred to as Important or Urgent) flag set
95
-
* FROM "string" - match messages with "string" in the From: field
96
-
* KEYWORD "string" - match messages with "string" as a keyword
97
-
* NEW - match new messages
98
-
* OLD - match old messages
99
-
* ON "date" - match messages with Date: matching "date"
100
-
* RECENT - match messages with the \\RECENT flag set
101
-
* SEEN - match messages that have been read (the \\SEEN flag is set)
102
-
* SINCE "date" - match messages with Date: after "date"
103
-
* SUBJECT "string" - match messages with "string" in the Subject:
104
-
* TEXT "string" - match messages with text "string"
105
-
* TO "string" - match messages with "string" in the To:
106
-
* UNANSWERED - match messages that have not been answered
107
-
* UNDELETED - match messages that are not deleted
108
-
* UNFLAGGED - match messages that are not flagged
109
-
* UNKEYWORD "string" - match messages that do not have the keyword "string"
110
-
* UNSEEN - match messages which have not been read yet
87
+
* ALL - return all mails matching the rest of the criteria
88
+
* ANSWERED - match mails with the \\ANSWERED flag set
89
+
* BCC "string" - match mails with "string" in the Bcc: field
90
+
* BEFORE "date" - match mails with Date: before "date"
91
+
* BODY "string" - match mails with "string" in the body of the mail
92
+
* CC "string" - match mails with "string" in the Cc: field
93
+
* DELETED - match deleted mails
94
+
* FLAGGED - match mails with the \\FLAGGED (sometimes referred to as Important or Urgent) flag set
95
+
* FROM "string" - match mails with "string" in the From: field
96
+
* KEYWORD "string" - match mails with "string" as a keyword
97
+
* NEW - match new mails
98
+
* OLD - match old mails
99
+
* ON "date" - match mails with Date: matching "date"
100
+
* RECENT - match mails with the \\RECENT flag set
101
+
* SEEN - match mails that have been read (the \\SEEN flag is set)
102
+
* SINCE "date" - match mails with Date: after "date"
103
+
* SUBJECT "string" - match mails with "string" in the Subject:
104
+
* TEXT "string" - match mails with text "string"
105
+
* TO "string" - match mails with "string" in the To:
106
+
* UNANSWERED - match mails that have not been answered
107
+
* UNDELETED - match mails that are not deleted
108
+
* UNFLAGGED - match mails that are not flagged
109
+
* UNKEYWORD "string" - match mails that do not have the keyword "string"
110
+
* UNSEEN - match mails which have not been read yet
111
111
*
112
112
* @return array Mails ids
113
113
*/
@@ -117,35 +117,35 @@ public function searchMailbox($criteria = 'ALL') {
0 commit comments