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!

easiest way to empty an email account?

Discussion in 'E-mail Discussion' started by schwim, Apr 4, 2009.

  1. schwim

    schwim Well-Known Member

    Joined:
    Aug 2, 2006
    Messages:
    213
    Likes Received:
    0
    Trophy Points:
    166
    Hi there everyone,

    As the title suggests, I need to empty a couple email accounts. Preferrably, I'd like to be able to keep last x number of days, but if need be will empty them completely.

    Any suggestions are welcome.

    thanks,
    json
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,459
    Likes Received:
    418
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,741
    Likes Received:
    76
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    or just run

    cat /dev/null >/home/username/path_to_mailbox
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. schwim

    schwim Well-Known Member

    Joined:
    Aug 2, 2006
    Messages:
    213
    Likes Received:
    0
    Trophy Points:
    166
    Thanks very much to both of you for your help. I found that cmm was already installed on this server, so it was pretty much a piece of cake :)

    Thanks again for taking the time to help me out.
     
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