* - editing the message shows some other information
* - deleting marks the message for deletion but doesn't expunge the mailbox
* - inserting or updating the message does nothing
-* @link http://adminer.org/static/plugins/imap.png
+* @link https://www.adminer.org/static/plugins/imap.png
*/
namespace Adminer;
return imap_deletemailbox($this->imap, $this->mailbox . $name);
}
- function expunge($name) {
- return imap_expunge($this->imap);
+ function expunge() {
+ return imap_expunge();
}
}
}
function truncate_tables($tables) {
- $return = true;
- foreach ($tables as $name) {
- $return = $return && connection()->expunge($name);
- }
- return $return;
+ return connection()->expunge($name);
}
function connect($credentials) {