#124 Default INBOX.* folders defeat folder Delimeter logic

closed-fixed
None
5
2005-11-09
2005-09-08
Jonni Lehtiranta
No

My installation is qmail + binc-imap + squirrelmail,
and updating these components (to netqmail 1.05, binc
1.2.13final, squirrel 1.4.5 (from 1.4.3a)) broke the
system with the following error:

ERROR: Could not complete request.
Query: CREATE "INBOX.Sent"
Reason Given: CREATE failed: With a Maildir++ depot,
you must create all mailboxes under INBOX. Try creating
INBOX/INBOX.Sent.

being shown where the channel list should be. The
problem is that binc-imap doesn't recognise "." as a
folder delimiter. Now, the Delimiter setting in
Squirrelmail conf.pl's Server -> IMAP settings does not
help. "detect" used to work, now changing it to "/",
counterintuitively, doesn't help either.

I figured the problem is in the Folder Defaults
(conf.pl). Settings 3, 4 and 5 are "INBOX.Trash",
"INBOX.Sent" and "INBOX.Drafts". The problem is worked
around by changing these to use the "/" symbol or, as I
did it, setting Default Folder Prefix to "INBOX/" and
3,4,5 to "Trash", "Sent" and "Drafts".

This stops some configurations (those with IMAP servers
preferring "/") from functioning properly and, while
it's a configuration "bug", I think it should be
improved upon.

I don't know squirrelmail internals, but one possible
solution might be replacing any dots and slashes in
Folder Defaults fields 1,3,4,5 by the correct delimiter
previously detected or set.

Discussion

  • Tomas Kuliavas
    Tomas Kuliavas
    2005-09-08

    Logged In: YES
    user_id=225877

    try using courier preset.

    backup current configuration, then

    conf.pl -> d -> courier -> save config

    If it does not work - try finding correct preset
    combination. 1.5.1cvs contains similar dovecot preset. You
    should change default delimiter and folder prefix options
    only if preset does not work correctly.

     
  • Tomas Kuliavas
    Tomas Kuliavas
    2005-09-09

    Logged In: YES
    user_id=225877

    todo for this sunday. test bincimap and write preset for it.

     
  • Tomas Kuliavas
    Tomas Kuliavas
    2005-09-09

    • milestone: --> 101719
    • assigned_to: nobody --> tokul
     
  • Logged In: YES
    user_id=572577

    I believe a preset would solve the problem very well. As far
    as I can tell binc-imap+squirrel works great after changing
    dots to slashes. Binc-imap might not be easily testable
    without qmail or something else that uses Maildir and
    depending on the Binc settings, folders might need to be
    under INBOX. That is the default setting for Maildir++ mail
    depot.

    I'm sure this will save a lot of headache from Binc users.

     
  • Tomas Kuliavas
    Tomas Kuliavas
    2005-09-09

    Logged In: YES
    user_id=225877

    * Default (1.2.13) configuration with Maildir++ depot and /
    delimiter
    imap_server_type = bincimap (will be used to handle INBOX in
    folder management)
    default_folder_prefix = INBOX/
    trash_folder = Trash
    sent_folder = Sent
    draft_folder = Drafts
    show_prefix_option = false
    default_sub_of_inbox = false
    show_contain_subfolders_option = false
    optional_delimiter = /
    delete_folder = true
    force_username_lowercase = false (depends on checkpassword)

    * Default (1.3.4) configuration with IMAPdir depot
    imap_server_type = bincimap
    default_folder_prefix = <none>
    trash_folder = Trash
    sent_folder = Sent
    draft_folder = Drafts
    show_prefix_option = false
    default_sub_of_inbox = false
    show_contain_subfolders_option = false
    optional_delimiter = /
    delete_folder = true
    force_username_lowercase = false (depends on checkpassword)

    * Configuration with Maildir++ depot and . delimiter - use
    courier preset.

    src/folders.php must be modified to handle Maildir++ setup.

    bincimap documents
    (http://www.bincimap.org/bincimap-faq.html#q14 and mans)
    must be updated to indicate that dot delimiter can be used
    only in non-default configuration.

    Automatic configuration might work only in bincimap 1.3.4+,
    if SquirrelMail adds NAMESPACE support.

     
  • Tomas Kuliavas
    Tomas Kuliavas
    2005-09-10

    • labels: 102902 -->
    • milestone: 101719 -->
     
  • Tomas Kuliavas
    Tomas Kuliavas
    2005-09-10

    Logged In: YES
    user_id=225877

    added to 1.5.1cvs

    If you use Maildir++ depot, check src/folder.php difference
    between 1.140 and 1.141 revisions.

     
  • Tomas Kuliavas
    Tomas Kuliavas
    2005-11-09

    • status: open --> closed-fixed
     
  • Tomas Kuliavas
    Tomas Kuliavas
    2005-11-09

    Logged In: YES
    user_id=225877

    Binc IMAP preset and src/folder.php fixes are added to
    1.4.6cvs. Preset should be available in 1.4.6 package.