5 ** Copyright (c) 1999-2000 The SquirrelMail development team
6 ** Licensed under the GNU GPL. For full terms see the file COPYING.
8 ** Displays all options relating to folders
14 if (!isset($config_php))
15 include("../config/config.php");
16 if (!isset($strings_php))
17 include("../functions/strings.php");
18 if (!isset($page_header_php))
19 include("../functions/page_header.php");
20 if (!isset($display_messages_php))
21 include("../functions/display_messages.php");
22 if (!isset($imap_php))
23 include("../functions/imap.php");
24 if (!isset($array_php))
25 include("../functions/array.php");
26 if (!isset($i18n_php))
27 include("../functions/i18n.php");
28 if (!isset($plugin_php))
29 include("../functions/plugin.php");
31 include("../src/load_prefs.php");
32 displayPageHeader($color, "None");
34 $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
35 $boxes = sqimap_mailbox_list($imapConnection, $boxes);
36 sqimap_logout($imapConnection);
39 <table width
=95% align
=center border
=0 cellpadding
=2 cellspacing
=0><tr
><td bgcolor
="<?php echo $color[0] ?>">
40 <center
><b
><?php
echo _("Options") . " - " . _("Folder Preferences"); ?
></b
></center
>
43 <form name
=f action
="options.php" method
=post
>
44 <table width
=100% cellpadding
=0 cellspacing
=2 border
=0>
46 <?php
if ($show_prefix_option == true) { ?
>
48 <td align
=right nowrap
><?php
echo _("Folder Path"); ?
>:
50 <?php
if (isset ($folder_prefix))
51 echo " <input type=text name=folderprefix value=\"$folder_prefix\" size=35><br>";
53 echo " <input type=text name=folderprefix value=\"$default_folder_prefix\" size=35><br>";
60 echo "<tr><td nowrap align=right>";
61 echo _("Trash Folder:");
63 echo "<TT><SELECT NAME=trash>\n";
64 if ($move_to_trash == true)
65 echo "<option value=none>" . _("Don't use Trash");
67 echo "<option value=none selected>" . _("Do not use Trash");
69 for ($i = 0; $i < count($boxes); $i++
) {
71 if (strtolower($boxes[$i]["unformatted"]) == "inbox") {
74 if ($use_folder == true) {
75 $box = $boxes[$i]["unformatted-dm"];
76 $box2 = replace_spaces($boxes[$i]["formatted"]);
77 if (($boxes[$i]["unformatted"] == $trash_folder) && ($move_to_trash == true))
78 echo " <OPTION SELECTED VALUE=\"$box\">$box2\n";
80 echo " <OPTION VALUE=\"$box\">$box2\n";
83 echo "</SELECT></TT>\n";
88 echo "<tr><td nowrap align=right>";
89 echo _("Sent Folder:");
91 echo "<TT><SELECT NAME=sent>\n";
92 if ($move_to_sent == true)
93 echo "<option value=none>" . _("Don't use Sent");
95 echo "<option value=none selected>" . _("Do not use Sent");
97 for ($i = 0; $i < count($boxes); $i++
) {
99 if (strtolower($boxes[$i]["unformatted"]) == "inbox") {
102 if ($use_folder == true) {
103 $box = $boxes[$i]["unformatted-dm"];
104 $box2 = replace_spaces($boxes[$i]["formatted"]);
105 if (($boxes[$i]["unformatted"] == $sent_folder) && ($move_to_sent == true))
106 echo " <OPTION SELECTED VALUE=\"$box\">$box2\n";
108 echo " <OPTION VALUE=\"$box\">$box2\n";
111 echo "</SELECT></TT>\n";
115 <td valign
=top align
=right
>
117 <?php
echo _("Unseen message notification"); ?
>:
120 <input type
=radio name
=unseennotify value
=1<?php
if ($unseen_notify == 1) echo " checked"; ?
>> <?php
echo _("No notification") ?
><br
>
121 <input type
=radio name
=unseennotify value
=2<?php
if ($unseen_notify != 1 && $unseen_notify != 3) echo " checked"; ?
>> <?php
echo _("Only INBOX") ?
><br
>
122 <input type
=radio name
=unseennotify value
=3<?php
if ($unseen_notify == 3) echo " checked"; ?
>> <?php
echo _("All Folders") ?
><br
>
127 <td valign
=top align
=right
>
129 <?php
echo _("Unseen message notification type"); ?
>:
132 <input type
=radio name
=unseentype value
=1<?php
if ($unseen_type < 2 ||
$unseen_type > 2) echo " checked"; ?
>> <?php
echo _("Only unseen"); ?
> - (4)<br
>
133 <input type
=radio name
=unseentype value
=2<?php
if ($unseen_type == 2) echo " checked"; ?
>> <?php
echo _("Unseen and Total"); ?
> - (4/27)
136 <?php
do_hook("options_folders_inside"); ?
>
140 <input type
="submit" value
="<?php echo _("Submit
"); ?>" name
="submit_folder">
145 <?php
do_hook("options_folders_bottom"); ?
>