readmail

Description

BASH eMail client. Only POP and SMTP are supported.

Download

Latest version: readmail

The development version is available on GitHub.
You may easily clone the project by running:

$ git clone git://github.com/markusfisch/readmail

Requirements

A working GNU environment having bash, cat, clear, date, echo, grep, kill, less, mv, printf and rm.

Installation

  1. Download the file above

  2. Make it executable:

    $ chmod a+x readmail
  3. Place the script somewhere in your path, i.e. for a local install do:

    $ mv readmail ~/bin/readmail
  4. Set up your configuration, see below

Configuration

  1. Create ".readmailrc" in your home directory:

    $ vi ~/.readmailrc
  2. Put the following lines into it (fill in the values in brackets):

    POP_HOST='(your POP3 server)'
    POP_PORT=110
    POP_ACCOUNT='(your POP3 account)'
    POP_PASSWORD='(your POP3 password)'
  3. Append this block to configure your SMTP settings:

    SMTP_HOST='(your SMTP server)'
    SMTP_PORT=25
    SMTP_ACCOUNT='(your SMTP account)'
    SMTP_PASSWORD='(your SMTP password, this is optional)'
  4. You may also add a optional notification command:

    NOTIFICATION='xmessage "You've got mail" &'

    Alternatively, if you want xmessage to display the new messages:

    NOTIFICATION='readmail n q | xmessage -file - -center -buttons "" -title "Mail" &'
  5. TIP: If you use "@" for the name of the script, you have always quick access and can query your eMails by:

    $ @ n q

    In this case your configuration file must read ".@rc", of course.

License

readmail is licensed under the MIT license.