Changeset 4dfe1d


Ignore:
Timestamp:
Apr 19, 2008, 2:58:54 PM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
e21b59
Parents:
92b812
Message:

use parseAddress to recognize the recipients address also without the '"'

File:
1 edited

Legend:

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

    r92b812 r4dfe1d  
    105105    __getRDFResourceForVIdentity : function (recDescription, recType) {
    106106        if (!vI_rdfDatasource.rdfDataSource) return null;
    107         recDescription = recDescription.replace(/^\s+|\s+$/g,"")
    108         if (!recDescription) {
     107        var parsed = vI_helper.parseAddress(recDescription)
     108        if (!parsed.combinedName) {
    109109            vI_notificationBar.dump("## vI_rdfDatasource: __getRDFResourceForVIdentity: no Recipient given.\n");
    110110            return null;
    111111        }
     112        vI_notificationBar.dump("## vI_rdfDatasource: __getRDFResourceForVIdentity: recDescription=" + parsed.combinedName + "\n")
    112113        var rdfNSRecType = null
    113114        switch (recType) {
     
    116117            case "maillist" : rdfNSRecType = vI_rdfDatasource.rdfNSMaillist; break;
    117118        }
    118         return vI_rdfDatasource.rdfService.GetResource(vI_rdfDatasource.rdfNS + rdfNSRecType + recDescription);
     119        return vI_rdfDatasource.rdfService.GetResource(vI_rdfDatasource.rdfNS + rdfNSRecType + parsed.combinedName);
    119120    },
    120121   
Note: See TracChangeset for help on using the changeset viewer.