>On Sat, Nov 13, 2010 at 06:03:43PM -0800, Michael Elkins wrote:
>On Sat, Nov 13, 2010 at 11:50:32AM -0900, Roger wrote:
>Looks pretty nice.  You can simplify it a little by by simply using the value 
>of $imap_user directly when setting the $status_format:
>
>>account-hook 'imaps://[email protected]/' 'set imap_user="[email protected]" 
>>imap_pass="xxx" \
>>   smtp_url="smtps://[email protected]@smtp.gmail.com/" \
>>   smtp_pass="xxx"
>>account-hook 'imaps://[email protected]/' 'set imap_user="[email protected]" 
>>imap_pass="xxx" \
>>   smtp_url="smtps://[email protected]@smtp.gmail.com/"
>>   smtp_pass="xxx"
>
># note the use of single quotes here.  it prevents $imap_user from being 
># expanded until the hook is evaluated, instead of when parsed.
>folder-hook . 'set status_format = "-%r-Mutt $imap_user: %f 
>[Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? 
>Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---" '

Noted on single quotes.  Starting to finally sink in after years of
programming.  Program is read in, and then executed.  Lazy mind syndrome.

But for me, using a folder hook doesn't make sense unless I'm working with
folders -- but this makes me think a bit further.  Instead of mapping accounts
to function keys, it might be more proper to create maildir folders, which then
would utilize the above folder-hook?

Using sub-folders along with folder-hooks, to change accounts I would then use
'c' along with the usual other navigation adds when moving through the folder
index.

I might institute both methods somehow to find which method is more suited, when
I get more time.

-- 
Roger
http://rogerx.freeshell.org/

Reply via email to