From 6eac53936ea7af48d33812e047df08719b05bb0a Mon Sep 17 00:00:00 2001 From: ondrass Date: Mon, 25 Sep 2000 08:50:39 +0000 Subject: [PATCH] Delete in Trash does Purge. OndraS. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@757 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_messages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 9af572e9..3d6c8f0b 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -21,7 +21,7 @@ function sqimap_messages_delete ($imap_stream, $start, $end, $mailbox) { global $move_to_trash, $trash_folder, $auto_expunge; - if (($move_to_trash == true) && (sqimap_mailbox_exists($imap_stream, $trash_folder))) { + if (($move_to_trash == true) && (sqimap_mailbox_exists($imap_stream, $trash_folder) && ($mailbox != $trash_folder))) { sqimap_messages_copy ($imap_stream, $start, $end, $trash_folder); sqimap_messages_flag ($imap_stream, $start, $end, "Deleted"); } else { -- 2.25.1