On Saturday, 19 February 2000 at 00:51, Bradley Alexander wrote:
> Hello,
> 
> I am trying to transition from pine to mutt. The problem I am running into
> is that I want to use IMAP to two accounts. I'm running Debian/woody with
> mutt-1.1.3-1.
> 
> Two things I would like to know is how to set up IMAP folders so I can
> access them automagically (I can get into it manually by invoking mutt -f
> {host1.org} or whatever or using going to the folder from the menu). The
> other issue is that I can only get to {host2.com} when I am at work. If
> there is a way to set this up so that there is a selective way to access
> that particular inbox, I would love to hear that too.

I'm not sure exactly what you want mutt to do for you. You can play
with setting $spoolfile, $folder, or define some macros to switch
between these folders.

> The other thing is that I would like is to have mutt change the From:
> address based on these two folders. If I am in the {host1.org}INBOX, I
> would like to have From: [EMAIL PROTECTED], and so forth. I tried setting
> 
> folder-hook \{host2.com\}INBOX "my_hdr From: Bradley M Alexander
> <[EMAIL PROTECTED]>"
> folder-hook \{host1.org\}INBOX "my_hdr From: Bradley M Alexander
> <[EMAIL PROTECTED]>"

I'm no expert on the parsing engine, but I think mutt makes two
expansion passes over these strings. You might want to try something
like \\{host2.com\\} and see if you have better results. BTW mutt 1.1
has a variable $from which you may wish to use instead of my_hdr, ie:

folder-hook \\{host2.com\\}INBOX "set from='Bradley M Alexander 
<[EMAIL PROTECTED]>'"

-Brendan

PGP signature

Reply via email to