Now you've got me confused.
First, let's make sure we have our terms straight.
webmail in the generic or webmail in the DirectAdmin specific? in the DirectAdmin specific,
webmail means The uebimiau program.
The uebimiau program's main inbox is simply the main inbox for the user. If mail is staying in the uebimiau program's main inbox it's becase the user's email client isn't deleting it after downloading and reading it. That's a simple change in the user's local email client.
Other email boxes used by uebimiau are proprietary to uebimiau and you or your clients should delete the contents if your client doesn't want those emails.
You or your client can delete them using uebimiau, or you can delete them through the shell.
For some crazy reason I've never figured out, uebimiau stores email folders as subdirectories in a tmp subdirectory:
Code:
/var/www/html/webmail/tmp/username_example.com_localhost/foldername
I'd just delete the contents of each such directory.
(uebimiau, just as crazily, stores temporarily files in
/var/www/html/webmail/database/.)
If squirrelmail:
squirrelmail acts as a standard IMAP client; again, the inbox is the same as the user inbox, and the
fix is the same; the user should set his email client to stop saving emails on the server.
For emails moved into other folders: These are the same folders used by all imap clients, including desktop imap clients. You shouldn't delete this email unless you're positive your client is NOT depending on imap on any of his/her email clients (for example, blackberry). If the client is using IMAP then if you delete these emails you may, depending on the client's settings on his/her email clients, also cause the email to be deleted on the client's local system(s).
Otherwise, use squirrelmail to delete them; it's the safest way for imap.
Created? Emails don't get created by either uebimiau or squirrelmail unless the client uses them to send outgoing emails. Incoming emails in the inbox are put there so squirrelmail, uebimiau, and any other email program, including desktop email programs, can get them. If you delete them that's email the client may not have read. Emails don't appear in other folders in squirrelmail unless the client moves them there, either using squirrelmail or if the client uses imap to read mail, perhaps in the client's desktop email program.
And of course none of this really has anything to do with DirectAdmin

.
Jeff