This is just some static backup of the original site, don't expect every link to work!

Ignore:
Timestamp:
Sep 25, 2011, 9:23:06 PM (11 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
284956
Parents:
7666cb
Message:

compatibility for conversation plugin

File:
1 edited

Legend:

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

    r7666cb r9cedc0  
    4040
    4141virtualIdentityExtension.ns(function() { with (virtualIdentityExtension.LIB) {
     42// var storedHeaders = { };
    4243var getHeader = {
    4344    messenger: null,
     
    9091        // create array to count the header
    9192        var currentHeadersCounter = [];
     93//      storedHeaders = { };
    9294       
    9395        var listId = false; var received = false; var content_base = false;
     
    99101            if (!listId && headerName == "list-id") {
    100102                hdr.setStringProperty("vI_list-id","found"); listId = true;
     103//              storedHeaders["vI_list-id"] = "found";
    101104                vI.notificationBar.dump("## getHeader: found header: list-id  ...stored to recognize mailing-list\n");
    102105//              continue;
     
    106109            if (!received && headerName == "received") {
    107110                hdr.setStringProperty("vI_received","found"); received = true;
     111//              storedHeaders["vI_received"] = "found";
    108112                vI.notificationBar.dump("## getHeader: found header: received  ...stored to recognize received mail\n");
    109113//              continue;
     
    113117            if (!content_base && headerName == "content-base") {
    114118                hdr.setStringProperty("vI_content_base","found"); content_base = true;
     119//              storedHeaders["vI_content_base"] = "found";
    115120                vI.notificationBar.dump("## getHeader: found header: content-base  ...stored to recognize blog/news-feed\n");
    116121//              continue;
     
    130135                        ", " + value;
    131136                    hdr.setStringProperty(getHeader.headerToSearch[index].headerNameToStore,getHeader.unicodeConverter.ConvertFromUnicode(value) + getHeader.unicodeConverter.Finish());
     137                   
     138//                  storedHeaders[getHeader.headerToSearch[index].headerNameToStore] = getHeader.unicodeConverter.ConvertFromUnicode(value) + getHeader.unicodeConverter.Finish();
    132139
    133140                    var storedValue = hdr.getProperty(getHeader.headerToSearch[index].headerNameToStore)
     
    136143                        "[:" + currentHeadersCounter[headerName] + "] - stored as '" +
    137144                        storedConvValue + "'\n");
     145/*                  vI.notificationBar.dump("## getHeader: additional stored header: " + getHeader.headerToSearch[index].headerNameToStore +
     146                        " '" + storedHeaders[getHeader.headerToSearch[index].headerNameToStore] + "'\n");*/
    138147                    if (!found) {
    139148                        subtitle = getHeader.strings.getString("vident.getHeader.headerFound");
     
    376385window.addEventListener("load", function(e) { prepareHeader.init(); }, false);
    377386window.addEventListener("unload", function(e) { prepareHeader.cleanup(); }, false);
     387// vI.storedHeaders = storedHeaders;
    378388}});
Note: See TracChangeset for help on using the changeset viewer.