List Info

Thread: SEARCH and addresses




SEARCH and addresses
country flaguser name
Finland
2008-02-20 12:32:43
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 "userdomain" 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: userdomain.org

SEARCH FROM userdomain.org matches
SEARCH FROM <userdomain.org> doesn't match

2) From: <userdomain.org>

SEARCH FROM userdomain.org matches
SEARCH FROM <userdomain.org> doesn't match

3) From: User Name <userdomain.org>

SEARCH FROM "User Name <userdomain.org>"
matches

4) From: userdomain.org (User Name)

SEARCH FROM "User Name <userdomain.org>"
matches
SEARCH FROM "userdomain.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) userdomain
2) "User Name"
3) Group name

And with comments removed from all of those in case they
exist.

_______________________________________________
Imap-protocol mailing list
Imap-protocolu.washington.edu
https://mailman1.u.washington.edu/mailman/listin
fo/imap-protocol
Re: SEARCH and addresses
country flaguser name
United States
2008-02-20 12:50:00
The only implementation that seemed to work well was one
that 
canonicalized the addresses into RFC 2822 normalized form,
hence
 	userdomain
 	phrase <userdomain>

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for
lunch.
Liberty is a well-armed sheep contesting the vote.
_______________________________________________
Imap-protocol mailing list
Imap-protocolu.washington.edu
https://mailman1.u.washington.edu/mailman/listin
fo/imap-protocol

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )