This patch adds crypto_selector to the variables available to the before-edit hook, so one can set default crypto-options or sign/encrypt a mail depending on e.g the message or header content. Users should beware that the variable can be nil, since the same hook is also run from reply_mode which doesn't have access to the crypto_selector element or crypto-support can be absent entirely.