[jdev] Re: How can I verify the JID validity?
george.hazan at gmail.com
Thu Mar 17 04:10:40 CST 2005
Thu, 17 Mar 2005 11:46:02 +0300 you wrote:
AN> That's another story. User published this data on his own will. But
AN> simply trying subsequently all possible names can be used for compiling
Ok, let's return to the very beginning. The Find/Add Contact dialog in
Miranda is made that way: you enter a search parameter first, then a
protocol plugin retrieves the result set and puts it to the special window,
then you can click on every contact and add it to your contact list.
When a search is made by a nickname, first/last name or a e-mail, there're
no problems - I send a search query, process the XML and all is Ok.
But for searching by JID I must provide a validator which will decide
whether to put that JID to the search results window or not. So that's why I
need all of that, cause previosly the entered JID was simply copied to the
results window, and users complained that they might try to add something
completely incorrect. I don't want to compile a list of users :)
WMBR, George Hazan (ghazan at postman.ru)
More information about the JDev