The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to clean a mail box with a large number of emails

Discussion in 'E-mail Discussions' started by neo4242002, Sep 15, 2005.

  1. neo4242002

    neo4242002 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    I have an email account (catch-all one) containing a large number of emails. Most of these emails are old and the client wants me to clean them all older than this X month (ex: September).

    Is there are any easy way of doing this through SSHor WHM ? … otherwise It would take couple of hours for me to clean them through webmail… :(

    Can someone help me to find a better solution ?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    cat /dev/null > /home/account/mail/domain.com/user/inbox
     
  3. neo4242002

    neo4242002 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Hello chirpy... :)

    thanks for the quick reply.. but I believe that will clean all my emails at once right?.. well what i want is to clean emails between certain period of time.. for ex: I want to delete any emails older than October 31t 2005 or all email 01 October 2005 to 31 October 2005. :mad:

    i wish you can help me again :)

    many thanks
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I'm not aware of a tool to do that with mbox format. It would be trivial if you were using maildir. You could use a simple email POP3 reader that would allow you to easily delete emails such as Magic Mail Monitor:
    http://mmm3.sourceforge.net/
     
Loading...

Share This Page