Giter Club home page Giter Club logo

readmail's Introduction

Bash eMail client

Probably the worlds smallest, simplest, yet full featured eMail client without any dependencies beyond a working GNU environment running Bash.

Use it as a fallback, as a quick & slim alternative or as a tool to read, send and manage messages.

Features

Following commands are available:

p(eek)               peek for new messages
s(tatus)             request mailbox status
n(ew)                list new messages only
t(ail) [N]           list the latest N messages
l(ist) [N[-N]]...    list messages
r(ead) [N[-N]]...    read message
x(tract) N[-N]...    extract attachments of message N
f(ile) N[-N]...      file message
d(elete) N[-N]...    remove message
a(nswer) N           answer message
w(rite) ADDRESS      write a message to ADDRESS
m(ime) FILE          show a message file in MIME format (e.g. *.mbs)
c(lear)              clear screen (or CTRL+L)
h(elp)               show this info
q(uit)               quit (or CTRL+D)

You may invoke the commands directly from the command line, e.g.:

$ readmail s 'f 1' 'r 3-5' q

Or inside the interactive shell.

Configuration

Just run readmail or create a ".readmailrc" in your home directory and put the following lines into it (fill in the values in brackets):

POP_HOST='(your POP3 server)'
POP_ACCOUNT='(your POP3 account)'
POP_PASSWORD='(your POP3 password, this is optional)'

Append this block to configure your SMTP settings:

SMTP_HOST='(your SMTP server)'
SMTP_ACCOUNT='(your SMTP account)'
SMTP_PASSWORD='(your SMTP password, this is optional)'

If you don't want to give passwords, readmail will ask you for it.

Examples

Quickly get the size of your mailbox:

$ readmail s q

Show your latest message:

$ readmail r q

Get the number of new messages since the last call:

$ FORMAT="%d\n" readmail p q

Send a message in one line:

$ ATTACHMENTS=' ' SUBJECT='subject' BODY='body' \
	readmail 'w [email protected] [email protected]' q

Send one or more files:

$ ATTACHMENTS='file1 file2' SUBJECT='subject' BODY='body' \
	readmail 'w [email protected]' q

readmail's People

Contributors

markusfisch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

readmail's Issues

Password escaping

I have ' char in my password. Not sure if this is cause but i can't connect to my gmail account. My .readmailrc:

POP_HOST='pop.gmail.com'
POP_PORT='995'
POP_ACCOUNT='[email protected]'
POP_PASSWORD='xxx'xxx'
SMTP_HOST='smtp.gmail.com'
SMTP_PORT='465'
SMTP_ACCOUNT='[email protected]'
SMTP_PASSWORD='xxx'xxx'

I only received: missing settings or authentification failed.

Connection reset by peer

The idea is awesome but it doesn’t work for me:

$ readmail r q
/root/apps/readmail/readmail: line 37: read: read error: 0: Connection reset by peer

Could you help me please?
The .readmailrc seems to work.

Thank you!

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.