readmail

Read and write eMail at the command line

Download

Latest version: readmail 1.0.2

Description

A (very simple) eMail-client written completely in bash (requires only some very common system tools). You can use this script on almost any *nix machine to read and write your mail.

Requirements

A working GNU environment providing those programs: bash, cat, clear, date, echo, grep, kill, less, mv, printf, rm

Installation

  1. Be sure your system meets the above requirements
  2. Download file above
  3. Make script executable:
    $ chmod a+x readmail
  4. Place the script somewhere in your path, i.e. for a local install do:
    $ mv readmail ~/bin/readmail
  5. Set up your configuration, see below

Configuration

  1. Create a resource configuration file with the name of the scirpt (i.e. ".readmailrc") in your home directory:
    $ vi ~/.readmailrc
  2. Place the following line into the configuration file to configure your POP3 settings (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)
  4. You may also append an optional notification command:
    notification: xmessage "You've got mail" &
  5. TIP: If you use "@" for the name of the script, you have always quick access and can query your mails by:
    $ @ n q
    In this case your configuration file must read ".@rc", of course.

License

This software is open source, please read the disclaimer.