Hi Brian,
(I'm doing a bit of work on autocompletion of email addresses... I build
the match list by looking for EmailAddress items whose emailAddress or
fullName attributes start with what the user typed so far.)
The comments on Mail.EmailAddress's kindInfo suggest that the
emailAddress attribute is allowed to contain the fullname as well as the
address itself; this doesn't seem to work with the way
EmailAddress.__unicode__() is implemented: if this happens to be the
address returned by getCurrentMeEmailAddress, you end up with "me <Bryan
Stearns <[EMAIL PROTECTED]>>".
Also, if I only put the address itself in emailAddress, and 'Bryan
Stearns' in fullName, I find that the getCurrentMeEmailAddress's display
string is always 'me <[EMAIL PROTECTED]>'. This looks weird when
I type 'Bryan' in the box and it matches 'me <[EMAIL PROTECTED]>'.
So, I'd like to suggest that EmailAddress.emailAddress should only be a
'raw' address ('[EMAIL PROTECTED]'), and also that __unicode__()
be changed to only use messages.ME if both emailAddress and fullName are
u''.
What do you think?
...Bryan
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev