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 delete email before 2014.12.31?

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

  1. sadasan

    sadasan Active Member

    Joined:
    Feb 10, 2015
    Messages:
    26
    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:
    779
    Likes Received:
    274
    Trophy Points:
    113
    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 :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

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

    Thanks!
     
    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