- sqimap_mailbox_select($imapConnection, $mailbox);
- sqimap_msgs_list_delete($imapConnection, $mailbox, array($spamcop_is_composing));
- if ($auto_expunge)
- sqimap_mailbox_expunge($imapConnection, $mailbox, true);
+ sqimap_mailbox_select($imapConnection, $mailbox);
+ sqimap_msgs_list_delete($imapConnection, $mailbox, array($spamcop_is_composing));
+ if ($auto_expunge)
+ sqimap_mailbox_expunge($imapConnection, $mailbox, true);
+ }
+ if (! $spamcop_save) {
+ // disable use of send folder.
+ // Temporally override in order to disable saving of 'reply anyway' messages.
+ global $default_move_to_sent;
+ $default_move_to_sent=false;
+ }
+ // change default email composition setting. Plugin always operates in right frame.
+ // make sure that compose.php redirects to right page. Temporally override.
+ global $compose_new_win;
+ $compose_new_win = false;