|
@@ -8,10 +8,10 @@
|
|
|
/******************************************************************************
|
|
|
** Expunges a mailbox
|
|
|
******************************************************************************/
|
|
|
- function sqimap_mailbox_expunge ($imap_stream, $mailbox) {
|
|
|
+ function sqimap_mailbox_expunge ($imap_stream, $mailbox,$handle_errors) {
|
|
|
sqimap_mailbox_select ($imap_stream, $mailbox);
|
|
|
fputs ($imap_stream, "a001 EXPUNGE\r\n");
|
|
|
- $read = sqimap_read_data($imap_stream, "a001", true, $response, $message);
|
|
|
+ $read = sqimap_read_data($imap_stream, "a001", $handle_errors, $response, $message);
|
|
|
sqimap_mailbox_close ($imap_stream);
|
|
|
}
|
|
|
|
|
@@ -53,7 +53,7 @@
|
|
|
}
|
|
|
if ($auto_expunge) {
|
|
|
fputs ($imap_stream, "a001 EXPUNGE\r\n");
|
|
|
- $tmp = sqimap_read_data($imap_stream, "a001", true, $a, $b);
|
|
|
+ $tmp = sqimap_read_data($imap_stream, "a001", false, $a, $b);
|
|
|
}
|
|
|
}
|
|
|
|