Thread: mutt & fdm
View Single Post
Old 12th May 2011
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by qmemo View Post
that person is me, using gmail with POP enabled, thankfully I can change that.
That is silly. Gmail unlike Hotmail supports IMAP. I use Gmail with IMAP as my main e-mail account. Gmail also forwards e-mails from other domains so you can set your OpenSMTPd to use Gmail account as forwarding server. Read the documentation!

http://mail.google.com/support/bin/a...y?answer=77695

The only annoyance with Gmail is that when you delete messages they do not get expunged because they are still kept in the stupid Allmail folder. That is the only violation to honest IMAP protocol by Gmail that I am aware of. The work around is very simple. I use Heirloom mailx and use command mv (move) to move messages to trash (which is alias for Gmail/Trash)

Code:
shortcut trash +[Gmail]/Trash
The messages get deleted automatically after 90 days. Here is full .nailrc for Gmail and Hotmail accounts.

Code:
account gmail {
        set folder=imaps://my_user_name@imap.gmail.com
        set imap-use-starttls
        set password-my_user_name@imap.gmail.com="password"
        set record=+Sent MBOX=+mbox outfolder
        set smtp="smtp.gmail.com:587"
        set from="My Name <my_user_name@gmail.com>"
        set smtp-use-starttls
        set smtp-auth="login"
        set smtp-auth-user=my_user_name
        set smtp-auth-password="password"
# IMAP SHORTCUTS SECTION for standard Gmail folders
        shortcut allmail +[Gmail]/All\ Mail
        shortcut spam +[Gmail]/Spam
        shortcut trash +[Gmail]/Trash
        }



account hotmail {
        set MAIL=pop3s://my_user_name@hotmail.com@pop3.live.com
        set pop3-use-starttls
        set password-my_user_name@hotmail.com@pop3.live.com="password"
        set smtp="smtp.live.com:25"
        set from="My Name <my_user_name@hotmail.com>"
        set smtp-use-starttls
        set smtp-auth="login"
        set smtp-auth-user=my_user_name@hotmail.com
        set smtp-auth-password="password"
# POP3 ACCT SHORTCUTS SECTION nail -f <account> 
        shortcut hotmail pop3s://my_user_name@hotmail.com@pop3.live.com  
        }



# Binary options
set askattach
set askcc
set autocollapse
set autothread
set emptystart

# String Options
set imap-keepalive=240
set imap-list-depth=5
set pop3-keepalive=30

# Reading HTML mail
set pipe-text/html="lynx -dump -force_html /dev/stdin"

# Address Book
alias  my_friend    my_friend@gmail.com
Gmail also have an excellent spam filter. Now privacy, that is whole another story. Your default thinking should be that Google is reading and selling your e-mail messages.

Last edited by Oko; 12th May 2011 at 04:08 PM.
Reply With Quote