From: Jon A. <jo...@sq...> - 2008-05-27 03:02:42
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michael Peddemors wrote: | Should it not be: | | $ret = boolean_hook_function('special_mailbox',strtolower($box),1); | | In the function below... | | | /** | * Defines special mailboxes: given a mailbox name, it checks if this is a | * "special" one: INBOX, Trash, Sent or Draft. | */ | function isSpecialMailbox( $box ) { | global $trash_folder, $sent_folder, $draft_folder, | $move_to_trash, $move_to_sent, $save_as_draft; | | $ret = ( (strtolower($box) == 'inbox') || | isTrashMailbox($box) || isSentMailbox($box) || | isDraftMailbox($box) ); | | if ( !$ret ) { | $ret = boolean_hook_function('special_mailbox',$box,1); | } | return $ret; | } No, it shouldn't be. The only folder that is case-insensitive is INBOX per the IMAP specs (RFC3501). All other folders are treated in a rather vague manor per the specs, but case-sensitivity should be used. Try reading 5.1 of RFC3501. - -- Jon Angliss <jo...@sq...> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkg7eckACgkQK4PoFPj9H3NpPgCg+3+RbFMZ+sfNzeMhZrLLzPY+ wVYAniypDoQFc9dQdS1wqjfB1zXbpMGr =8Fxa -----END PGP SIGNATURE----- |