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

Expunge and moving messages #46

Closed
rboy1 opened this issue Mar 12, 2013 · 3 comments
Closed

Expunge and moving messages #46

rboy1 opened this issue Mar 12, 2013 · 3 comments

Comments

@rboy1
Copy link

rboy1 commented Mar 12, 2013

According to the documentation it says expunge is for deleting messages marked for deletion.

It also needs to be run after moving messages between mailboxes otherwise it leave it behind. Not sure if that's design or if the doc needs to be updated.

@NiKiZe
Copy link
Contributor

NiKiZe commented Mar 13, 2013

Sounds correct (based on my current knowledge and understanding), IMAP do normally not delete messages until they are expunged, Move is just copy and a delete operation.

Depending on the client a deleted message is still shown until it is expunged.

For the original explanation of expunge see the RFC http://tools.ietf.org/html/rfc3501#page-49
And i have also found this interesting: http://dovecot.org/imap-client-coding-howto.html

How would you suggest the docs should be updated?

@rboy1
Copy link
Author

rboy1 commented Mar 13, 2013

Would suggest the documentation say that it should be used when moving or deleting (currently it says only deleting).

Funny thing is yahoo won't show the moved/deleted message on webmail though the library still picks it up

@rboy1 rboy1 closed this as completed Mar 13, 2013
@NiKiZe
Copy link
Contributor

NiKiZe commented Mar 13, 2013

Most clients don't do expunge until you change folders and many not even then, I would simply recommend not to use expunge at all, and possibly filter messages that is marked as deleted.

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

2 participants