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
Download the file above
Make it executable:
$ chmod a+x readmail
Place the script somewhere in your path, i.e. for a local install do:
$ mv readmail ~/bin/readmail
Set up your configuration, see below
Configuration
Create ".readmailrc" in your home directory:
$ vi ~/.readmailrc
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)'
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)'
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" &'
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.