This is a trick I call "Pine Cent". CentOS doesn't come with Pine installed, so if you want a text based mailer, you're stuck with "mail".
So here's what I do on all my CentOS servers:
(in bash):
# alias pine=mutt
(in tcsh):
> alias pine mutt
It's kinda a joke, because well mutt is a very nice text mode email client. Being an old user of unix from way back, something in my brain is hardwired to type "pine" when I want to read email.
Note, the learning curve is a bit steep if you are accustomed to pine, but mutt is just as powerful, if not more so. If you're a mutt "power user" I'd love to see some things you've done with it.
__________________________
-- FLR or flrichar is a superfan of Linux Journal and can be found goofing around on the LJ IRC Channel
Subscribe now!
Breaking News
| "We'll Stop Fighting" Means Something Strange for Microsoft | 20 hours 28 min ago |
| AMD Calls Out Intel...We Think. | 3 days 21 hours ago |
| Bye-Bye TorrentSpy, So Long MPAA's Money | 3 days 23 hours ago |
| Sun Finds the Keys to Unlock MySQL | 5 days 18 hours ago |
Featured Video
Linux Journal Gadget Guy, Shawn Powers, takes us through installing Ubuntu on a machine running Windows with the Wubi installer.
Live From the Field
The latest posts from the Linux Journal team.







mutt on CentOS
On May 1st, 2008 Meaulnes (not verified) says:
> If you're a mutt «power user» I'd love to see some things you've done with it.
I use mutt to send myself files from our server to my office with:
mutt me@office.tld -s "here is myfile" -a myfileFor convenience, I entered the following alias/function into my bash profile (the ^[ are ESC in vi):
sendhome () { HomeAddress="me@office.tld" ; \ echo -n " sending ^[[4m$1^[[0m ..." ; \ echo $1 | mutt "$HomeAddress" -s "$1" -a $1 ; \ echo "file sent to ^[[36m"$HomeAddress"^[[0m." \ }Unfortunately, we have a new server running CentOS but without mutt. Can I just issue «
yum install mutt» without screwing something up?thanks
Meaulnes Legler
Zürich, Switzerland