Giter Site home page Giter Site logo

aristipp / imapexpire Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikecardwell/imapexpire

0.0 2.0 0.0 96 KB

IMAPExpire is a Perl script that will connect via IMAP and delete messages from specified folders over a certain age.

Perl 100.00%

imapexpire's Introduction

* Author: Mike Cardwell <[email protected]> https://grepular.com/

IMAPExpire is a Perl script that will connect via IMAP and delete messages from
specified folders over a certain age. It relies on a single third party Perl
module to be installed from CPAN named IMAP::Client.

Example 1: Delete all messages older than 7 days from all folders directly
beneath (and including) the INBOX folder.

IMAPExpire --user username --pass password --folders "INBOX" "INBOX/%" --age 7

Run the application with no arguments to see a description of all of the
options:

Required arguments:
   --user username         : The username to log in to IMAP with
   --pass password         : The password to log in to IMAP with
   --passfile file         : An alternative to --pass. File contains the password
   --folders f1 f2         : A list of folder search strings to find the folders
   --age num               : Delete emails over num days old

Optional arguments:
   --debug num             : Set a debug level from 1-9
   --ssl or --tls          : If you don't choose one of these it defaults to an
                           : unencrypted connection
   --host ip.address       : Defaults to 127.0.0.1
   --port port             : Defaults to 143 or 993 depending on ssl/tls
   --authas user           : To authenticate as a user other than the one in
                           : --user (If this doesn't make sense to you, you
                           : don't need it)
   --test                  : Just display what *would* happen. Don't do the deletions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.