Saturday, August 29, 2015

How to configure mutt for gmail

mutt is a terminal-based e-mail client for Unix-like systems . For more info read this

==> install mutt as

$ sudo apt-get install mutt

==> Edit .muttrc file in home directory

$vi ~/.muttrc

## and paste the below contents and edit the necessary .

set imap_user="USER@GMAIL_APPS_DOMAIN" ##anmoldeep0123
set imap_pass="PASSWORD"
set ssl_force_tls=yes
set smtp_url="smtp://USER@GMAIL_APPS_DOMAIN@smtp.gmail.com:587/"
##set smtp_url="smtp://anmoldeep0123@smtp.gmail.com:587/"
set smtp_pass="PASSWORD"
set folder="imaps://imap.gmail.com:993"
set spoolfile="+INBOX"
set imap_check_subscribed
set hostname=gmail.com
set mail_check=120
set timeout=300
set record="+[Gmail]/Sent Mail"
set postponed="+[Gmail]/Drafts"
set beep=no
set realname="YOUR NAME"
set from="USER@GMAIL_APPS_DOMAIN" ##anmoldeep0123@gmail.com
set use_from=yes
set use_envelope_from=yes
set sort=threads
set arrow_cursor
set header_cache=~/.mail/cache/headers
set message_cachedir=~/.mail/cache/bodies
set certificate_file=~/.mail/certificates
set implicit_autoview
auto_view text/html
set mailcap_path="~/.mailcap"

bind index ' ' next-page
bind index '-' previous-page
bind index c mail
bind index g change-folder
bind index x sync-mailbox

bind pager ' ' next-page
bind pager '-' previous-page
bind pager c mail
bind pager g change-folder

color index     blue    default "~C USER"   # to or cc USER
color index     red     default ~D          # deleted
color index     green   default ~U          # unread
color index     yellow  default ~T          # tagged
color indicator black   yellow
color message   black   red
color quoted1   cyan    black
color quoted2   yellow  black
color quoted3   red     black
color quoted4   green   black
color quoted5   blue    black
color quoted6   green   black
color signature blue    black
color status    blue    black
color tree      cyan    black
 
==> Run mutt
$mutt

Wednesday, August 26, 2015

Morphia FAQ's helper links etc

JavaDoc
MongoDB javaDoc
Reference

http://www.javabeat.net/using-morphia-java-library-for-mongodb/
https://dzone.com/articles/using-morphia-map-java-objects
http://sleeplessinslc.blogspot.in/2010/10/mongodb-with-morphia-example.html