[jdev] Re: How can I verify the JID validity?
Alexey Nezhdanov
snake at penza-gsm.ru
Thu Mar 17 04:37:32 CST 2005
В сообщении от Четверг 17 Март 2005 13:10 George Hazan написал(a):
> Hello, Alexey!
> 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
> AN> SPIM-list.
>
> 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 :)
1) I'm not saying that you compiling such list. I'm just saying that this is
possible as long as server provides a way to find out if a particular user
exists.
2) Some people have no any vCard at all. I have several such people in my
roster. So you will delete valid entries from time to time.
Just give up. Treat this as e-mail address - usually you can not know if email
is valid or not until you will got a reply from remote user.
--
Respectfully
Alexey Nezhdanov
More information about the JDev
mailing list