Changeset 188fde


Ignore:
Timestamp:
Apr 2, 2010, 12:28:59 PM (12 years ago)
Author:
rene <rene@…>
Branches:
multiEdit, ng_0.6, ng_0.8, ng_0.9
Children:
73a656
Parents:
ba35a7
Message:

ignore case of names/emails in final check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/v_identity.js

    rba35a7 r188fde  
    191191            vI_notificationBar.dump("## vI_identityData virtualIdentityData: fullName='" + virtualIdentityData.fullName + "' email='" + virtualIdentityData.email + "' smtp='" + virtualIdentityData.smtp.key + "'\n");
    192192
    193             if  (currentIdentity.fullName == virtualIdentityData.fullName   &&
    194                 currentIdentity.email == virtualIdentityData.email      &&
     193            if  (currentIdentity.fullName.toLowerCase() == virtualIdentityData.fullName.toLowerCase()   &&
     194                currentIdentity.email.toLowerCase() == virtualIdentityData.email.toLowerCase()      &&
    195195                virtualIdentityData.smtp.equal(currentSMTPobj)  ) {
    196196                    vI_main.original_functions.GenericSendMessage(msgType);
    197197            }
    198198            else {
    199                 if (!(currentIdentity.fullName == virtualIdentityData.fullName)) vI_notificationBar.dump("\n## vI_identityData failed check for fullName.\n");
    200                 if (!(currentIdentity.email == virtualIdentityData.email)) vI_notificationBar.dump("\n## vI_identityData failed check for email.\n");
     199                if (!(currentIdentity.fullName.toLowerCase() == virtualIdentityData.fullName.toLowerCase())) vI_notificationBar.dump("\n## vI_identityData failed check for fullName.\n");
     200                if (!(currentIdentity.email.toLowerCase() == virtualIdentityData.email.toLowerCase())) vI_notificationBar.dump("\n## vI_identityData failed check for email.\n");
    201201                if (!(virtualIdentityData.smtp.equal(currentSMTPobj))) vI_notificationBar.dump("\n## vI_identityData failed check for SMTP.\n");
    202202                alert(vI_main.elements.strings.getString("vident.genericSendMessage.error"));
Note: See TracChangeset for help on using the changeset viewer.