deadsimple console imapclient (think: ls [email protected] ) written in bash & php
$ lsmail [email protected]
id date from subject
---- ---- ---- ----
7331 2013-11-29 Fri 10:11:15 flopse@foobars. [issue165] flopedia flopjes api
7330 2013-11-29 Fri 09:11:18 Babce@bflaoer Freedom
7329 2013-11-28 Thu 18:11:58 flopse@foobars. [issue954] flop XML Integration
7328 2013-11-28 Thu 17:11:38 flopse@foobars. [issue165] flopedia flopjes api
7327 2013-11-28 Thu 15:11:35 Babce@bflaoer FW: flop rates
7326 2013-11-28 Thu 14:11:54 flopse@foobars. [issue165] flopedia flopjes api
7325 2013-11-28 Thu 14:11:15 flopse@foobars. [issue165] flopedia flopjes api
7324 2013-11-28 Thu 10:11:31 flopse@foobars. [issue954] flop XML Integration
7323 2013-11-27 Wed 16:11:41 [email protected] Fwd: RE: Skype new account
7322 2013-11-27 Wed 16:11:16 [email protected] Re: lorem ipsum
lsmail> 7331
subject : [issue165] flopedia flopjes api
fromaddress : "Matt Jown" <[email protected]>
toaddress : [email protected]
ccaddress :
date : Fri, 29 Nov 2013 09:05:14 +0000
If chuck norris is really that good, then he would be able to come down
my house and bash my brains out while I'm typing this amas;ldkfjaksjdlkfjsldf...
;lksjfkjs;df....sdfjahldifuayreiwhtkwjejer.....asdjfio8ewlilkhgtwlkert....lakjshdfk..
alsdfjhalksdjhfalksjdhf..i asd.faerfhwhlewiauhfiuhaelirufh....
$ lsmail
[[email protected]]
id date from subject
---- ---- ---- ----
7331 2013-11-29 Fri 10:11:15 flopse@foobars. [issue165] flopedia flopjes api
7330 2013-11-29 Fri 09:11:18 Babce@bflaoer Freedom
7329 2013-11-28 Thu 18:11:58 flopse@foobars. [issue954] flop XML Integration
7328 2013-11-28 Thu 17:11:38 flopse@foobars. [issue165] flopedia flopjes api
[[email protected]]
id date from subject
---- ---- ---- ----
7331 2013-11-29 Fri 10:11:15 flopse@foobars. [issue165] flopedia flopjes api
7330 2013-11-29 Fri 09:11:18 Babce@bflaoer Freedom
7329 2013-11-28 Thu 18:11:58 flopse@foobars. [issue954] flop XML Integration
7328 2013-11-28 Thu 17:11:38 flopse@foobars. [issue165] flopedia flopjes api
- sometimes we need to keep things deadsimple
- bash automation / monitoring / notification
- easily checking multiple emailboxes
CREDITS: imapmunch
- bash
- php
mkdir ~/bin
cd /tmp
git clone https://github.com/coderofsalvation/lsmail.git
cd lsmail
cp imapmunch lsmail ~/bin/.
cp ~/[email protected] ~/[email protected]
# now modify ~/[email protected]
(..)
# set permissions
chmod 600 ~/.lsmail.*
Put this in ~/.profile so you always have handson-access to your personal bashscripts in ~/bin:
PATH="$HOME/bin:$PATH"
- easily download attachments (already implemented, not finished)
- hastag/price/currency/scanning in subject
- csv/json output