Skip to content

Getting all folders (names only)? #161

@osworx

Description

@osworx

After a while, I have a new question: is there a change to get the folder names only?

ImapEngine has this here:
$folders = $mailbox->folders()->get();

But using this is resulting in a complex object through the DirectoryTree\ImapEngine\Collections\FolderCollection

What I would need is a result only giving me the folder names.
Why I need such?
Because have to check if a specific folder is already existing - if not, I'm not allowed to create a new (because of restrictions on the called mailserver).

So, the final result should be only the existing folder names.

thx in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions