CLI Send/Receive Mail

Forum rules
Share your brain ;)
machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: i3

Unread post by machinebacon » Sun Feb 23, 2014 11:19 am

We do have an excellent HOWTO for mutt, written by slartie, and as alternative we could look into Pine/Cone (Yeah why not!). I mean, it was _the_ mail reader those days.

Let me dig into the manpages :D
..gnutella..

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

CLI Send/Receive Mail

Unread post by machinebacon » Sun Feb 23, 2014 12:01 pm

Yesh, not just (just not) mutt!

SendEmail
Very no-nonsense SMTP mail dispatcher.

Code: Select all

sudo apt-get install sendEmail
Check the manpage, a command typically looks like this:

Code: Select all

sendEmail -f [email protected] -t [email protected] -u sendEmail -m "We will eat your children" -s mail.linuxmint.org -xu LoginName -xp ThisPassword
----------------------------------------------------------------

nmh
Message handler.

Code: Select all

sudo apt-get install nmh
Best is to get started like this: read the fucking manpage (it's no excuse!) and

Code: Select all

/usr/bin/mn/install-mh
and edit .mn_profile later. Have fun. Awfully complicated :D

----------------------------------------------------------------

fetchmail
As the name suggests.

Code: Select all

sudo apt-get install fetchmail
Then set it up:

Code: Select all

sudo nano /etc/default/fetchmail
change the DAEMON entry to yes. Save and exit. Create as root

Code: Select all

nano /etc/fetchmailrc
and add this:

Code: Select all

# /etc/fetchmailrc for system-wide daemon mode
# This file must be chmod 0600, owner fetchmail

set daemon     300                # Pool every 5 minutes
set syslog                        # log through syslog facility
set postmaster  root

set no bouncemail               # avoid loss on 4xx errors
                                # on the other hand, 5xx errors get
                                # more dangerous...

##########################################################################
# Hosts to pool
##########################################################################

# Defaults ===============================================================
# Set antispam to -1, since it is far safer to use that together with
# no bouncemail
defaults:
timeout 300
antispam -1
batchlimit 100

poll pop.provider.com protocol POP3 user "[email protected]" there with password "secret" is BaconFace here
poll mail.provider.org protocol POP3 user "Julius" there with password "donttellya" is BaconFace here fetchall
poll mailin.grillspot.co.uk protocol POP3 user "Beefy" there with password "ilovebacon" is Baconette here keep

#fetchall = collect all messages, also read one
#nofetchall = only new/unread messages are collected
#keep = never delete messages on the server
#nokeep = delete messages on the server

# save me as /etc/fetchmailrc
# chmod 600 /etc/fetchmailrc
# chown fetchmail /etc/fetchmailrc
Save it, chmod 600 it, and make it chown for fetchmail. The nice thing about the config file: there, with and here are ignored by fetchmail and can be used to make the config file easier to read. "is" points to the name of the local mailbox, by the way.

----------------------------------------------------------------

<<<OTHERS FOLLOW>>>
<<<if you have a short howto, edit this post>>

----------------------------------------------------------------

References
cone
quick setup http://inconsolation.wordpress.com/2013 ... or-e-mail/

mailutils
manual http://mailutils.org/manual/mailutils.html
wiki http://mailutils.org/wiki/Main_Page
send per CLI http://www.quietearth.us/articles/2006/ ... -line-mail
..gnutella..

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: CLI Send/Receive Mail

Unread post by GekkoP » Sun Feb 23, 2014 12:06 pm

Didn't know there were so many options. Interesting stuff.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: CLI Send/Receive Mail

Unread post by machinebacon » Sun Feb 23, 2014 12:08 pm

Many many more, some are parts of mail handling packages. Will expand the top post as time allows :)
..gnutella..

User avatar
rust collector
Motörhead
Posts: 536
Joined: Mon Jan 13, 2014 3:56 pm
Location: no_nb

Re: i3

Unread post by rust collector » Sun Feb 23, 2014 3:40 pm

I use cone, but I have 2 email accounts, and maybe 4 mails on a busy day.
I dunno how crap it is, but it is pretty easy to set up.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: i3

Unread post by machinebacon » Sun Feb 23, 2014 3:43 pm

^ rusty, wanna write a little howto about it? ;)
..gnutella..

User avatar
rust collector
Motörhead
Posts: 536
Joined: Mon Jan 13, 2014 3:56 pm
Location: no_nb

Re: i3

Unread post by rust collector » Sun Feb 23, 2014 4:05 pm

I wish I had something useful to say about it, I found it on inconsolation.
He has the info to add a gmail account, which is what I have.
So in my case, it is just a case of following exactly what it said there.

http://inconsolation.wordpress.com/2013 ... or-e-mail/

User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: i3

Unread post by ivanovnegro » Mon Feb 24, 2014 4:12 am

machinebacon wrote:^ rusty, wanna write a little howto about it? ;)
That.

Found it also on Inconsolation. I have to say it sounds impressive. Was browsing the homepage. If I have time I might write a how-to after trying it out.

User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: CLI Send/Receive Mail

Unread post by ivanovnegro » Mon Feb 24, 2014 5:30 am

Not sure, I just post it here for now:

http://supmua.org/

Another CLI mail client I never heard about and even in the Debian repos, called sup-mail.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: i3

Unread post by machinebacon » Mon Feb 24, 2014 6:19 am

It's super easy. Really just copy the snippet there :) I rather like to see something about the exim4 or what the name is :D Or wanderlust or gnus :D
..gnutella..

User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: i3

Unread post by ivanovnegro » Mon Feb 24, 2014 7:05 am

Yes, it is easier as we thought. Easy makes it attractive, too.

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: i3

Unread post by wuxmedia » Mon Feb 24, 2014 10:07 am

^ so back to icedove 8(
couldn't get any of them to connect. 8(
meaning I couldn't be bothered to work out why, after i put my credentials in.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: i3

Unread post by wuxmedia » Mon Feb 24, 2014 1:05 pm

Sylpheed FTW.
Load has dropped by half.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: i3

Unread post by dkeg » Mon Feb 24, 2014 1:12 pm

Sylpheed / Claws both very good. Still a bit unsure exactly the difference.

Work hard; Complain less

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: i3

Unread post by GekkoP » Mon Feb 24, 2014 2:35 pm

^ regular Sylpheed user here. Love it.
If I understand it right, Claws has more plugins. Never tried it though.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: i3

Unread post by machinebacon » Mon Feb 24, 2014 4:16 pm

sylpheed is a fork of it, and IIRC the plugins are separated in claws, so they grow with time (in amount). originally claws was meant to be a test bed for functions that were planned to be implemented in sylpheed.
..gnutella..

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: CLI Send/Receive Mail

Unread post by machinebacon » Mon Feb 24, 2014 4:20 pm

OK I moved and merged and whatnot, hope things are in order :)
..gnutella..

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: CLI Send/Receive Mail

Unread post by wuxmedia » Mon Feb 24, 2014 4:37 pm

excellent - I was worried that I went offtopic a lot.
"Seek, and Ye shall find"
"Github | Chooons | Site"

Post Reply