Changeset 765b40


Ignore:
Timestamp:
Sep 18, 2008, 10:08:42 PM (13 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
1e91c5
Parents:
fcc011
Message:

bugfix: there should be a difference between SmartReply? SMTP not set and stored default SMTP

Location:
chrome/content/v_identity
Files:
2 edited

Legend:

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

    rfcc011 r765b40  
    170170            var id = vI_rdfDatasource.__getRDFValue(resource, "id")
    171171            var smtp = vI_rdfDatasource.__getRDFValue(resource, "smtp")
     172            if (!smtp) smtp = ""; // to indicate default SMTP (different than null like with SmartReply)
    172173            var extras = new vI_storageExtras(vI_rdfDatasource.__getRDFValue, resource);
    173174           
     
    193194        var id = vI_rdfDatasource.__getRDFValue(resource, "id")
    194195        var smtp = vI_rdfDatasource.__getRDFValue(resource, "smtp")
    195        
     196        if (!smtp) smtp = ""; // to indicate default SMTP (different than null like with SmartReply)
     197
    196198        vI_notificationBar.dump("## vI_rdfDatasource: email '" + email + "'\n");
    197199        vI_notificationBar.dump("## vI_rdfDatasource: fullName '" + fullName + "'\n");
  • chrome/content/v_identity/vI_storage.js

    rfcc011 r765b40  
    107107
    108108    __equalSMTP : function(compareSmtp) {
     109        if (this.smtp == null) return true;     // it is only null if from SmartReply
     110                            // default SMTP is indicated with ""
    109111        var mainSmtp = this.smtp;
    110112        if (!mainSmtp || !this.__keyTranslator.isValidSMTP(mainSmtp)) mainSmtp = this.smtpService.defaultServer.key;
Note: See TracChangeset for help on using the changeset viewer.