Post by RS WoodPost by Johannes KoehlerHi list,
is it possible to point mutt to imap
folders within the mbox-hook cmd?
snip>>
Post by RS WoodSure! Looks like you could benefit from my Woodnotes Guide to Mutt; it
covers basic setup of things like this.
http://www.therandymon.com/index.php?/archives/198-Woodnotes-Guide-to-the-Mutt-Email-Client.html
snip
Post by RS Woodmailboxes imap://myfirstisp.com
set folder="imap://myfirstisp.com/INBOX"
set imap_user="myusername" #your IMAP user name or login
set imap_pass="password" #your IMAP password
If you are uncomfortable about having your IMAP password stored in
plain text, set the permissions for .muttrc using the ``chmod'' command
so only you can read and write to the file, no one else. In this same
snip
Better yet, do something like-
Encrypting your PW. Make a text file named ~/.mutt.pass and put in GMail:
"your gmail PW" with out the quotes around your password and note the tab
after
the GMail:. Save it, encrypt it and give the encrypted file 700
permissions, and then delete the unencrypted original
gp g -e ~/.mutt/.pass
chmod 700 ~/.mutt.pass.gpg
rm ~/.mutt/.pass
*(the encrypt command may require more structure for some users)
This is taken from the mutt configuration and basic use how to I wrote for the
Vinux Wiki, found at
http://wiki.vinuxproject.org/mutt_configuration_and_basic_use
At the top of your muttrc put the following lines so that mutt will call gnupg
to decrypt your password.
##To use gpg encrypted PW
set my_tmp=`gpg -o ~/.mutt/.tmp -d ~/.mutt/.pass.gpg`
## decrypted password
#
set my_gpass=`awk '/GMail:/ {print $2}' ~/.mutt/.tmp`
#
## setting passwords
set imap_pass = $my_gpass
set smtp_pass = $my_gpass
#
## Delete .tmp file immediately
set my_del=`rm -f ~/.mutt/.tmp`
## Change the following lines to match your Gmail account details
set imap_user = "***@gmail.com"
set smtp_url = "smtp://***@smtp.gmail.com:587/"
set from = "***@gmail.com"
set realname = "your name"
The sample muttrc that these lines were taken from is available here
http://wiki.vinuxproject.org/muttrc.ext - muttrc.ext
I've actually added a few more macros and configuration tricks in my muttrc,
so will be updating the sample muttrc file shortly.
In response to some requests there will be a download link for the muttrc as
well so that one does not have to copy and paste from the webpage.
You can also put multiple passwords in your password file and encrypt them as
shown above and use multiple muttrc files to handle multiple email accounts.
I'm still trying to get account hook use figured out so that I'm not repeating
so much muttrc and having to restart mutt to read mail in other accounts.