I'm adding support for verifying SEARCH correctness to my
imaptest tool
and I'm wondering how I should verify FROM/TO/CC/BCC
searches. Their
description in RFC 3501 clearly doesn't match what servers
currently do:
FROM <string>
Messages that contain the specified string in the
envelope
structure's FROM field.
Envelope doesn't contain "user domain" anywhere, but
searching it works
fine with all servers and is used by clients (I assume). I
did a few
tests with UW-IMAP:
1) From: user domain.org
SEARCH FROM user domain.org matches
SEARCH FROM <user domain.org> doesn't match
2) From: <user domain.org>
SEARCH FROM user domain.org matches
SEARCH FROM <user domain.org> doesn't match
3) From: User Name <user domain.org>
SEARCH FROM "User Name <user domain.org>"
matches
4) From: user domain.org (User Name)
SEARCH FROM "User Name <user domain.org>"
matches
SEARCH FROM "user domain.org (User Name)" doesn't
match
I suppose not all servers have that exact same logic, so
what would be
valid matching searches? I'd guess:
1) user domain
2) "User Name"
3) Group name
And with comments removed from all of those in case they
exist.
_______________________________________________
Imap-protocol mailing list
Imap-protocol u.washington.edu
https://mailman1.u.washington.edu/mailman/listin
fo/imap-protocol
|