Changeset ef65ae


Ignore:
Timestamp:
Oct 15, 2009, 10:13:04 PM (10 years ago)
Author:
rene <rene@…>
Branches:
lite_0.1, multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
Children:
47e482, 90d3d0
Parents:
c0fe7f
Message:

fix/enhancement for #161

Files:
2 edited

Legend:

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

    rc0fe7f ref65ae  
    415415   
    416416    __removeSmartIdentityFromRecipients : function(allIdentities, index) {
     417        if (!vI.preferences.getBoolPref("idSelection_removeSmartIdentityFromRecipients")) return;
     418       
     419        // check if selected email is defined as doBcc address. If so, it should not be removed.
    417420        var skip_bcc = false;
    418        
    419421        if (getCurrentIdentity().doBcc) {
    420422            var bcc_addresses = new identityCollection();
     
    427429            }
    428430        }
     431       
     432        // check if there is more than one recipient for this mail. If not, preserve the only one existing.
     433        var recipientCount = 0;
     434        for (var row = 1; row <= top.MAX_RECIPIENTS; row ++) {
     435            var recipientType = awGetPopupElement(row).selectedItem.getAttribute("value");
     436            if (recipientType == "addr_to" || recipientType == "addr_cc") recipientCount++;
     437        }
     438        if (recipientCount < 2) return;
     439       
    429440       
    430441        for (var row = 1; row <= top.MAX_RECIPIENTS; row ++) {
  • defaults/preferences/preferences.js

    rc0fe7f ref65ae  
    5757pref("extensions.virtualIdentity.idSelection_autocreate", true);
    5858pref("extensions.virtualIdentity.idSelection_preferExisting", true);
     59pref("extensions.virtualIdentity.idSelection_removeSmartIdentityFromRecipients", true);
    5960pref("extensions.virtualIdentity.autoReplyToSelf", false);
    6061pref("extensions.{dddd428e-5ac8-4a81-9f78-276c734f75b8}.description", "chrome://v_identity/locale/v_identity.properties");
Note: See TracChangeset for help on using the changeset viewer.