[Psi-devel] Commas in contact names

Francisco Joaquín Rodríguez Prados prados at gmail.com
Sat Jun 11 07:26:49 PDT 2005


>From Flyspray. The patch is done, but seems it would need some review:

******Comment by Francisco Joaquín Rodríguez Prados (sabaoth) -
Sunday, 5 Jun 2005, 12:00pm

Done. Now The names are enclosed in double quotation marks (") as they
are in the standard e-mail way. Double quotation marks in nicknames
are turned into single quotation marks (') when displaying the names
in the message dialog, so there are no conflicts.

******Comment by Trejkaz (trejkaz) - Friday, 10 Jun 2005, 8:09am

Actually I think the "standard" email way is to quote the string and
then replace
"
with
\"

******Comment by Francisco Joaquín Rodríguez Prados (sabaoth) -
Friday, 10 Jun 2005, 4:45pm

I thought the users could think that's some kind of bug, and try to
delete the '\'. So turning every " in the name into a ' makes any bad
- I guess - and seems more clear to me - even thought the "standard"
is escaping the "s...
Link to this commentComment by Trejkaz (trejkaz) - Friday, 10 Jun 2005, 9:52pm

So does this confusion happen in all email clients which already do this?

******Comment by Francisco Joaquín Rodríguez Prados (sabaoth) -
Saturday, 11 Jun 2005, 9:21am

I don't think so. But in email clients is quite easy to realize when a
piece of text which is suposed to be an e-mail address is so or not:

[A-Za-z._-]+@[A-Za-z._-]+.[A-Za-z]+ or whatever format an e-mail
address has (I gess it is in the RFC).

In the code there's not such check. I thought of that, but would
suppose big changes in the source - such as adding QRegExp - so I
thought in that (temporal?) solution which was fast and needed no
testing.

-- 
Francisco Joaquín Rodríguez Prados
Fachbereich Informatik,
Fachhochschule Darmstadt,
Darmstadt, Germany
E-mail: prados at gmail.com
JID: franqui at jabber.dk


More information about the Psi-devel-affinix.com mailing list