Coder Social home page Coder Social logo

imapeval's Introduction

imapeval

IMAP folder evaluator

Description

This perl script connects to an IMAP host with credentials you provide, and returns a report of the number of messages in and total size of each subfolder. The report can be sorted by folder name, message count, or folder size, in ascending or descending order. Folder sizes can be displayed in B, KB, MB, or GB.

Prerequisites

You'll need these non-standard libraries (install these and any dependencies):

  • CPAN modules:
  • Net::IMAP::Simple
  • Email::Simple
  • IO::Prompt
  • Ubuntu/Debian packages:
  • libnet-imap-simple-perl
  • libemail-simple-perl
  • libio-prompt-perl
  • RedHat (et al) packages:
  • perl-Net-IMAP-Simple
  • perl-Email-Simple
  • there is no package for IO::Prompt in the standard repositories

Usage

Usage: imapeval [-h] [-u] [-p] [-f|-c|-z] [-a|-d] [-b|-k|-m|-g] [-v] [-h]
    Connection credentials will be prompted for if not provided on the command line
        --host, -i          IMAP hostname to connect to
        --user, -u          username for connection credentials
        --password, -p      password for connection credentials

    Sort selection options are mutually exclusive
        --sortfolder, -f    sort by folder name (default)
        --sortcount, -c     sort by count of messages in folder
        --sortsize, -z      sort by size of folder

    Sort direction options are mutually exclusive
        --ascending, -a     sort ascending (default)
        --descending, -d    sort descending

    Size formatting options are mutually exclusive
        --bytes, -b         display size in bytes
        --kilobytes, -k     display size in kilobytes
        --megabytes, -m     display size in megabytes (default)
        --gigabytes, -g     display size in gigabytes

        --verbose, -v       be a little more verbose
        --help, -h          display this help

Author

Seth D. Galitzer [email protected]

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.