Hi,
I tried to delete main user e-mails using this guideline.
http://help.directadmin.com/item.php?id=433
The command to delete the main user e-mails is :
rm -f `find /home/$i/Maildir -mtime +${OLD_THAN_DAYS} | grep -E '/cur/|/new/'`
But I get "line 12: /bin/rm: Argument list too long" error. Clearly there is a directory with more number of e-mails then rm can handle.
According to this guideline :http://help.directadmin.com/item.php?id=327
We need to be using find . -type f -delete
Based on this two info, could someone re-write the line which will delete main user e-mails and confirm that it is all correct before I do something horrible
I tried to delete main user e-mails using this guideline.
http://help.directadmin.com/item.php?id=433
The command to delete the main user e-mails is :
rm -f `find /home/$i/Maildir -mtime +${OLD_THAN_DAYS} | grep -E '/cur/|/new/'`
But I get "line 12: /bin/rm: Argument list too long" error. Clearly there is a directory with more number of e-mails then rm can handle.
According to this guideline :http://help.directadmin.com/item.php?id=327
We need to be using find . -type f -delete
Based on this two info, could someone re-write the line which will delete main user e-mails and confirm that it is all correct before I do something horrible