a6a035398366a3a04a98d65fe3eecda26548d592
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");
29 include("../src/load_prefs.php");
30 displayPageHeader($color, "None");
32 $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
33 $boxes = sqimap_mailbox_list($imapConnection, $boxes);
34 sqimap_logout($imapConnection);
37 <table width
=95% align
=center border
=0 cellpadding
=2 cellspacing
=0><tr
><td bgcolor
="<? echo $color[0] ?>">
38 <center
><b
><?
echo _("Options") . " - " . _("Folder Preferences"); ?
></b
></center
>
41 <form action
="options.php" method
=post
>
42 <table width
=100% cellpadding
=0 cellspacing
=2 border
=0>
44 <?
if ($show_prefix_option == true) { ?
>
46 <td align
=right nowrap
><?
echo _("Folder Path"); ?
>:
48 <?
if (isset ($folder_prefix))
49 echo " <input type=text name=folderprefix value=\"$folder_prefix\" size=35><br>";
51 echo " <input type=text name=folderprefix value=\"$default_folder_prefix\" size=35><br>";
58 echo "<tr><td nowrap align=right>";
59 echo _("Trash Folder:");
61 echo "<TT><SELECT NAME=trash>\n";
62 if ($move_to_trash == true)
63 echo "<option value=none>" . _("Don't use Trash");
65 echo "<option value=none selected>" . _("Do not use Trash");
67 for ($i = 0; $i < count($boxes); $i++
) {
69 if (strtolower($boxes[$i]["unformatted"]) == "inbox") {
72 if ($use_folder == true) {
73 $box = $boxes[$i]["unformatted-dm"];
74 $box2 = replace_spaces($boxes[$i]["formatted"]);
75 if (($boxes[$i]["unformatted"] == $trash_folder) && ($move_to_trash == true))
76 echo " <OPTION SELECTED VALUE=\"$box\">$box2\n";
78 echo " <OPTION VALUE=\"$box\">$box2\n";
81 echo "</SELECT></TT>\n";
86 echo "<tr><td nowrap align=right>";
87 echo _("Sent Folder:");
89 echo "<TT><SELECT NAME=sent>\n";
90 if ($move_to_sent == true)
91 echo "<option value=none>" . _("Don't use Sent");
93 echo "<option value=none selected>" . _("Do not use Sent");
95 for ($i = 0; $i < count($boxes); $i++
) {
97 if (strtolower($boxes[$i]["unformatted"]) == "inbox") {
100 if ($use_folder == true) {
101 $box = $boxes[$i]["unformatted-dm"];
102 $box2 = replace_spaces($boxes[$i]["formatted"]);
103 if (($boxes[$i]["unformatted"] == $sent_folder) && ($move_to_sent == true))
104 echo " <OPTION SELECTED VALUE=\"$box\">$box2\n";
106 echo " <OPTION VALUE=\"$box\">$box2\n";
109 echo "</SELECT></TT>\n";
113 <td valign
=top align
=right
>
115 <?
echo _("Unseen message notification"); ?
>:
118 <input type
=radio name
=unseennotify value
=1<?
if ($unseen_notify == 1) echo " checked"; ?
>> <?
echo _("No notification") ?
><br
>
119 <input type
=radio name
=unseennotify value
=2<?
if ($unseen_notify != 1 && $unseen_notify != 3) echo " checked"; ?
>> <?
echo _("Only INBOX") ?
><br
>
120 <input type
=radio name
=unseennotify value
=3<?
if ($unseen_notify == 3) echo " checked"; ?
>> <?
echo _("All Folders") ?
><br
>
125 <td valign
=top align
=right
>
127 <?
echo _("Unseen message notification type"); ?
>:
130 <input type
=radio name
=unseentype value
=1<?
if ($unseen_type < 2 ||
$unseen_type > 2) echo " checked"; ?
>> <?
echo _("Only unseen"); ?
> - (4)<br
>
131 <input type
=radio name
=unseentype value
=2<?
if ($unseen_type == 2) echo " checked"; ?
>> <?
echo _("Unseen and Total"); ?
> - (4/27)
137 <input type
="submit" value
="Submit" name
="submit_folder">