I am trying to set up mutt for gmail. I am following instructions at http://crunchbanglinux.org/wiki/howto/howto_setup_mutt_with_gmail_imap, however, after putting
set from = "firstname.lastname@example.org" set realname = "Your Real Name" set imap_user = "email@example.com" set imap_pass = "yourpassword"
(with my details, of course), I get
$ mutt Error in $HOME/.muttrc, line 12: imap_user: unknown variable Error in $HOME/.muttrc, line 13: imap_pass: unknown variable source: errors in $HOME/.muttrc Press any key to continue...
If I try to send an email, it doesn't work because instead of IMAP, it tries to send email directly from my localhost's mail system. Mutt says it is version Mutt 22.214.171.124i.
So I downloaded mutt-devel on Macports, which is 1.5:
$ mutt -v Mutt 1.5.21 (2010-09-15) Copyright (C) 1996-2009 Michael R. Elkins and others. Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. Mutt is free software, and you are welcome to redistribute it under certain conditions; type `mutt -vv' for details. System: Darwin 11.3.0 (x86_64) ncurses: ncurses 5.9.20110404 (compiled with 5.9) libiconv: 1.14 libidn: 1.22 (compiled with 1.22) Compile options: -DOMAIN -DEBUG -HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE +USE_FCNTL -USE_FLOCK +USE_POP +USE_IMAP -USE_SMTP -USE_SSL_OPENSSL -USE_SSL_GNUTLS -USE_SASL -USE_GSS +HAVE_GETADDRINFO +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET +HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM +CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME -CRYPT_BACKEND_GPGME -EXACT_ADDRESS -SUN_ATTACHMENT +ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR +HAVE_ICONV -ICONV_NONTRANS +HAVE_LIBIDN +HAVE_GETSID -USE_HCACHE -ISPELL SENDMAIL="/usr/sbin/sendmail" MAILPATH="/var/mail" PKGDATADIR="/opt/local/share/mutt" SYSCONFDIR="/opt/local/etc" EXECSHELL="/bin/sh" -MIXMASTER To contact the developers, please mail to <firstname.lastname@example.org>. To report a bug, please visit http://bugs.mutt.org/.
As it stands, it is not configured to use smtp, but imap should be enabled. However, just starting mutt hangs on
Connecting to gmail.com...
Is there a way to check the logs or something to see if, say it can't find the server or the password is being rejected or something else?
After installing for ssl, imap, and smtp support, I still get these warnings/errors, even though it can connect to gmail.
Error in $HOME/.muttrc line 9: trash: unknown variable Error in $HOME/.muttrc, line 11: header_cache: unknown variable