BUGFIX: Refuse to set global_mode to an unknown mode.

  We'll return an error if you try to run:

        global_mode( "cookie" );

  The valid modes are: maildir, index, message & text.