Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

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

  1. neo4242002

    neo4242002 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    166
    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,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    cat /dev/null > /home/account/mail/domain.com/user/inbox
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. neo4242002

    neo4242002 Well-Known Member

    Joined:
    Jun 28, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    166
    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,460
    Likes Received:
    21
    Trophy Points:
    463
    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/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice