Page 1 of 14 12311 ... LastLast
Results 1 to 10 of 134

Thread: [Howto] Use Mutt with Gmail

  1. #1
    Join Date
    Dec 2006
    Beans
    7,349

    [Howto] Use Mutt with Gmail

    This guide has been converted to a wiki:

    https://help.ubuntu.com/community/MuttAndGmail

    but help is still available via this Forum thread
    Last edited by andrew.46; April 13th, 2012 at 12:24 PM.

  2. #2
    Join Date
    Sep 2006
    Beans
    Hidden!

    Re: [Howto] Use Mutt with Gmail

    I'm unable to find msmtp in my Intrepid respositories.

  3. #3
    Join Date
    Dec 2006
    Beans
    7,349

    Re: [Howto] Use Mutt with Gmail

    Hi hyper7,

    Quote Originally Posted by hyper7 View Post
    I'm unable to find msmtp in my Intrepid respositories.
    msmtp is available in the Universe Repository. Details of the package can be seen here. To add the Universe Repository you will need to go System ----> Administration ----> Software Sources. When you are there ensure there is a tick against 'Community-maintained Open Source software (universe)' box. Then press 'Close' and your sources database should be reloaded and you can then download msmtp.

    Hope this helps,

    Andrew
    You think that's air you're breathing now?

  4. #4
    Join Date
    Dec 2006
    Beans
    702
    Distro
    Ubuntu

    Re: [Howto] Use Mutt with Gmail

    Thank you very much for this guide. It worked wonderfully and I am in love with it. The only think I am having issue with is the colours. I use a transparent terminal and a black background. Ill have to tweak it But thanks again! Its is awesome


  5. #5
    Join Date
    Dec 2006
    Beans
    7,349

    Re: [Howto] Use Mutt with Gmail

    Hi Nxion,

    Thanks for the feedback!

    Quote Originally Posted by Nxion View Post
    Thank you very much for this guide. It worked wonderfully and I am in love with it. The only think I am having issue with is the colours. I use a transparent terminal and a black background. Ill have to tweak it But thanks again! Its is awesome
    I do not use a black background or my terminal but some use the following colors for such a scheme:

    Code:
    #---- Mutt Colors for Black Background -------
    #color   object     foreground       background
    color   hdrdefault   blue              black
    color   quoted       blue              black
    color   signature    blue              black
    color   attachment   red               black
    color   message      brightred         black
    color   error        brightred         black
    color   indicator    black             red
    color   status       brightgreen       blue
    color   tree         white             black
    color   normal       white             black
    color   markers      red               black
    color   search       white             black
    color   tilde        brightmagenta     black
    color   index        blue              black ~F
    color   index        red               black "~N|~O"
    And I include a little 'key' to show how the basic colors are plotted out.

    All the best,

    Andrew
    You think that's air you're breathing now?

  6. #6
    Join Date
    Dec 2006
    Beans
    702
    Distro
    Ubuntu

    Re: [Howto] Use Mutt with Gmail

    Quote Originally Posted by andrew.46 View Post
    Hi Nxion,

    Thanks for the feedback!



    I do not use a black background or my terminal but some use the following colors for such a scheme:

    Code:
    #---- Mutt Colors for Black Background -------
    #color   object     foreground       background
    color   hdrdefault   blue              black
    color   quoted       blue              black
    color   signature    blue              black
    color   attachment   red               black
    color   message      brightred         black
    color   error        brightred         black
    color   indicator    black             red
    color   status       brightgreen       blue
    color   tree         white             black
    color   normal       white             black
    color   markers      red               black
    color   search       white             black
    color   tilde        brightmagenta     black
    color   index        blue              black ~F
    color   index        red               black "~N|~O"
    And I include a little 'key' to show how the basic colors are plotted out.

    All the best,

    Andrew
    Thanks man!. works like a charm!


  7. #7
    Join Date
    Mar 2008
    Location
    Iran
    Beans
    46
    Distro
    Ubuntu 12.04 Precise Pangolin

    Smile Re: [Howto] Use Mutt with Gmail

    Thanks andrew for the nice tutorial.

    There is an issue about entering Gmail password which is not so secure specially in a multi-user platform. is it possible not to insert the password in those files, instead one enters it once wants to check mail at the terminal?

  8. #8
    Join Date
    Dec 2006
    Beans
    7,349

    Re: [Howto] Use Mutt with Gmail

    Hi pajoohesh,

    Thanks for your feedback:

    Quote Originally Posted by pajoohesh View Post
    There is an issue about entering Gmail password which is not so secure specially in a multi-user platform. is it possible not to insert the password in those files, instead one enters it once wants to check mail at the terminal?
    The 2 files that contain the passwords are $HOME/.fetchmailrc and $HOME/.msmtprc. Both of these files are set to 0600 which I will admit is not the robust protection but may suffice for many.

    However if you wish simply omit the password line in the .fetchmailrc file:

    Code:
    there with password 'Gmail Password' # Your Gmail Password
    and fetchmail will prompt you for a password before proceding. However I don't believe that this is possible with msmtp because when mutt calls msmtp there is no mechanism for msmtp to ask for password before proceding. I believe this is possible directly from the commandline using msmtp but not via mutt.

    Not sure how to get around this one?

    Andrew
    You think that's air you're breathing now?

  9. #9
    Join Date
    Mar 2008
    Location
    Iran
    Beans
    46
    Distro
    Ubuntu 12.04 Precise Pangolin

    Cool Re: [Howto] Use Mutt with Gmail

    Hi Andrew,

    Thanks for the answer. I am new to linux and do not know much about mutt. Should I use the msmtp directly, Will I lose the benefits of using mutt. I have found this in msmtp manual:
    `password [secret]'
    Set your password for SMTP authentication. An empty argument unsets the password. Authentication must be activated with the `auth' command. If no password is set but one is needed during authentication, msmtp will try to find it in ~/.netrc. If that fails, it will try to find it in SYSCONFDIR/netrc (use --version to find out what SYSCONFDIR is on your platform). If that fails, it will try to get it from a system specific keychain (if available). If that fails but a controlling terminal is available, msmtp will prompt you for it.
    if mutt is not using a terminal what about the other methods that it tries to find password.

    I want to find a way not to put the password just naked in a file.

  10. #10
    Join Date
    Dec 2006
    Beans
    7,349

    Re: [Howto] Use Mutt with Gmail

    Hi pajoohesh,

    Thanks again for your feedback:

    Quote Originally Posted by pajoohesh View Post
    Thanks for the answer. I am new to linux and do not know much about mutt. Should I use the msmtp directly, Will I lose the benefits of using mutt. I have found this in msmtp manual:if mutt is not using a terminal what about the other methods that it tries to find password.
    I experimented with these methods and unfortunately could not get them to work as you have mentioned using mutt.

    I want to find a way not to put the password just naked in a file.
    Perfectly understandable. Bear in mind that the setting of 0600 actually means that only yourself and root can read and alter this file, so the password is not completely exposed. However I have noticed that Version 1.4.17 of msmtp was released only recently and this version has support for the Gnome keyring. Details can be seen in the changelog.

    I had a quick look at the source for 1.4.17 and saw the new option:

    Code:
    ./configure --with-gnome-keyring
    which is exactly what you are after . However this is a very new version, only 2 or 3 days old, and not available even in the upcoming Jaunty Jackalope yet and it is beyond the scope of this guide to demonstrate how to compile this one.

    You may very well be better off to wait for a decent debiam package of the new msmtp to be released and then hide your password in the keychain. Sorry for not having a better answer .

    All the best,

    Andrew
    You think that's air you're breathing now?

Page 1 of 14 12311 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •