Friday, April 28, 2006

jid escaping for hatrack [at]

After some consideration, with nr's help, the following format seems sensible for hatracked things:
dude@ranch.com^phycon@spqr.com@hatrack.jabber.server
escaped:
dude\40ranch.com^phycon\40spqr.com@hatrack.jabber.server
instead of:
dude[at]ranch.com[^]phycon[at]spqr.com@hatrack.jabber.server

When rendering a hatracked jid, inserting "\nvia: " for ^'s (and maybe unescaped @'s) leads to enhanced readability.
dude@ranch.com
via: phycon@spqr.com
via: hatrack.jabber.server
or
dude@ranch.com
via: phycon@spqr.com@hatrack.jabber.server

0 Comments:

Post a Comment

<< Home