I’ve been looking around this week for a command line mail client for my N810, but I didn’t want to install procmail, sendmail, etc. to get it going. I narrowed my search down to xmail and mutt. The best solution I found was setting up mutt to use your gmail with smtp. I also found a guide for porting mutt to the N810 here. The guide was for mutt-1.5.18, but the newest version is 1.5.20. So I decided to follow the guide for the newest version. I did have an issue after installing mutt and found that I needed to install ncurses-base.
sudo gainroot
apt-get install ncurses-base
I now have mutt running on my N810!
After playing with it awhile I found I was getting an error when I tried to run mutt in “interactive mode”. I received the error: “Interactive SMTP authentication not supported”
I did some searching and found there was a bug: http://bugs.mutt.org/trac/ticket/3289
It says the bug is fixed by using a variable call, but I didn’t quite get it working. I decided to just go back to version 1.5.18 and it worked without any issues.
Now I need to work on my script. Here is all I have so far.
mutt -x -s test -i testfile -- myemail@gmail.com < /dev/null
Here is my .muttrc file that I slapped together from various websites:
Replace yourgmailusername with your gmail user name, yourgmailpassword with your gmail password, and yourname with your name.
set from = "yourgmailusername@gmail.com"
set realname = "yourname"
set imap_user = "yourgmailusername@gmail.com"
set imap_pass = "yourgmailpassword"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+[Gmail]/Drafts"
set message_cachedir =~/.mutt/cache/bodies
set certificate_file =~/.mutt/certificates
set smtp_url = "smtp://yourgmailusername@smtp.gmail.com:587/"
set smtp_pass = "yourgmailpassword"
bind editor noop
macro index gi " =INBOX" "Go to inbox"
macro index ga " =[Gmail]/All Mail" "Go to all mail"
macro index gs " =[Gmail]/Sent Mail" "Go to Sent Mail"
macro index gd " =[Gmail]/Drafts" "Go to drafts"
set move = no #Stop asking to "move read messages to mbox"!
set imap_keepalive = 900

Leave a comment
Comments feed for this article