How to access gmail from mutt

View previous topic View next topic Go down

How to access gmail from mutt

Post  Admin on Thu Apr 15, 2010 7:27 am

###To send mail using "mutt" command
# echo "this is a test mail frm mutt command line" | mutt -a /root/nated.bck -b ninohead@yahoo.com -c natesh@nace.co.in -s "test mail"

edit your ~./muttrc file

set from = "natesh7@gmail.com"
set realname = "Natesh Sharan"
set imap_user = "natesh7@gmail.com"
set imap_pass = "my password"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed ="+[Gmail]/Drafts"
set trash = "imaps://imap.gmail.com/[Gmail]/Trash"
set header_cache =~/.mutt/cache/headers
set message_cachedir =~/.mutt/cache/bodies
set certificate_file =~/.mutt/certificates
set smtp_url = "smtp://natesh7@smtp.gmail.com:587/"
set smtp_pass = "mypasswrod"
set move = no #Stop asking to "move read messages to mbox"!
set imap_keepalive = 900

# Header stuff
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc

ignore *
unignore from: date subject to cc
unignore x-mailing-list: posted-to:
unignore x-mailer:

# For better looks
set markers=no # don't put '+' at the beginning of wrapped lines
set pager_index_lines= 5 # how large is the index window?
set sort = 'threads'
set sort_aux = 'last-date-received'

# My Editor
set editor='vim + -c "set textwidth=72" -c "set wrap" -c "set nocp" -c "?^$"'

# My Rolodeck Smile
set alias_file= ~/.mutt/aliases
set sort_alias= alias
set reverse_alias=yes
source $alias_file


source : http://shreevatsa.wordpress.com/2007/07/31/using-gmail-with-mutt-the-minimal-way/
http://crunchbanglinux.org/wiki/howto/howto_setup_mutt_with_gmail_imap

###To send mail using "mail" command
vim /etc/mail.rc
set smtp-use-starttls
set nss-config-dir=~/.mozilla/firefox/jb31pui3.default/
set ssl-verify=ignore
set smtp=smtp://smtp.gmail.com:587
set smtp-auth=login
set smtp-auth-user=natesh7@gmail.com
set smtp-auth-password=Stan@456
set from="natesh7@gmail.com(natesh)"
set imap-use-starttls
### provide you have your sendmail configured correctly

####more mailrc###########
set asksub append dot save crt=20
ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via
set smtp-use-starttls
set nss-config-dir=~/.mozilla/firefox/jb31pui3.default/
set ssl-verify=ignore
set smtp=smtp://smtp.gmail.com:587
set smtp-auth=login
set smtp-auth-user=natesh@nace.co.in
set smtp-auth-password=pass@123
set from="natesh@nace.co.in(natesh)"

Admin
Admin

Posts : 32
Join date : 2009-09-13
Age : 31
Location : Chennai

View user profile http://linux.nsguru.com

Back to top Go down

mailcap

Post  Admin on Fri Apr 16, 2010 3:15 pm

flexing mutt more

/etc/mailcap --> man mailcap
application/octet-stream;cat > /tmp/mailx$$.pdf | /usr/bin/pdftotext /tmp/mailx$$.pdf /tmp/mailx$$.txt \; rm -rf /tmp/mailx$$.pdf \; cat /tmp/mailx$$.txt; copiousoutput
#application/octet-stream;cat > /tmp/mailx$$.pdf | /usr/bin/pdftotext /tmp/mailx$$.pdf /tmp/mailx$$.txt \; rm -rf /tmp/mailx$$.pdf \; cat /tmp/mailx$$.txt; needsterminal
#audio/mpeg;cat > /tmp/mp3$$.mp3 \; /usr/bin/realplay /tmp/mp3$$.mp3; copiousoutput
audio/mpeg;cat > /tmp/mp3$$.mp3 \; /usr/bin/realplay /tmp/mp3$$.mp3; needsterminal
### use man page: #man mailcap #man 1 mail
### create a seperate directory under /tmp/mutt to store all temp files

Admin
Admin

Posts : 32
Join date : 2009-09-13
Age : 31
Location : Chennai

View user profile http://linux.nsguru.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum