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 messages? #67

Open
unrzn0 opened this issue Feb 7, 2022 · 4 comments
Open

expunge messages? #67

unrzn0 opened this issue Feb 7, 2022 · 4 comments

Comments

@unrzn0
Copy link

unrzn0 commented Feb 7, 2022

marking dupes is great, but actually expunging them would be also great. Any hints how to also get rid of messages to free space?

@quentinsf
Copy link
Owner

Ah, that depends a lot on your mail server and on your mail client - see the first section of the README.

Probably, once IMAPdedup has done its work, you can just open your normal mail client and tidy up your deleted messages.

@unrzn0
Copy link
Author

unrzn0 commented Feb 7, 2022

that depends on the client and also some clients only allow that for certain mailboxes. I thought this is a standard IMAP command that could be executed on a mailbox (maybe also in combination with displaying the "to be expunged" messages and a -n option that would do the expunge dry-run)?

@quentinsf
Copy link
Owner

Ah, you're quite right: there is an EXPUNGE command:
https://datatracker.ietf.org/doc/html/rfc3501#section-6.4.3
I think, when I first wrote this, I probably decided that was too dangerous an operation! And I haven't yet seen an email client that couldn't expunge them for me.

But I'll re-open this issue in case I, or anyone else, gets around to adding an option to do an EXPUNGE on any mailbox with deleted message, and suitable warning in the documentation that you use it at your own risk!

Thanks,
Quentin

@quentinsf quentinsf reopened this Feb 7, 2022
@McPringle
Copy link

There is a PR for this feature: #80

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