<<< Date Index >>>     <<< Thread Index >>>

Re: disable exit



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday, June  6 at 09:01 AM, quoth Eric Smith:
>How do I disable exit in mutt?  So no matter what macros or
>keypresses, mutt does not exit.

Well... that's going to be tough. Particularly since various 
control-key combinations cause the terminal itself to issue signals to 
the running application (e.g. the un-catchable SIGKILL).

You'd have to patch mutt to tell it to completely ignore SIGTERM 
(control-C), but other termination signals are going to be tough to 
beat. Presuming you can abuse your terminal into not sending those 
signals, it's relatively easy to unbind all the exit commands: just 
find them, and rebind those keys to something else.

Of course, you'd also have to get rid of mutt's ability to accept user 
config commands (such as the default : key), because you can make mutt 
exit that way too.

I'm thinking you'd really have to patch mutt to thoroughly get rid of 
any possible mechanism for exiting.

~Kyle
- -- 
When we blindly adopt any religion, political system, or literary 
dogma, we become automatons. We cease to grow.
                                                           -- Anais Nin
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFGZrYJBkIOoMqOI14RAqMvAJ9wg3QhXH9Hc/ceYtgWPeTb245zBwCgzHXz
fqdgGgY+4YtD3D/Eh3dZSvM=
=hi/z
-----END PGP SIGNATURE-----