
Originally Posted by
aag73
Hi, thanks for the reply, I guess forcing to empty the Trash was what I was looking for.
I guess I'm just trying to find out if using such a script would create havoc in something else, for example freeze up horde or not allowing customers to download e-mail. I'm not an expert in maildir or courier.
I think you should probably have to run ...
Code:
/scripts/generate_maildirsize --allaccounts --force
after your script execution, to ensure the usage reports being correctly updated. The case is, if you manually delete files from the cur/new folders, you should run generate_maildirsize to sync the contents of maildirsize with the new scenario.
You can also run it from the console in a more graphical and specific way:
Code:
/scripts/generate_maildirsize --verbose --allaccounts --force username
will show you how the sync process goes on, and only applying it for username user
what I really really don't know, is whether generate_maildirsize really takes in account specifically the Trash folder or not.
Here should come somebody from staff to illuminate us.