account-hook 'm...@server' \
'set folder="imaps://m...@server/INBOX";\
set spoolfile="imaps://m...@server/INBOX"'
set folder=imaps://m...@server/INBOX
What will happen is that while parsing the “set folder” line, mutt
will attempt to expand the path specified, which now requires
triggering the account-hooks. The account hook will attempt to expand
the path specified, which will re-trigger the account hook, which will
re-attempt expanding the path specified, and this will continue
recursing until the stack is thoroughly smashed.
This didn’t used to happen.I suppose my question is: is this account-hook unreasonable? Should it be turned into a folder-hook? Should mutt perhaps do something a bit more useful than crashing mysteriously in this case? Perhaps mutt should detect that $folder is being set inside an account hook and simply spit out an error? If there are settings that will cause mutt to CRASH (such as this one), I think we should go the extra mile to give a useful error message instead.
~Kyle --No one really listens to anyone else, and if you try it for a while you'll see why.
-- Mignon McLaughlin
pgpxi1tnGExr9.pgp
Description: PGP signature
