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

Move and Delete Message not working #112

Closed
pedrosoares opened this issue Mar 23, 2016 · 5 comments
Closed

Move and Delete Message not working #112

pedrosoares opened this issue Mar 23, 2016 · 5 comments

Comments

@pedrosoares
Copy link

The Move Message are creating a copy and Delete Message not work.

@artemevsin
Copy link

can you provide example?

@pedrosoares
Copy link
Author

@artemevsin
Copy link

There is Mailbox::expunge() method. You can use it like this:

$mailbox = $this->connection->getMailbox('INBOX');
$mailboxTo = $this->connection->getMailbox('ARCHIVE');

$messages = $mailbox->getMessages();
foreach ($messages as $message) {
    $message->move($mailboxTo); //  or $message->delete();
}
$mailbox->expunge();

@pedrosoares
Copy link
Author

True, work now, thanks. And about some type of attachments are not recognized from this issue: #74? I fix this problem too in my Fork, if you wanna see, feel free.

@ddeboer
Copy link
Owner

ddeboer commented May 6, 2016

Glad that you got it working! Please open a PR on this repository for the attachment issue.

@ddeboer ddeboer closed this as completed May 6, 2016
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

No branches or pull requests

3 participants