Changeset e8f60f


Ignore:
Timestamp:
Jul 25, 2007, 2:17:27 PM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
4c28ba
Parents:
2694fe
Message:

import version 0.4.2

Files:
11 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/_version.dtd

    r2694fe re8f60f  
    1 <!ENTITY vident.version "0.4.1">
     1<!ENTITY vident.version "0.4.2">
  • chrome/content/v_identity/vI_msgIdentityClone.js

    r2694fe re8f60f  
    158158        vI_msgIdentityClone.initMsgIdentityTextbox_clone();
    159159        if (newIdentity) {
    160             if (vI.replacement_functions.replaceGenericFunction()) {
    161                 if (vI.elements.Obj_vILogo.getAttribute("hidden") != "false") {
    162                     vI_msgIdentityClone.elements.Obj_MsgIdentityTextbox_clone
    163                         .setAttribute("class", vI_msgIdentityClone.text_virtualId_class);
     160            vI.replacement_functions.replaceGenericFunction()
     161            if (vI.elements.Obj_vILogo.getAttribute("hidden") != "false") {
     162                vI_msgIdentityClone.elements.Obj_MsgIdentityTextbox_clone
     163                    .setAttribute("class", vI_msgIdentityClone.text_virtualId_class);
     164                vI_msgIdentityClone.elements.Obj_MsgIdentity_clone
     165                    .setAttribute("class", vI_msgIdentityClone.icon_virtualId_class);
     166                if (vI_msgIdentityClone.elements.Obj_MsgIdentity_clone
     167                    .getAttribute("value") != "vid") {
    164168                    vI_msgIdentityClone.elements.Obj_MsgIdentity_clone
    165                         .setAttribute("class", vI_msgIdentityClone.icon_virtualId_class);
    166                     if (vI_msgIdentityClone.elements.Obj_MsgIdentity_clone
    167                         .getAttribute("value") != "vid") {
    168                         vI_msgIdentityClone.elements.Obj_MsgIdentity_clone
    169                             .setAttribute("value","vid")
    170                         var accountname = document.getElementById("prettyName-Prefix")
    171                                     .getAttribute("label")
    172                                     + vI_msgIdentityClone.elements.Obj_MsgIdentity_clone
    173                                     .getAttribute("accountname")
    174                         vI_msgIdentityClone.elements.Obj_MsgIdentity_clone
    175                             .setAttribute("accountname", accountname)
    176                     }
    177                     vI.elements.Obj_vILogo.setAttribute("hidden","false");
     169                        .setAttribute("value","vid")
     170                    var accountname = document.getElementById("prettyName-Prefix")
     171                                .getAttribute("label")
     172                                + vI_msgIdentityClone.elements.Obj_MsgIdentity_clone
     173                                .getAttribute("accountname")
     174                    vI_msgIdentityClone.elements.Obj_MsgIdentity_clone
     175                        .setAttribute("accountname", accountname)
    178176                }
     177                vI.elements.Obj_vILogo.setAttribute("hidden","false");
    179178            }
    180179        }
     
    202201                //  ignore (other) virtualIdentity Accounts
    203202                if (!server || server.hostName == "virtualIdentity") continue;
    204            
     203                // ignore newsgroup accounts if not selected in preferences
     204                if (!vI.preferences.getBoolPref("smart_reply_for_newsgroups") &&
     205                    server.type == "nntp") continue;
     206               
    205207                var identites = queryISupportsArray(accounts[i].identities, Components.interfaces.nsIMsgIdentity);
    206208                for (var j in identites) {
  • chrome/content/v_identity/vI_prefDialog.js

    r2694fe re8f60f  
    128128            var autocreate = document.getElementById("VIdent_identity.smart_reply_autocreate")
    129129            ask_always.setAttribute("disabled", (autocreate.checked || !ask.checked))
    130             autocreate.setAttribute("disabled", ask_always.checked)
     130            autocreate.setAttribute("disabled", (ask.checked && ask_always.checked))
    131131        },
    132132       
  • chrome/content/v_identity/vI_smartIdentity.js

    r2694fe re8f60f  
    102102        vI_notificationBar.dump("## vI_smartIdentity: search for preselected Identity\n");
    103103        current_email = getCurrentIdentity().email.toLowerCase();
     104        vI_notificationBar.dump("## vI_smartIdentity: preselected email: " + current_email + "\n");
    104105        current_name =  getCurrentIdentity().fullName.toLowerCase();
     106        vI_notificationBar.dump("## vI_smartIdentity: preselected name: " + current_name + "\n");
    105107        for (index = 0; index < all_addresses.number; index++) {
    106108            if (current_email == all_addresses.emails[index].toLowerCase()
     
    124126            //  ignore (other) virtualIdentity Accounts
    125127            if (!server || server.hostName == "virtualIdentity") continue;
     128            // ignore newsgroup accounts if not selected in preferences
     129            if (!vI.preferences.getBoolPref("smart_reply_for_newsgroups") &&
     130                server.type == "nntp") continue;
    126131       
    127132            var identities = queryISupportsArray(accounts[i].identities, Components.interfaces.nsIMsgIdentity);
     
    284289       
    285290        if (vI_smartIdentity.smartIdentity_BaseIdentity = vI_smartIdentity.matchAnyIdentity(all_addresses)) {
     291            vI_notificationBar.dump("## vI_smartIdentity:  existing Identity key: " + vI_smartIdentity.smartIdentity_BaseIdentity.key + "\n")
    286292            vI_notificationBar.addNote(
    287293                vI.elements.strings.getString("vident.smartIdentity.matchExisting"),
     
    352358        vI_msgIdentityClone.setMenuToIdentity(vI_smartIdentity.smartIdentity_BaseIdentity.key);
    353359        // after inserting a new signature (as part of the new identity) the cursor is not at the right place.
    354         // there is no easy way to est the cursor at the end, before the signature, so set it at the beginning.
     360        // there is no easy way to set the cursor at the end, before the signature, so set it at the beginning.
    355361        if (vI_smartIdentity.smartIdentity_BaseIdentity.attachSignature)
    356362            gMsgCompose.editor.beginningOfDocument();
  • chrome/content/v_identity/vI_smartReplyDialog.js

    r2694fe re8f60f  
    3232        vI_smartReply_dialog.all_addresses = window.arguments[0];
    3333        for (index = 0; index < vI_smartReply_dialog.all_addresses.number; index++)
    34             vI_smartReply_dialog.add_row(vI_smartReply_dialog.all_addresses.combinedNames.value[index]);
     34            vI_smartReply_dialog.add_row(vI_smartReply_dialog.all_addresses.combinedNames[index]);
    3535    },
    3636
  • chrome/content/v_identity/v_identity.js

    r2694fe re8f60f  
    108108            vI.Cleanup_Account();
    109109            if (aResult== Components.results.NS_OK && vI.msgType == nsIMsgCompDeliverMode.Now)
    110                     MsgComposeCloseWindow(false); // on TB 1.5* window is otherwise really closed, only hidden
     110                    MsgComposeCloseWindow(false);
    111111        },
    112112        SaveInFolderDone: function(folderURI) {
     
    122122            vI.original_functions.MsgComposeCloseWindow(false);
    123123        },
    124 
     124       
    125125        GenericSendMessage: function (msgType) {
    126126            vI_notificationBar.dump("## v_identity: VIdentity_GenericSendMessage\n");
     127            vI.msgType = msgType;
    127128            // dont allow user to fake identity if Message is not sended NOW and thunderbird-version is below 2.0 !!!!
    128129            var appID = null;
     
    163164                vI_account.createAccount();
    164165                vI.addVirtualIdentityToMsgIdentityMenu();
    165                 vI.msgType = msgType; // store msgType to know if window should be closed or not
    166                
    167166                vI.original_functions.GenericSendMessage( msgType );
    168167                if (window.cancelSendMessage) {
     
    175174        replaceGenericFunction : function()
    176175        {
    177             if (vI.original_functions.GenericSendMessage) return true;
    178             if (typeof(GenericSendMessage)=="function") {
    179                 vI_notificationBar.dump("## v_identity: replace GenericSendMessage (Virtual Identity activated)\n");
    180                 vI.original_functions.GenericSendMessage = GenericSendMessage;
    181                 GenericSendMessage = function (msgType) {
    182                     vI.replacement_functions.GenericSendMessage(msgType);}
    183                 return true;
    184             }
    185             else {
    186                 vI_notificationBar.dump("## v_identity ERROR: could not replace your SendMessage Function, aborting\n");
    187                 return false;
    188             }
     176            if (GenericSendMessage == vI.replacement_functions.GenericSendMessage) return;
     177            vI_notificationBar.dump("## v_identity: replace GenericSendMessage (Virtual Identity activated)\n");
     178            GenericSendMessage = vI.replacement_functions.GenericSendMessage;
    189179        },
    190180    },
     
    221211        MsgComposeCloseWindow = function (recycleIt) {
    222212            vI.replacement_functions.MsgComposeCloseWindow(recycleIt); }
     213           
     214        // adapt GenericSendMessage to know SendMsgType
     215        vI_notificationBar.dump("## v_identity: adapt GenericSendMessage\n");
     216        vI.original_functions.GenericSendMessage = GenericSendMessage;
     217        GenericSendMessage = function (msgType) {
     218                vI.msgType = msgType; vI.original_functions.GenericSendMessage(msgType); }
    223219       
    224220        gMsgCompose.RegisterStateListener(vI.ComposeStateListener);
     
    263259       
    264260        // restore function
    265         if (vI.original_functions.GenericSendMessage) {
    266             GenericSendMessage = vI.original_functions.GenericSendMessage;
    267             vI.original_functions.GenericSendMessage = null;
     261        if (GenericSendMessage == vI.replacement_functions.GenericSendMessage) {
     262            GenericSendMessage = function (msgType) {
     263                vI.msgType = msgType; vI.original_functions.GenericSendMessage(msgType); }
    268264            vI_notificationBar.dump("## v_identity: restored GenericSendMessage (Virtual Identity deactivated)\n");
    269265        }
  • chrome/locale/cs-CZ/v_identity/contents.rdf

    r2694fe re8f60f  
    2020
    2121</RDF:RDF>
     22</RDF:RDF>
  • chrome/locale/cs-CZ/v_identity/v_identity.dtd

    r2694fe re8f60f  
    2929<!ENTITY vident.prefs.smartReplyTab.Tab3.label "3. pouşít adresy">
    3030<!ENTITY vident.prefs.smartReplyTab.caption "Virtual Identity Smart Reply">
    31 <!ENTITY vident.prefs.smartReplyTab.Tab1.desc "Pro nalezení identity pro odpověď musí Smart Reply získat seznam moÅŸnÃœch identit odesilatele. Analyzuje proto hlavičky &apos;To&apos; a &apos;Cc&apos;. Má-li Smart Reply analyzovat dodatečné hlavičky. Zde můşete zadat tyto a/nebo jiné hlavičky. (Dodatečné moÅŸnosti: Pro vÃœběr n-té hlavičky z několika hlaviček stejného jména přidejte &apos;:n&apos;. Pokud k některému záznamu přidáte &apos;:@&apos;, pouÅŸije se pouze e-mailová adresa a jméno bude ignorováno.)">
     31<!ENTITY vident.prefs.smartReplyTab.Tab1.desc "Pro nalezení identity pro odpověď musí Smart Reply získat seznam moÅŸnÃœch identit odesilatele. Analyzuje proto hlavičky &apos;To&apos; a &apos;Cc&apos;. Má-li Smart Reply analyzovat dodatečné hlavičky. Zde můşete zadat tyto a/nebo jiné hlavičky. (Dodatečné moÅŸnosti: Pro vÃœběr n-té hlavičky z několika hlaviček stejného jména přidejte &apos;n&apos;. Pokud k některému záznamu přidáte &apos;@&apos;, pouÅŸije se pouze e-mailová adresa a jméno bude ignorováno.)">
    3232<!ENTITY vident.prefs.smartReply.headers.desc "nové hlavičky - jedna na řádku, bez &apos;:&apos;, například &apos;x-original-to&apos; nebo &apos;x-original-to:@&apos; nebo &apos;x-original-to:2:@&apos;">
    3333<!ENTITY vident.prefs.smartReply.headers.reset "nastavit vÜchozí hodnoty">
  • chrome/locale/it-IT/v_identity/v_identity.dtd

    r2694fe re8f60f  
    2929<!ENTITY vident.prefs.smartReplyTab.Tab3.label "3. utilizza indirizzi">
    3030<!ENTITY vident.prefs.smartReplyTab.caption "Smart Reply di Virtual Identity">
    31 <!ENTITY vident.prefs.smartReplyTab.Tab1.desc "To find a Reply-Identity, Smart Reply has to get a list of possible sender identities. Therefore usually the header-fields &apos;To&apos; and &apos;Cc&apos; are analyzed. Here you can enter those and/or other header-fields. (additional options: to select header number n out of any headers with the same name add &apos;:n&apos;. If you add &apos;:@&apos; to any entry, only email-addresses are used, names are ignored.)">
     31<!ENTITY vident.prefs.smartReplyTab.Tab1.desc "Per trovare un&apos;identità da usare per le risposte, Smart Reply dovrà costruire una lista delle possibili identità da utilizzare per l&apos;invio. A tal fine vengono di solito analizzate le intestazioni &apos;A&apos; e &apos;Cc&apos;. In questa lista Ú possibile inserire quelle e/o altre intestazioni. Opzioni addizionali: per selezionare l&apos;intestazione numero n sul totale delle intestazioni con lo stesso nome, aggiungere &apos;:n&apos;. Se viene aggiunto &apos;:@&apos; ad un qualunque elemento, verranno utilizzati solamente gli indirizzi e-mail e i nomi saranno ignorati.">
    3232<!ENTITY vident.prefs.smartReply.headers.desc "additional headers  -  one per line, for instance &apos;x-original-to&apos; or &apos;x-original-to:@&apos; or &apos;x-original-to:2:@&apos;">
    3333<!ENTITY vident.prefs.smartReply.headers.reset "Imposta valori predefiniti">
  • install.js

    r2694fe re8f60f  
    77// Editable Items Begin
    88var displayName         = "Virtual Identity"; // The name displayed to the user (don't include the version)
    9 var version             = "0.4.1";
     9var version             = "0.4.2";
    1010var name                = "v_identity"; // The leafname of the JAR file (without the .jar part)
    1111
  • install.rdf

    r2694fe re8f60f  
    2727    <em:id>{dddd428e-5ac8-4a81-9f78-276c734f75b8}</em:id>
    2828    <em:name>Virtual Identity</em:name>
    29     <em:version>0.4.1</em:version>
     29    <em:version>0.4.2</em:version>
    3030    <em:description>Allows you to modify your Identity settings for a single Mail on the fly.</em:description>
    3131    <em:creator>Rene Ejury</em:creator>
Note: See TracChangeset for help on using the changeset viewer.