Package: imp3 Version: 3.2.6-1 Severity: normal
Courier IMAP server needs either 'folders' => 'INBOX.' or 'namespace' => 'INBOX.' in IMP3's server settings. In the latter case (with the settings below in servers.php), the Create Folder - function does not work. $servers['imap'] = array( 'name' => 'Gag-zor', 'server' => 'localhost', 'protocol' => 'imap/notls', 'port' => 143, 'folders' => '', 'namespace' => 'INBOX.', 'maildomain' => 'mydomain.tld', 'smtphost' => 'localhost', 'realm' => '', 'preferred' => '' ); How to reproduce: ---------------- Set up IMP3 against a Courier IMAP server with those settings. Log in, go to the Folders view. From Choose Action, choose Create Folder and type in eg. MyFolder. IMP should reply with The folder "MyFolder" was not created. This is what the server said: Invalid mailbox name. Typing in "INBOX.MyFolder" instead allows one to create the folder. My courier-imap package is version 3.0.8-3 (Source: courier (0.47-3)) Hack ---- The bug is probably in /usr/share/horde2/imp/folders.php, after line 163. If only one server is being used (or all servers are Courier), changing the first assignment to $new_mailbox helps: ---><----------- case CREATE_FOLDER: // evil // $new_mailbox = Horde::getFormData('new_mailbox'); $new_mailbox = "INBOX." . Horde::getFormData('new_mailbox'); if (!empty($new_mailbox)) { $new_mailbox = IMP::utf7Encode($new_mailbox); $folder_list = Horde::getFormData('folder_list'); if (is_array($folder_list) && ---><----------- -- System Information: Debian Release: 3.0 APT prefers testing APT policy: (990, 'testing') Architecture: i386 (i686) Kernel: Linux 2.4.19-guml0 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages imp3 depends on: ii apache [httpd] 1.3.33-2 Versatile, high-performance HTTP s ii debconf 1.4.30.10 Debian configuration management sy ii gettext 0.14.1-7 GNU Internationalization utilities ii horde2 2.2.7-1 The Horde Web Application Suite ii libapache-mod-php4 [phpapi-20 4:4.3.9-2 server-side, HTML-embedded scripti ii make 3.79.1-14 The GNU version of the "make" util ii perl 5.8.4-5 Larry Wall's Practical Extraction ii php4 4:4.3.9-1 server-side, HTML-embedded scripti ii php4-cli [phpapi-20020918] 4:4.3.9-2 command-line interpreter for the p ii php4-imap 4:4.3.9-2 IMAP module for php4 ii postfix [mail-transport-agent 2.1.4-5 A high-performance mail transport ii turba 1.2.2-3 A web based contact manager ii wwwconfig-common 0.0.41 Debian web auto configuration -- debconf information: * imp3/impauth: true imp3/imp2data_imported: false -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]