]> granicus.if.org Git - mutt/commit
Do not allow a command in an account-hook to trigger another account-hook.
authorBrendan Cully <brendan@kublai.com>
Tue, 13 Jan 2009 14:51:42 +0000 (06:51 -0800)
committerBrendan Cully <brendan@kublai.com>
Tue, 13 Jan 2009 14:51:42 +0000 (06:51 -0800)
commit704338030db69ca691ce1b9914aba6dc4205f373
treec46c7f4197fc4d0924a78238e153c68aaec4e649
parent5360ce9b1a5a10fd972cd3d6e4f05059a394fd53
Do not allow a command in an account-hook to trigger another account-hook.
Recent changes in the IMAP path canonifier mean that account-hooks
that set variables to URLs (eg folder, spoolfile) can trigger a
recursive account-hook. Now we just bail out of account-hook early if
we are called recursively, but perhaps we should warn the user to use
a folder-hook instead.
Thanks to Kyle Wheeler for finding this one.
hook.c