[imp] help in empty the trash folder
Liu Jinhui
hui@student.dlut.edu.cn
Sat Oct 26 02:31:08 2002
In imp-3.1 there is a new menu entry which can empty the
trash folder. But when I used this function, I got the error:
------------------------------------------------------------
Warning: Bad arguments to implode() in /var/www/horde/imp/lib/Message.php on line 148
Fatal error: Call to a member function on a non-object in /var/www/horde/imp/mailbox.php on line 370
Warning: IMAP protocol error: Invalid sequence in Uid (errflg=2) in Unknown on line 0
Warning: Invalid sequence in Uid (errflg=2) in Unknown on line 0
------------------------------------------------------------
I looked into the mailbox.php :
-------------------------------------------------------------
case EMPTY_MAILBOX:
$check = @imap_check($imp['stream']);
if (is_object($check) && !empty($check->Nmsgs)) {
if (!IMP_Message::delete('1:*')) {
~~~~~~~~~~~
$notification->push(sprintf(_("There was a problem expunging the mailbox. This is what the server said: %s"), imap_last_error()), 'horde.error');
}
}
if ($url = Horde::getFormData('return_url')) {
header('Location: ' . $url);
exit;
}
break;
}
-------------------------------------------------------------
where is the problem?
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Liu Jinhui
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡=A1hui@student.dlut.edu.cn
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2002-10-26