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

Added method to access mailbox properties - including IMAP separator character #125

Merged
merged 3 commits into from
Jun 7, 2015

Conversation

benr77
Copy link
Contributor

@benr77 benr77 commented Mar 27, 2015

To access mailbox properties, you needed to call imap_getmailboxes(). However, the hasMailbox() function was calling this function but simply returning the result as a boolean, ignoring the useful data that the function returns - which crucially includes the IMAP separator character.

This PR simply adds another method - getMailboxDetails() - which can return the data from the imap_getmailboxes() function.

We then modify the hasMailbox() method to call getMailboxDetails() and return the result as a boolean. Fully backwards compatible.

Fixes issue #101

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 89.85% when pulling 545489e on benr77:imap-separator into b5b790e on tedious:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 89.85% when pulling ec9c2ff on benr77:imap-separator into b5b790e on tedious:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 89.85% when pulling 1c526b9 on benr77:imap-separator into b5b790e on tedious:master.

tedivm added a commit that referenced this pull request Jun 7, 2015
Added method to access mailbox properties - including IMAP separator character
@tedivm tedivm merged commit 6baf7fe into tedious:master Jun 7, 2015
@benr77 benr77 deleted the imap-separator branch June 15, 2015 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants