Changeset 962758


Ignore:
Timestamp:
Sep 17, 2008, 7:00:00 PM (13 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
fcc011
Parents:
058509
Message:

bugfix: detection of mailinglist's was broken

Location:
chrome/content/v_identity
Files:
2 edited

Legend:

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

    r058509 r962758  
    116116    __getRDFResourceForVIdentity : function (recDescription, recType) {
    117117        if (!vI_rdfDatasource.rdfDataSource) return null;
    118         var parsed = vI_helper.parseAddress(recDescription)
    119         if (!parsed.combinedName) {
     118        if (!recDescription) {
    120119            vI_notificationBar.dump("## vI_rdfDatasource: __getRDFResourceForVIdentity: no Recipient given.\n");
    121120            return null;
     
    128127            case "maillist" : rdfNSRecType = vI_rdfDatasource.rdfNSMaillist; break;
    129128        }
    130         return vI_rdfDatasource.rdfService.GetResource(vI_rdfDatasource.rdfNS + rdfNSRecType + parsed.combinedName);
     129        return vI_rdfDatasource.rdfService.GetResource(vI_rdfDatasource.rdfNS + rdfNSRecType + recDescription);
    131130    },
    132131   
  • chrome/content/v_identity/vI_storage.js

    r058509 r962758  
    420420        else if (vI_storage.isMailingList(recipient))
    421421            return { recDesc : vI_storage.getMailListName(recipient), recType : "maillist" }
    422         else return { recDesc : recipient, recType : "email" }
     422        else
     423            return { recDesc : vI_helper.parseAddress(recipient).combinedName, recType : "email" }
    423424    },
    424425       
     
    549550        var queryString = "?(or(DisplayName,c," + encodeURIComponent(vI_storage.getMailListName(recipient)) + "))"
    550551        var returnVar = vI_storage._walkTroughCards(queryString, vI_storage._isMailingListCard,
    551             { mailListName : recipient, isMailList : false } )
     552            { mailListName : vI_storage.getMailListName(recipient), isMailList : false } )
    552553        vI_notificationBar.dump("## vI_storage: isMailList  " + returnVar.isMailList + ".\n")
    553554        return returnVar.isMailList;
Note: See TracChangeset for help on using the changeset viewer.