PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Mail » Mail_IMAP » Bug #2533

Error while renaming folders

Details

Submitted2004-10-14 23:07 UTC
Frombenja0610 at hotmail dot com
Assignedrichy
StatusClosed
PackageMail_IMAP
PHP VersionIrrelevant
OSWinXP
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