Skip to content

Mailbox->getSubscribed() and others call deleteFolder() and imap_deletemailbox() #61

@MikeyF-Anovia

Description

@MikeyF-Anovia

In php-imap2/src/Mailbox.php line 322+ the functions getSubscribed, listSubscribed, subscribe, unsubscribe all call deleteFolder() and imap_deletemailbox(). This seems odd to me. Is that correct?

public static function getSubscribed($imap, $mailbox)
{
    if (is_a($imap, Connection::class)) {
        $client = $imap->getClient();

        return $client->deleteFolder($mailbox);
    }

    return imap_deletemailbox($imap, $mailbox);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions