From: =?iso-8859-1?q?<mir...@wa...> - 2005-08-24 12:06:51
|
<br /><table cellspacing=3D"0" cellpadding=3D"0" width=3D"100%" border=3D= "0"><tbody><tr><td>Hello everybody,<br />After posting in Help and Feat= ures forums, and some other problems with <br />jwma-list, I join to th= is list to follow the postings...<br />As I said, I developed a first d= raft for searching messages (get <br />messages matching a pattern). I = don't have strong knowledge of <br />java/servlets/jsp, so I'm sure my = code can be widely improved.<br />The fact is more or less I get search= ing messages basing on <br />From/Subject/Body fields, but I'm not sure= the way of searching. I <br />mean, if I specified 2 or more fields, h= ow should the search work? With <br />OR or with AND between the fields= ? For example, when you search a <br />message like this: <br />- From:= john <br />- Subject: holidays <br />- Body: empty (nothing written) <= br />In this case, should you see only those messages with From field=3D= John <br />AND Subject field=3D holidays?=A0 <br />Or should you see t= hose messages with From field=3D John and Subject <br />field=3D whatev= er OR From field=3D whatever and Subject field=3D holidays OR <br />Fro= m field=3D John and Subject field=3D holidays? <br /><br />To introduce= to the search engine, I use javax. mail.search package and <br />it pr= ovides all mechanisms to do the search including the possibility <br />= of doing logical operators between the fields...<br /><br />Another thi= ngs is that I use Search mechanism inside the folder one is <br />in be= cause at least for beginning this is easier, but as Leonard told <br />= me this needs to be discussed...<br /><br />Of course, I share the code= , but I'm sure that it doesn't measure up <br />to the rest of jwma pro= ject....<br /><br />Thanks<br />Rgds,<br />Miriam<br /></td></tr></tbod= y></table><br/><br/><a href=3D"http://webmail.wanadoo.es">webmail.wanad= oo.es </a>- Tu correo gratuito, r=E1pido y en espa=F1ol |