Changeset aac9e6


Ignore:
Timestamp:
Sep 11, 2009, 3:51:15 PM (12 years ago)
Author:
rene <rene@…>
Branches:
lite_0.1, multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
Children:
4e597d
Parents:
0ba9d1
Message:

repair invalid folder settings

File:
1 edited

Legend:

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

    r0ba9d1 raac9e6  
    6464    var fccElement = document.getElementById("VIdent_identity.fccFolder")
    6565    var fccElementValue = fccElement.getAttribute("value");
    66     if (!fccElementValue) fccElement.setAttribute("value", rootFolder.server.serverURI + gFccFolderWithDelim)
     66    if (!fccElementValue || !GetMsgFolderFromUri(fccElementValue, false))
     67        fccElement.setAttribute("value", rootFolder.server.serverURI + gFccFolderWithDelim)
    6768
    6869    var draftElement = document.getElementById("VIdent_identity.draftFolder")
    6970    var draftElementValue = draftElement.getAttribute("value");
    70     if (!draftElementValue) draftElement.setAttribute("value", rootFolder.server.serverURI + gDraftsFolderWithDelim)
     71    if (!draftElementValue || !GetMsgFolderFromUri(draftElementValue, false))
     72        draftElement.setAttribute("value", rootFolder.server.serverURI + gDraftsFolderWithDelim)
    7173
    7274    var stationeryElement = document.getElementById("VIdent_identity.stationeryFolder")
    7375    var stationeryElementValue = stationeryElement.getAttribute("value");
    74     if (!stationeryElementValue) stationeryElement.setAttribute("value", rootFolder.server.serverURI + gTemplatesFolderWithDelim)
     76    if (!stationeryElementValue || !GetMsgFolderFromUri(stationeryElementValue, false))
     77        stationeryElement.setAttribute("value", rootFolder.server.serverURI + gTemplatesFolderWithDelim)
    7578}
    7679
Note: See TracChangeset for help on using the changeset viewer.