View previous topic :: View next topic |
Author |
Message |
Shopro l33t
Joined: 12 May 2004 Posts: 678 Location: Dayton, OH, USA
|
Posted: Wed Nov 09, 2005 9:59 am Post subject: Removing emails from server. |
|
|
I'm running a small qmail + courier-imap + vpopmail server at home. It has about 150 users all having about 1GB mailbox size. Now I'm having a problem with one of the accounts. My friend had his firewall logs sent to his mailbox every 10sec interval. Now he has about 10.000+ emails with the subject: test in them, and i'm wondering if there is a command like "grep something" to remove only those emails from his mailbox dir on my server. _________________ Just because I have nothing to say is no reason why you shouldn't listen. |
|
Back to top |
|
|
Cocker68 Apprentice
Joined: 16 Jan 2003 Posts: 227 Location: Germany
|
Posted: Wed Nov 09, 2005 12:22 pm Post subject: |
|
|
The e-mails of Your friend John stay in
/home/john/.maildir/, right?
Then I would suggest something like Code: | # find /home/john/.maildir -type f -exec grep -l '^Subject: test$' {} \; | xargs rm -f |
- Cocker :wq |
|
Back to top |
|
|
Shopro l33t
Joined: 12 May 2004 Posts: 678 Location: Dayton, OH, USA
|
Posted: Wed Nov 09, 2005 12:41 pm Post subject: |
|
|
Actually i think they are somewhere in /var, as it is an virtual email server serving 4 different mail hosts. Can't say for sure as i'm not at home so i can't access the server at the moment. But i can easily provide extra information about it later on, few hours. I remember that they are in a folder that has files named something like this: maildomainname.com.314324890723470283743423 _________________ Just because I have nothing to say is no reason why you shouldn't listen. |
|
Back to top |
|
|
|