Re: Gmail?



On Tue, 30 Dec 2008 21:47:48 -0800 (PST), Zach Uram <netrek@xxxxxxxxx> wrote:
On Dec 30, 4:26 pm, Doug Morse <mo...@xxxxxxxxx> wrote:
[...]

Hope this helps. Two last things: (a) You might initially want to omit the
words "no keep" from the "options" line in your .fetchmailrc until you are
happy with what fetchmail is doing; doing so will leave all your messages on
the Gmail servers -- add back the "no keep" words when your confident that
fetchmail is doing what you want, and (b) if you're NOT using a standard Unix
/ Linux distro that's MTA stores messages in the mbox format, then write back
and I can give you instructions on how to set up your .mutt/muttrc file to use
mutt itself to transfer the messages to/from Gmail. (If you can use it,
employing fetchmail is a lot easier / faster for the initial transfer than
employing mutt.)

Hi Doug,

Thanks, yes I need help with .muttrc. I have no .muttrc can you send
me yours and then I can use it for the Gmail task.

Zach

Hi Zach,

Here are the key lines I use within my .muttrc file:

set spoolfile=imaps://imap.gmail.com:993/INBOX
set mbox=imaps://imap.gmail.com:993/INBOX
set folder=imaps://imap.gmail.com:993/[Gmail]
set sendmail="/usr/bin/msmtp"
set imap_user=my_gmail_username
set imap_pass=my_gmail_password
set certificate_file=~/.mutt/certificate

The 'folder' and 'certificate_file' entries are convenience entries. 'folder'
sets my default folder within mutt, which is referenced by the equal sign
'='. So, I can refer to, say, my Drafts folder as '=Drafts'. I can also
press '=' and the press tab to get a listing of my Gmail folders. The
certificate_file entry means that mutt will add a prompt to "Save Always"
various certificates; otherwise, you have to approve Gmail's certificate every
time. The other entries should be self explanatory and/or I refer you to
mutt's documentation.

In order to send email this way, you'll need to download, install, and
configure 'mstmp'. I'll refer you to Google for the download and install. As
far as configuring, here's my .msmtprc file:

# Gmail account

account gmail
host smtp.gmail.com
from morse@xxxxxxxxx # my preferred 'reply-to'
auth on
tls on
tls_trust_file /usr/share/ssl/cert.pem
user my_gmail_username@xxxxxxxxx
password my_gmail_password
port 587

account default : gmail
syslog LOG_MAIL

Other than the obvious adjustments, you may need to specify a different
file/path for your root CA certificates (i.e., 'tls_trust_file' entry),
depending on your distro.

Finally, I should note that I did not come up with any of this -- I found
everything rather easily on the web, courtesy of others, mostly likely by just
searching for 'gmail' and 'mutt'.

HTH.


Cheers,
Doug
.



Relevant Pages

  • Re: Gmail?
    ... fetchmail is doing what you want, and if you're NOT using a standard Unix ... mutt itself to transfer the messages to/from Gmail. ... yes I need help with .muttrc. ... The 'folder' and 'certificate_file' entries are convenience entries. ...
    (comp.mail.mutt)
  • Re: how to send mail
    ... I've configured all my mail process which fetchmail, procmail and mutt to ... Which means that when I send mail using Mutt, ... address depends on which folder I'm in. ...
    (comp.mail.mutt)
  • Re: Problem with From Address
    ... I can send the mail from mutt, and it appears in the sent folder. ... then I can send the message fine and receive it in fetchmail. ... address at Gmail, then asking fetchmail to fetch it from ... For what it's worth, my .muttrc file begins with these lines, ...
    (comp.mail.mutt)
  • Problems with fetchmail
    ... mutt and fetchmail under fedora 13. ... postfix and it works perfect sending mail with mutt. ... I wonder in what folder he puts the mail? ...
    (Fedora)
  • Re: [kde] Kmail : problem in checking Gmail with IMAP account type
    ... Friendly reminder - top-posting is frowned on in technical mailing lists, ... Account name: hf.farhad@xxxxxxxxx ... Is that inbox not part of the Gmail setup? ... How did that folder and its structure ...
    (KDE)