Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get sent mailbox #508

Open
Herz3h opened this issue Jun 18, 2021 · 2 comments
Open

Get sent mailbox #508

Herz3h opened this issue Jun 18, 2021 · 2 comments

Comments

@Herz3h
Copy link

Herz3h commented Jun 18, 2021

I previously used Horde_Imap_Client and it had this feature of fetching mailboxes attributes and adding \sent attribute on the sent mailbox. I've tried to do the same with this library with $mailbox->getAttributes(), but it returns a number 64. Not sure what this means.

Is there a similar way to filter mailbox by \sent attribute ?

Thank you

@Herz3h
Copy link
Author

Herz3h commented Jun 22, 2021

Apparently this an imap extension that allows the client to specify SPECIAL-USE, this could be very helpful https://datatracker.ietf.org/doc/html/rfc6154

@Slamdunk
Copy link
Collaborator

Hi, Mailbox::getAttributes return the attributes gathered by imap_getmailboxes, see https://www.php.net/manual/en/function.imap-getmailboxes.php#refsect1-function.imap-getmailboxes-returnvalues

$ php -r 'print_r(get_defined_constants());'| grep LATT_
    [LATT_NOINFERIORS] => 1
    [LATT_NOSELECT] => 2
    [LATT_MARKED] => 4
    [LATT_UNMARKED] => 8
    [LATT_REFERRAL] => 16
    [LATT_HASCHILDREN] => 32
    [LATT_HASNOCHILDREN] => 64

This library is just an OOP wrapper to the imap extension, while Horde seems to be a native implementation of the IMAP protocol.

If you find a way within php-imap ext to have this feature, we can implement it too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants