Re: Small Question in imap_mailbox.php function..
Jon Angliss <[email protected]>
| Newsgroups | gmane.mail.squirrelmail.devel |
|---|---|
| Message-ID | <[email protected]> |
-----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
<[email protected]>
-----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-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel