Discussion:
imap+mbox
(too old to reply)
Johannes Koehler
2015-10-01 18:37:54 UTC
Permalink
Hi list,

is it possible to point mutt to imap
folders within the mbox-hook cmd?

i tried:

mbox-hook imap://host/folder imap://host/folder2

thx
jĸo
--
WEB http://www.johannes-koehler.de/
RS Wood
2015-11-16 17:14:28 UTC
Permalink
Post by Johannes Koehler
Hi list,
is it possible to point mutt to imap
folders within the mbox-hook cmd?
mbox-hook imap://host/folder imap://host/folder2
thx
jĸo
Sure! 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

Hope it helps for you. I use imap all the time - love mutt+imap

Oh, no sure about mbox, actually. What you need to do is this:

mailboxes 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
section of your .muttrc, show mutt where to find your IMAP inbox. This
is sometimes not apparent, even when you've specified where to find your
mail.
set spoolfile="imap://myfirstisp.com"
Eike Rathke
2015-11-19 18:32:22 UTC
Permalink
Post by RS Wood
http://www.therandymon.com/index.php?/archives/198-Woodnotes-Guide-to-the-Mutt-Email-Client.html
http://www.therandymon.com/
My browser says "Unable to connect".

Noticing that I already seem to have that (or a similar) page bookmarked as
http://therandymon.com/woodnotes/mutt/using-mutt.html
would that URL still be valid and redirected, or is it yet another
PMABAR (page moved around beyond all redirects)?

Eike
--
OpenPGP/GnuPG encrypted mail preferred in all private communication.
Key "ID" 0x65632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
Better use 64-bit 0x6A6CD5B765632D3A here is why: https://evil32.com/
Care about Free Software, support the FSFE https://fsfe.org/support/?erack
Use LibreOffice! https://www.libreoffice.org/
Phil Boutros
2015-11-19 23:35:45 UTC
Permalink
Post by RS Wood
Post by RS Wood
http://www.therandymon.com/index.php?/archives/198-Woodnotes-Guide-to-the-Mutt-Email-Client.html
http://www.therandymon.com/
My browser says "Unable to connect".
Noticing that I already seem to have that (or a similar) page bookmarked as
http://therandymon.com/woodnotes/mutt/using-mutt.html
would that URL still be valid and redirected, or is it yet another
PMABAR (page moved around beyond all redirects)?
It was still live as of a few months ago. I'm guessing he's
having hosting issues:

https://web.archive.org/web/20150925175744/http://therandymon.com/index.php?/archives/198-Woodnotes-Guide-to-the-Mutt-Email-Client.html


Phil
--
AH#61 Wolf#14 BS#89 bus#1 CCB#1 SENS KOTC#4 ***@philb.ca
http://philb.ca EKIII rides with me: http://eddiekieger.com
Andreas Perstinger
2015-11-20 05:58:51 UTC
Permalink
Post by Phil Boutros
Post by RS Wood
http://www.therandymon.com/
My browser says "Unable to connect".
Noticing that I already seem to have that (or a similar) page bookmarked as
http://therandymon.com/woodnotes/mutt/using-mutt.html
would that URL still be valid and redirected, or is it yet another
PMABAR (page moved around beyond all redirects)?
It was still live as of a few months ago. I'm guessing he's
It looks like he was hacked:
http://al.howardknight.net/msgid.cgi?ID=144799854100

Bye, Andreas
RS Wood
2015-11-20 06:48:27 UTC
Permalink
Post by Andreas Perstinger
Post by Phil Boutros
Post by RS Wood
http://www.therandymon.com/
My browser says "Unable to connect".
Noticing that I already seem to have that (or a similar) page bookmarked as
http://therandymon.com/woodnotes/mutt/using-mutt.html
would that URL still be valid and redirected, or is it yet another
PMABAR (page moved around beyond all redirects)?
It was still live as of a few months ago. I'm guessing he's
http://al.howardknight.net/msgid.cgi?ID=144799854100
Bye, Andreas
You're all right. By bad luck, you chose to visit my site the exact day
I nuked the server. Currently rebuilding; should be back up in a few
hours. Noticed my FreeBSD box was in the business of sending out spam
so I have nuked it from high orbit and am rebuilding.

Both URLs are correct, by the way. The one I provided gives you links
to HTML, PDF, and Epub versions. The one provided by someone else is a
shortcut directly to the online, HTML version.

Check again at the end of the day - site should be up and running.

Fuck those spamming, cracking, douchebags. Chop their fingers off.
RS Wood
2015-11-22 15:53:50 UTC
Permalink
Post by RS Wood
Check again at the end of the day - site should be up and running.
Fuck those spamming, cracking, douchebags. Chop their fingers off.
Wasn't a very fun weekend but the site is back up. Give it another
try.
B.H.
2016-03-16 05:12:16 UTC
Permalink
On 2015-11-22, RS Wood <***@therandymon.com> wrote:

Howdy,
Thanks for one of the good sites dedicated to mutt.
One of the things I like about mutt is how many users like Mutt enough to take
the time to share their configurations, tips and tricks.
I am going to make my own Mutt page soon, already wrote a howto for the Vinux
wiki
http://wiki.vinuxproject.org/mutt_configuration_and_basic_use
...
Post by RS Wood
Post by RS Wood
Fuck those spamming, cracking, douchebags. Chop their fingers off.
snip
For sure, with a broken bottle!
Post by RS Wood
Wasn't a very fun weekend but the site is back up. Give it another
try.
BTW, I have your site listed among my external refference links.
B.H.
2016-03-16 05:40:44 UTC
Permalink
Post by RS Wood
Post by Johannes Koehler
Hi list,
is it possible to point mutt to imap
folders within the mbox-hook cmd?
snip>>
Post by RS Wood
Sure! 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 Wood
mailboxes 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.
RS Wood
2016-03-19 07:08:42 UTC
Permalink
Post by B.H.
Better yet, do something like-
Wow, that is very clever.
--
B.H.
2016-03-19 18:21:55 UTC
Permalink
Yes, for a few years I had my PW in plain text in my muttrc file, but was
uncomfortable with this obviously weak security.
This would be bad for any email account, but if someone got my gmail PW it
would be especially bad as I use other google aps, and even use google to sign
in to other sites and services.
I love mutt's flexability, and in general have no problem with mutt making you
use external programs to handle tasks. Encrypting passwords is one job that it
would be nice to see mutt integrate in to its core functionality however, i.e.
computer novices and less confident/adventurous users are likely to not both
with finding a way to protect their passwords, and until pretty recently mutt
password encryption wasn't covered in high ranking mutt configuration search
results.
Once I found a way to protect my PW I became more motivated to really trick
out my Mutt and train it to be an even more awesome email program than it is
out of the box with a basic muttrc.
Post by B.H.
Post by RS Wood
Post by Johannes Koehler
Hi list,
is it possible to point mutt to imap
folders within the mbox-hook cmd?
snip>>
Post by RS Wood
Sure! 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
Post by B.H.
snip
Post by RS Wood
mailboxes 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-
"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 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.
Loading...