$temp .= $char;
$char = substr($mailbox, $i, 1);
}
+ echo $tmp;
return strrev($temp);
}
}
}
+ function deleteMessages($imapConnection, $a, $b, $numMessages, $trash_folder, $move_to_trash, $auto_expunge, $mailbox) {
+ /** check if they would like to move it to the trash folder or not */
+ if ($move_to_trash == true) {
+ $success = copyMessages($imapConnection, $a, $b, $trash_folder);
+ if ($success == true)
+ setMessageFlag($imapConnection, $a, $b, "Deleted");
+ } else {
+ setMessageFlag($imapConnection, $a, $b, "Deleted");
+ }
+ }
+ function stripComments($line) {
+ if (strpos($line, ";")) {
+ $line = substr($line, 0, strpos($line, ";"));
+ }
+
+ if (strpos($line, "(") && strpos($line, ")")) {
+ $full_line = $full_line . substr($line, 0, strpos($line, "("));
+ $full_line = $full_line . substr($line, strpos($line, ")")+1, strlen($line) - strpos($line, ")"));
+ } else {
+ $full_line = $line;
+ }
+ return $full_line;
+ }
?>