A lightweight IMAP mail client for the command line
Quickly and conveniently check your mail if you're working in the command line.
To Install
Download pip
pip install pistachio-mail
Unzip the pistachio-mail archive, and navigate into it, and run:
python setup.py install
Usage
Command line arguments:
usage: pistachio [-h] [-m MAILBOX] [-d DATE] [-c] [-g MAIL_ID] [-s KEYWORD]
[-f FLAG [FLAG ...]] [-x _DELETE] [--od ON_DATE] [--sh]
[--lm]
Simple Terminal Email Client via IMAP
optional arguments:
-h, --help show this help message and exit
-m MAILBOX Show messages in this mailbox, from the specified date
or from the past month (see -d)
-d DATE Specify a date in the form of dd-mon-yyyy
-c change the username/password
-g MAIL_ID get a specific message based on its id
-s KEYWORD search for a message in a mailbox based on a keyword
-f FLAG [FLAG ...] search for messages with a certain flag --NOT FULLY
SUPPORTED YET (see IMAP search protocol for full list of
flags and formats,
https://tools.ietf.org/html/rfc3501#section-6.4.4)
-x _DELETE flag a message as deleted, specified by message id
--od ON_DATE display messages on a specific date, see -d for format
--lm Add flag if you want to see the mailboxes in your
account
To see which flags to include, visit https://tools.ietf.org/html/rfc3501#section-6.4.4