Announcement

Collapse
No announcement yet.

Automatically clearing an IMAP mailbox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Automatically clearing an IMAP mailbox

    Hi guys,

    I am just trying to write a script to clear out IMAP mailboxes.

    We have an email system which currently needs to be cleared manually by every user, but it would be a lot nicer if we either had a scheduled job that would do it for us.

    Another option, possibly better in fact, is having a script that is manually run, which will clear out all the mails.

    Features required:
    Being able to stop it running (if it's automatic)
    To clear out 9 different IMAP mailboxes

    I did try this myself first, but rapidly hit stumps. I'm not really looking for the full script yet - just wondering if anyone could point me in the direction of some good shell scripting resources...

    Thanks in advance

    P.

  • #2
    You could run fetchmail on them and have it dump the messages to /dev/null...
    Blah blah blah nick blah blah confusion, blah blah blah blah frog.

    Comment

    Working...
    X