    # File lib/vmail.rb, line 96
      def noninteractive_list_messages
        check_lynx
        opts = Vmail::Options.new(ARGV)
        opts.config
        config = opts.config.merge 'logfile' => 'vmail.log'
        mailbox, query = parse_query
        query_string = Vmail::Query.args2string query
        imap_client  = Vmail::ImapClient.new config
        imap_client.with_open do |vmail|
          vmail.select_mailbox mailbox
          vmail.search query_string
        end
      end