Fix escaping null characters in mailbox names.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 17 Aug 2010 05:32:22 +0000 (23:32 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 17 Aug 2010 07:10:46 +0000 (01:10 -0600)
commit42898815201e243f6b36b2daea0825bac1128eaf
tree0b44426bfaf7a6ac35f9fa3f66d99e912c3d170b
parente39391321ca247dbaca141b949008971022d2a60
Fix escaping null characters in mailbox names.

The null character can not be used in form elements. However, we use the
null character in mailbox names to indicate mailboxes/elements that do
not live on the IMAP server - necessary because null is the only
character technically not allowed for IMAP mailboxes.  So we need to
manually call IMP::formMbox() when creating forms to escape mailbox
names (and then when reading forms to unescape the names - but most of
the time this will be done automatically by
IMP::setCurrentMailboxInfo()).
13 files changed:
imp/js/folderprefs.js
imp/lib/Dimp.php
imp/lib/IMP.php
imp/lib/Imap/Tree.php
imp/lib/LoginTasks/SystemTask/UpgradeFromImp4.php
imp/lib/Message.php
imp/lib/Prefs/Ui.php
imp/lib/Search.php
imp/mailbox.php
imp/message.php
imp/templates/imp/flist/flist.html
imp/templates/prefs/initialpage.html
imp/templates/prefs/sentmail.html