Home » Mail » Mail_IMAP » Bug #2533
Error while renaming folders
Details
| Submitted | 2004-10-14 23:07 UTC |
|---|---|
| From | benja0610 at hotmail dot com |
| Assigned | richy |
| Status | Closed |
| Package | Mail_IMAP |
| PHP Version | Irrelevant |
| OS | WinXP |
| Roadmaps | (Not assigned) |
Comments
[2004-10-14 23:07 UTC] benja0610 at hotmail dot com
Description:
------------
on anageMB.php
there's two minor bugs on the function that manage folders:
1- the name of one variable is wrong
2- the new name, and previous name while renaming a folders is switched (wrong parameters order)
Reproduce code:
---------------
on ManageMB.php line 95:
if (empty($rename)) {
should be:
if (empty($mb_rename)) {
------------------------
on ManageMB.php line 98:
if (@imap_renamemailbox($this->mailbox, $this->mailboxInfo['host'].'INBOX.'.$mb_rename, $this->mailboxInfo['host'].'INBOX.'.$mb_name)) {
should be:
if (@imap_renamemailbox($this->mailbox, $this->mailboxInfo['host'].'INBOX.'.$mb_name, $this->mailboxInfo['host'].'INBOX.'.$mb_rename)) {
Expected result:
----------------
the folder $mb_name is renamed to $mb_rename
Actual result:
--------------
nothing