b7b87862e949c650f4eaf5d6a637e68c08b3d16c
[squirrelmail.git] / src / delete_message.php
1 <?
2 include("../config/config.php");
3 include("../functions/mailbox.php");
4 include("../functions/strings.php");
5 include("../functions/page_header.php");
6 include("../functions/display_messages.php");
7 include("../functions/imap.php");
8
9 include("../src/load_prefs.php");
10
11 echo "<HTML><BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
12
13 $imapConnection = loginToImapServer($username, $key, $imapServerAddress);
14 selectMailbox($imapConnection, $mailbox, $numMessages, $imapServerAddress);
15
16 displayPageHeader($color, $mailbox);
17
18 deleteMessages($imapConnection, $message, $message, $numMessages, $trash_folder, $move_to_trash, $auto_expunge, $mailbox);
19 messages_deleted_message($mailbox, $sort, $startMessage, $color);
20 ?>
21 </BODY></HTML>