Hi,

This may be of use to developers and people testing code. There are 14 possible invalid forms of JIDs and some variations on valid JIDs with invalid lengths, viz:

jidforms = [
        "",
        "@",
        "@/resource",
        "@domain",
        "@domain/",
        "@domain/resource",
        "nodename@",
        "/",
        "[EMAIL PROTECTED]/",
        "nodename@/",
        "@/",
        "nodename/",
        "/resource",
        "nodename@/resource",
 ]

A python script (requires xmpppy) which tests for all of these is available from http://j2.openaether.org/bugzilla/attachment.cgi?id=114

Regards
Stephen

Reply via email to