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

delete mail host1 based on space\quota #453

Open
masterct88 opened this issue Apr 24, 2024 · 3 comments
Open

delete mail host1 based on space\quota #453

masterct88 opened this issue Apr 24, 2024 · 3 comments
Assignees
Labels
--delete1 Deletions Deletions issues

Comments

@masterct88
Copy link

Hi everyone, it is possible to delete older mail based on quota or space occupied in host1?
this is the command i use for me:

docker run --rm gilleslamiral/imapsync imapsync --host1 mail.com --user1 a@b.c --password1 'a' --host2 mail.local.com --user2 a@b.c --password2 'f' --delete1 --noexpungeaftereach --minage 90
a command like "--quota 900M" or "--spaceoccupied 750M" its available?

Thanks

@gilleslamiral gilleslamiral self-assigned this Apr 24, 2024
@gilleslamiral
Copy link
Member

No.
Well, I don't understand the behavior you want.

@masterct88
Copy link
Author

If you have a mailbox with 1000MB of space and you want to always keep 150 or 200MB free, is there a method or a command to keep only the newest 800 or 850MB on it, while older emails are deleted?

@gilleslamiral
Copy link
Member

If you have a mailbox with 1000MB of space and you want to always keep 150 or 200MB free, is there a method or a command to keep only the newest 800 or 850MB on it, while older emails are deleted?

No.
What you already do is a way to keep the mailbox at bay:
imapsync ... --delete1 --noexpungeaftereach --minage 90

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

No branches or pull requests

2 participants