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

Problem with a IMAP resource stream #245

Closed
wujku opened this issue Oct 16, 2017 · 5 comments
Closed

Problem with a IMAP resource stream #245

wujku opened this issue Oct 16, 2017 · 5 comments
Labels

Comments

@wujku
Copy link
Contributor

wujku commented Oct 16, 2017

When I tried move message from INBOX to Later mailbox, $message->move($later); has stream from Later mailbox and imap_mail_move tried move message 100 to yourself.

$inbox = $connection->getMailbox('INBOX');
$later = $connection->getMailbox('Later');
$status = $later->getStatus();
$message = $inbox->getMessage(100);

$message->move($later);
@Slamdunk Slamdunk added the bug label Oct 16, 2017
@Slamdunk
Copy link
Collaborator

😮

I've reproduced the bug, this has major impacts because every imap_* call must have a reinitialized resource; hope to push a fix soon.

@wujku
Copy link
Contributor Author

wujku commented Oct 16, 2017

This can also affect other methods.
How do you want to solve this problem?

@Slamdunk
Copy link
Collaborator

Passing to Ddeboer\Imap\ImapResource the mailbox context and reinitializing it at every getStream() call.

This bug is present from the beginning of the library.

@Slamdunk
Copy link
Collaborator

Close by #247

@Slamdunk
Copy link
Collaborator

Released in 1.0.7

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

No branches or pull requests

2 participants