From 60573cd97504bd83474f35dba2b43427ccb2a755 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Mon, 29 Nov 1999 00:47:42 +0000 Subject: [PATCH] Folder manipulation update git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@30 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- config/config.php | 12 +++++++++ src/folders.php | 66 +++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 73 insertions(+), 5 deletions(-) diff --git a/config/config.php b/config/config.php index 99b1fa8c..9048b0aa 100644 --- a/config/config.php +++ b/config/config.php @@ -33,4 +33,16 @@ $move_to_trash = true; $trash_folder = "INBOX.Trash"; $auto_expunge = true; +/* Special Folders are folders that can't be manipulated like normal user created + folders can. A couple of examples would be "INBOX", "INBOX.Trash". We have + them set to Netscape's default mailboxes, but this obviously can be changed. + To add one, just add a new number to the array. +*/ +$special_folders[0] = "INBOX"; +$special_folders[1] = "INBOX.Trash"; +$special_folders[2] = "INBOX.Sent"; +$special_folders[3] = "INBOX.Drafts"; +$special_folders[4] = "INBOX.Templates"; + + ?> diff --git a/src/folders.php b/src/folders.php index a3abbf5b..7dc1947d 100644 --- a/src/folders.php +++ b/src/folders.php @@ -1,5 +1,14 @@ \n"; - echo readShortMailboxName($mailbox, "."); - echo "
\n"; + $boxes[$i] = $boxes[$i] . readShortMailboxName($mailbox, "."); + $long_name_boxes[$i] = $mailbox; } + + /** DELETING FOLDERS **/ + echo "
\n"; + echo "\n"; + echo "\n"; + echo "

\n"; + + /** CREATING FOLDERS **/ + echo "
\n"; + echo "\n"; + echo "  as a subfolder of  "; + echo "\n"; + echo "\n"; + echo "

\n"; + + /** RENAMING FOLDERS **/ + echo "
\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "

\n"; + ?> \ No newline at end of file -- 2.25.1