Finishing Up ------------ The two variables `mh-before-quit-hook' and `mh-quit-hook' are called by `q' (`mh-quit'). The former one is called before the quit occurs, so you might use it to perform any mh-e operations; you could perform some query and abort the quit or call `mh-execute-commands', for example. The latter is not run in an mh-e context, so you might use it to modify the window setup.