messages: all

# just check that this returns ok. it's not really specified in RFC, so
# don't verify the result.
ok search subject ""

# subject
ok search subject hello
* search 1
ok search subject beautiful
* search 1
ok search subject world
* search 1
ok search subject "hello beautiful"
* search 1
ok search subject "hello beautiful world"
* search 1
#ok search subject "eautiful worl"
#* search 1

# header
ok search header subject ""
* search 1
ok search not header subject ""
* search 2
#ok search header x-extra ""
#* search 2
#ok search not header x-extra ""
#* search 1
#ok search header x-extra hello
#* search 2
#ok search header x-extra "hello beautiful"
#* search 2
#ok search header x-extra "eautiful head"
#* search 2
#ok search header x-extra "another"
#* search 2
