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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to delete email before 2014.12.31?

Discussion in 'General Discussion' started by sadasan, Jul 17, 2017.

  1. sadasan

    sadasan Member

    Joined:
    Feb 10, 2015
    Messages:
    21
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hello,

    cPanel has the function of email disk usage with ver.64.

    I want to delete the emails(imap) that the date is before 2014.12.31.
    Then I have to execute "Custom query".

    How should I write in the box at the custom query?
    I read the devecot documentation, but could not find the way.

    Please advise me.

    Thank you.
     

    Attached Files:

  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    327
    Likes Received:
    94
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    From the dovecot docs, I would think the following code would do the trick
    Code:
    savedbefore 2014-12-31
    This is built using the
    and the
    Do let us know if it works :)
     
    cPanelMichael likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The previous post should help. Let us know if you have additional questions.

    Thanks!
     
Loading...

Share This Page