Archivi Categorie: Linux

SeaMonkey (Iceape) and Gmail

If you often use an Internet browser and email client together, you should give a try to SeaMonkey (Iceape in debian) that is a community effort to develop an all-in-one Internet application suite that stores both browser and mail settings in the same profile. It does use less computer resources than the combination of Firefox and Thunderbird running simultaneously. Here you have some add-ons I suggest for a complete gmail integration with Iceape:


  • install gContactSync 0.3.5 add-on to have your gmail contacts offline;
  • install Duck Duck Go for a search engine that does not collect or share personally identifiable information: it utilizes SSL to protect searches between the search engine and you;
  • install Thread key 0.6 to group mails in threads;
  • install ImportExportTools 2.2 emails in text or html mode (in Thunderbird/Icedove you can export emails and their attachments!).


Gmail in linux terminal (with Mutt)

mutt-whiteMutt is a light-weight and powerful mail client for unix-like systems. You have to install it with goobook to manage gmail in your linux user terminal (Debian users can download packages from Kevin’s goobook page and follow the debian wiki on mutt).
After the installation, you should create a cache typing in user terminal:

mkdir -p ~/.mutt/cache/{bodies,headers}

Create ~/.mutt/muttrc with the following lines:

# Name Info
set realname = "User Name"
set from = ""

# IMAP Settings
set imap_user =
set imap_pass = `grep 'Gmail' ~/Private/passwords.txt | awk '{print $2}'`
set folder = imaps://
set imap_check_subscribed

# SMTP Settings
set smtp_url=smtps://$
set smtp_pass = `grep 'Gmail' ~/Private/passwords.txt | awk '{print $2}'`

# keep imap connection alive by polling intermittently (time in seconds)
set imap_keepalive = 900

# set timeout (time in seconds)
set timeout = 600

# how often to check for new mail (time in seconds)
set mail_check = 5

# Folders
mailboxes = "+INBOX"
set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts"
set record = /dev/null

# Need trash patch for this to work
set trash = "+[Gmail]/Trash"

# store message headers locally to speed things up
set header_cache = ~/.mutt/cache/headers

# how about store messages too
set message_cachedir =~/.mutt/cache/bodies

# Mailcap (autoexecute program declarations)
set mailcap_path = ~/.mutt/mailcap

# Auto display html
set implicit_autoview
auto_view text/html application/x-pgp-message

# Archive Messages (A) and some other nifty commands
bind editor noop #fix for spaces in names of folders
macro index,pager A "unset trash\n " "Gmail archive message"
macro index,pager gi "=INBOX" "Go to inbox"
macro index,pager ga "=[Gmail]/All Mail" "Go to all mail"
macro index,pager gs "=[Gmail]/Sent Mail" "Go to starred messages"
macro index,pager gd "=[Gmail]/Drafts" "Go to drafts"
macro pager \cu |urlview\n

# Goobook query (google contacts)
set query_command="goobook query '%s'"
bind editor \t complete-query

# Add contacts to google
macro index,pager a "goobook add" "add the sender address to Google contacts"

# Reload goobook db
macro index,pager gr "!goobook reload\n" "Goobook reload"

# Dont request to move messages
set move = no

# Auto include copy of original message when you reply
set include = yes

# Thread Sort (Top = newest messages)
set sort = threads
set sort_aux = 'reverse-last-date-received'

# Unset Markers (don't add + signs if message wraps)
unset markers

# allow mutt to open new imap connection automatically
unset imap_passive

# Colors (transparent background)
color error brightred white
color indicator brightyellow red
color status brightgreen blue
color search white black

Create ~/.mutt/mailcap with the following lines:

text/html; lynx -dump -force_html %s; needsterminal; copiousoutput;
image/*; feh -F %s;
application/pdf; evince %s;

Create ~/.netrc with the following lines:

password user-password

Type mutt and test once the address-book: just start an email and hit the tab key to query the contact database. Edit ~/.netrc and replace your user-password with “”, so that your password will be no longer in the .netrc file.

For further readings:

30 giorni a novembre, con …

n-b@debian:~$ date -d "2012-12-06 +60 days"
Mon Feb 4 00:00:00 CET 2013

Un utile comando nel terminale linux per calcolare la data di scadenza, a partire da un giorno iniziale (ad esempio 2012-12-06) e un periodo definito (ad esempio 60 days).

Linux per professionisti e manager

Talk @ Linux Day 2012
BUC Machinery, Fermo (IT)