--- /dev/null
+DSN Settings (1.0.0)
+ * Creation
+-- Apr 27 2010
--- /dev/null
+DSN Settings
+------------
+
+This add-on for Mozilla Thunderbird 3 adds user interface settings for Delivery Status Notification (DSN) requests.
+
+
+This add-on is written in XUL and Javascript.
+
+Trustedbird/Milimail project
+URL: http://www.trustedbird.org
+Licenses: MPL 1.1+/GPL 2.0+/LGPL 2.1+
--- /dev/null
+content dsn-settings chrome/content/
+locale dsn-settings en chrome/locale/en/
+locale dsn-settings fr chrome/locale/fr/
+
+overlay chrome://messenger/content/preferences/advanced.xul chrome://dsn-settings/content/advanced.xul
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ***** BEGIN LICENSE BLOCK *****
+ - Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ -
+ - The contents of this file are subject to the Mozilla Public License Version
+ - 1.1 (the "License"); you may not use this file except in compliance with
+ - the License. You may obtain a copy of the License at
+ - http://www.mozilla.org/MPL/
+ -
+ - Software distributed under the License is distributed on an "AS IS" basis,
+ - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ - for the specific language governing rights and limitations under the
+ - License.
+ -
+ - The Original Code is Trustedbird/DSN Settings code.
+ -
+ - The Initial Developer of the Original Code is
+ - BT Global Services / Etat francais Ministere de la Defense.
+ - Portions created by the Initial Developer are Copyright (C) 2010
+ - the Initial Developer. All Rights Reserved.
+ -
+ - Contributor(s):
+ - Raphael Fairise / BT Global Services / Etat francais Ministere de la Defense
+ -
+ - Alternatively, the contents of this file may be used under the terms of
+ - either the GNU General Public License Version 2 or later (the "GPL"), or
+ - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ - in which case the provisions of the GPL or the LGPL are applicable instead
+ - of those above. If you wish to allow use of your version of this file only
+ - under the terms of either the GPL or the LGPL, and not to allow others to
+ - use your version of this file under the terms of the MPL, indicate your
+ - decision by deleting the provisions above and replace them with the notice
+ - and other provisions required by the LGPL or the GPL. If you do not delete
+ - the provisions above, a recipient may use your version of this file under
+ - the terms of any one of the MPL, the GPL or the LGPL.
+ -
+ - ***** END LICENSE BLOCK ***** -->
+<!DOCTYPE overlay SYSTEM "chrome://dsn-settings/locale/advanced-dsn.dtd">
+<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
+<prefwindow id="dsnPrefwindow" title="&dsn-settings.windowTitle;" dlgbuttons="accept,cancel" type="child" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+ <prefpane id="dsnPrefpane">
+
+ <preferences id="dsnPreferences">
+ <preference id="mail.dsn.request_never_on" name="mail.dsn.request_never_on" type="bool" />
+ <preference id="mail.dsn.request_on_success_on" name="mail.dsn.request_on_success_on" type="bool" />
+ <preference id="mail.dsn.request_on_failure_on" name="mail.dsn.request_on_failure_on" type="bool" />
+ <preference id="mail.dsn.request_on_delay_on" name="mail.dsn.request_on_delay_on" type="bool" />
+ <preference id="mail.dsn.ret_full_on" name="mail.dsn.ret_full_on" type="bool" />
+ </preferences>
+
+ <vbox>
+ <label value="&dsn-settings.requestTypeLabel;" />
+ <radiogroup id="dsnRequestNever" preference="mail.dsn.request_never_on" class="indent">
+ <radio id="dsnRequestNeverFalse" label="&dsn-settings.requestChoice;" value="false" />
+ <vbox class="indent">
+ <checkbox id="dsnRequestSuccess" label="&dsn-settings.requestSuccess;" preference="mail.dsn.request_on_success_on" />
+ <checkbox id="dsnRequestFailure" label="&dsn-settings.requestFailure;" preference="mail.dsn.request_on_failure_on" />
+ <checkbox id="dsnRequestDelayed" label="&dsn-settings.requestDelayed;" preference="mail.dsn.request_on_delay_on" />
+ </vbox>
+ <radio id="dsnRequestNeverTrue" label="&dsn-settings.requestNever;" value="true" />
+ </radiogroup>
+
+ <separator />
+
+ <label id="dsnNote" width="1">&dsn-settings.note;</label>
+
+ <separator class="thin"/>
+ <separator class="groove"/>
+ <separator class="thin"/>
+
+ <hbox align="center">
+ <label width="1" flex="1">&dsn-settings.attachLabel;</label>
+ <menulist id="dsnRetFullMenulist" preference="mail.dsn.ret_full_on">
+ <menupopup>
+ <menuitem label="&dsn-settings.attachFullOnlyHeaders;" value="false" />
+ <menuitem label="&dsn-settings.attachFullMessage;" value="true" />
+ </menupopup>
+ </menulist>
+ </hbox>
+ </vbox>
+
+ <separator />
+
+ </prefpane>
+
+</prefwindow>
--- /dev/null
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Trustedbird/DSN Settings code.
+ *
+ * The Initial Developer of the Original Code is
+ * BT Global Services / Etat francais Ministere de la Defense.
+ * Portions created by the Initial Developer are Copyright (C) 2010
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ * Raphael Fairise / BT Global Services / Etat francais Ministere de la Defense
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+document.getElementById("paneAdvanced").addEventListener("paneload", dsnSettingsDisplayUI, true);
+
+/**
+ * Create and display user interface for Delivery Status Notifications
+ */
+function dsnSettingsDisplayUI() {
+ /* Get tab panel */
+ var tabpanel;
+ try {
+ tabpanel = document.getElementById("systemDefaultsGroup").parentNode;
+ } catch (e) {
+ var errorMessage = "Can't find tabpanel in order to add DSN settings!";
+ Components.utils.reportError(errorMessage);
+ dump(errorMessage + "\n");
+ return;
+ }
+
+ /* Create string bundle */
+ var stringBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService);
+ var stringBundle = stringBundleService.createBundle("chrome://dsn-settings/locale/dsn-settings.properties");
+
+ /* Create preference */
+ var preference = document.createElement("preference");
+ preference.setAttribute("id", "mail.dsn.always_request_on");
+ preference.setAttribute("name", "mail.dsn.always_request_on");
+ preference.setAttribute("type", "bool");
+ document.getElementById("advancedPreferences").appendChild(preference);
+
+ /* Create user interface */
+ var groupbox = document.createElement("groupbox");
+ groupbox.setAttribute("id", "dsnGroupbox");
+ var caption = document.createElement("caption");
+ caption.setAttribute("label", stringBundle.GetStringFromName("dsn-settings.caption"));
+ groupbox.appendChild(caption);
+ var hbox = document.createElement("hbox");
+ hbox.setAttribute("flex", "1");
+ hbox.setAttribute("align", "center");
+
+ var checkbox = document.createElement("checkbox");
+ checkbox.setAttribute("id", "dsnAlwaysRequestCheckbox");
+ checkbox.setAttribute("label", stringBundle.GetStringFromName("dsn-settings.alwaysRequestDSNCheckbox"));
+ checkbox.setAttribute("flex", "1");
+ checkbox.setAttribute("preference", "mail.dsn.always_request_on");
+ checkbox.setAttribute("checked", dsnSettingsGetBoolPref("mail.dsn.always_request_on"));
+ hbox.appendChild(checkbox);
+
+ var button = document.createElement("button");
+ button.setAttribute("id", "dsnAdvancedSettingsButton");
+ button.setAttribute("label", stringBundle.GetStringFromName("dsn-settings.advancedSettings"));
+ button.setAttribute("accesskey", stringBundle.GetStringFromName("dsn-settings.advancedSettings.accessKey"));
+ button.setAttribute("oncommand", 'document.documentElement.openSubDialog("chrome://dsn-settings/content/advanced-dsn.xul", "", null);');
+ hbox.appendChild(button);
+
+ groupbox.appendChild(hbox);
+ tabpanel.insertBefore(groupbox, document.getElementById("systemDefaultsGroup"));
+}
+
+/**
+ * Read a boolean preference
+ * @param {string} preference Preference name
+ * @return {bool} Preference value
+ */
+function dsnSettingsGetBoolPref(preference) {
+ var prefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch(null);
+
+ var result = false;
+ try {
+ result = prefBranch.getBoolPref(preference);
+ } catch (e) {}
+
+ return result;
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ***** BEGIN LICENSE BLOCK *****
+ - Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ -
+ - The contents of this file are subject to the Mozilla Public License Version
+ - 1.1 (the "License"); you may not use this file except in compliance with
+ - the License. You may obtain a copy of the License at
+ - http://www.mozilla.org/MPL/
+ -
+ - Software distributed under the License is distributed on an "AS IS" basis,
+ - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ - for the specific language governing rights and limitations under the
+ - License.
+ -
+ - The Original Code is Trustedbird/DSN Settings code.
+ -
+ - The Initial Developer of the Original Code is
+ - BT Global Services / Etat francais Ministere de la Defense.
+ - Portions created by the Initial Developer are Copyright (C) 2010
+ - the Initial Developer. All Rights Reserved.
+ -
+ - Contributor(s):
+ - Raphael Fairise / BT Global Services / Etat francais Ministere de la Defense
+ -
+ - Alternatively, the contents of this file may be used under the terms of
+ - either the GNU General Public License Version 2 or later (the "GPL"), or
+ - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ - in which case the provisions of the GPL or the LGPL are applicable instead
+ - of those above. If you wish to allow use of your version of this file only
+ - under the terms of either the GPL or the LGPL, and not to allow others to
+ - use your version of this file under the terms of the MPL, indicate your
+ - decision by deleting the provisions above and replace them with the notice
+ - and other provisions required by the LGPL or the GPL. If you do not delete
+ - the provisions above, a recipient may use your version of this file under
+ - the terms of any one of the MPL, the GPL or the LGPL.
+ -
+ - ***** END LICENSE BLOCK ***** -->
+<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+ <script type="application/javascript" src="chrome://dsn-settings/content/advanced.js" />
+
+</overlay>
--- /dev/null
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Trustedbird/DSN Settings code.
+ *
+ * The Initial Developer of the Original Code is
+ * BT Global Services / Etat francais Ministere de la Defense.
+ * Portions created by the Initial Developer are Copyright (C) 2010
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ * Raphael Fairise / BT Global Services / Etat francais Ministere de la Defense
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+var useCustomPrefs;
+var requestAlways;
+var gIdentity;
+
+function onLoad()
+{
+ parent.onPanelLoaded("am-dsn.xul");
+}
+
+function onInit()
+{
+ useCustomPrefs = document.getElementById("identity.dsn_use_custom_prefs");
+ requestAlways = document.getElementById("identity.dsn_always_request_on");
+
+ EnableDisableCustomSettings();
+
+ return true;
+}
+
+function onSave()
+{
+}
+
+function EnableDisableCustomSettings() {
+ if (useCustomPrefs && (useCustomPrefs.getAttribute("value") == "false"))
+ requestAlways.setAttribute("disabled", "true");
+ else
+ requestAlways.removeAttribute("disabled");
+
+ return true;
+}
+
+function onPreInit(account, accountValues)
+{
+ gIdentity = account.defaultIdentity;
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ***** BEGIN LICENSE BLOCK *****
+ - Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ -
+ - The contents of this file are subject to the Mozilla Public License Version
+ - 1.1 (the "License"); you may not use this file except in compliance with
+ - the License. You may obtain a copy of the License at
+ - http://www.mozilla.org/MPL/
+ -
+ - Software distributed under the License is distributed on an "AS IS" basis,
+ - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ - for the specific language governing rights and limitations under the
+ - License.
+ -
+ - The Original Code is Trustedbird/DSN Settings code.
+ -
+ - The Initial Developer of the Original Code is
+ - BT Global Services / Etat francais Ministere de la Defense.
+ - Portions created by the Initial Developer are Copyright (C) 2010
+ - the Initial Developer. All Rights Reserved.
+ -
+ - Contributor(s):
+ - Raphael Fairise / BT Global Services / Etat francais Ministere de la Defense
+ -
+ - Alternatively, the contents of this file may be used under the terms of
+ - either the GNU General Public License Version 2 or later (the "GPL"), or
+ - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ - in which case the provisions of the GPL or the LGPL are applicable instead
+ - of those above. If you wish to allow use of your version of this file only
+ - under the terms of either the GPL or the LGPL, and not to allow others to
+ - use your version of this file under the terms of the MPL, indicate your
+ - decision by deleting the provisions above and replace them with the notice
+ - and other provisions required by the LGPL or the GPL. If you do not delete
+ - the provisions above, a recipient may use your version of this file under
+ - the terms of any one of the MPL, the GPL or the LGPL.
+ -
+ - ***** END LICENSE BLOCK ***** -->
+<!DOCTYPE page SYSTEM "chrome://dsn-settings/locale/am-dsn.dtd">
+<?xml-stylesheet href="chrome://messenger/skin/accountManage.css" type="text/css"?>
+<?xul-overlay href="chrome://dsn-settings/content/am-dsnOverlay.xul"?>
+<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="onLoad();" title="&pane.title;">
+
+ <dialogheader title="&pane.title;"/>
+
+ <vbox id="dsnSettings"/>
+
+</page>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ***** BEGIN LICENSE BLOCK *****
+ - Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ -
+ - The contents of this file are subject to the Mozilla Public License Version
+ - 1.1 (the "License"); you may not use this file except in compliance with
+ - the License. You may obtain a copy of the License at
+ - http://www.mozilla.org/MPL/
+ -
+ - Software distributed under the License is distributed on an "AS IS" basis,
+ - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ - for the specific language governing rights and limitations under the
+ - License.
+ -
+ - The Original Code is Trustedbird/DSN Settings code.
+ -
+ - The Initial Developer of the Original Code is
+ - BT Global Services / Etat francais Ministere de la Defense.
+ - Portions created by the Initial Developer are Copyright (C) 2010
+ - the Initial Developer. All Rights Reserved.
+ -
+ - Contributor(s):
+ - Raphael Fairise / BT Global Services / Etat francais Ministere de la Defense
+ -
+ - Alternatively, the contents of this file may be used under the terms of
+ - either the GNU General Public License Version 2 or later (the "GPL"), or
+ - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ - in which case the provisions of the GPL or the LGPL are applicable instead
+ - of those above. If you wish to allow use of your version of this file only
+ - under the terms of either the GPL or the LGPL, and not to allow others to
+ - use your version of this file under the terms of the MPL, indicate your
+ - decision by deleting the provisions above and replace them with the notice
+ - and other provisions required by the LGPL or the GPL. If you do not delete
+ - the provisions above, a recipient may use your version of this file under
+ - the terms of any one of the MPL, the GPL or the LGPL.
+ -
+ - ***** END LICENSE BLOCK ***** -->
+<!DOCTYPE overlay SYSTEM "chrome://dsn-settings/locale/am-dsn.dtd">
+<?xml-stylesheet href="chrome://messenger/skin/accountManage.css" type="text/css"?>
+<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+ <vbox id="dsnSettings">
+ <script type="application/x-javascript" src="chrome://messenger/content/AccountManager.js"/>
+ <script type="application/x-javascript" src="chrome://dsn-settings/content/am-dsn.js"/>
+
+ <groupbox>
+
+ <hbox id="prefChoices" align="center">
+ <radiogroup id="identity.dsn_use_custom_prefs"
+ wsm_persist="true"
+ genericattr="true"
+ preftype="bool"
+ prefstring="mail.identity.%identitykey%.dsn_use_custom_prefs"
+ oncommand="EnableDisableCustomSettings();">
+
+ <radio id="identity.select_global_prefs"
+ value="false"
+ label="&useGlobalPrefs.label;"
+ accesskey="&useGlobalPrefs.accesskey;"/>
+
+ <radio id="identity.select_custom_prefs"
+ value="true"
+ label="&useCustomPrefs.label;"
+ accesskey="&useCustomPrefs.accesskey;"/>
+ </radiogroup>
+ </hbox>
+
+ <vbox id="dsnSettings" class="indent" align="start">
+ <checkbox id="identity.dsn_always_request_on"
+ label="&requestAlways.label;"
+ accesskey="&requestAlways.accesskey;"
+ wsm_persist="true"
+ genericattr="true"
+ iscontrolcontainer="true"
+ preftype="bool"
+ prefstring="mail.identity.%identitykey%.dsn_always_request_on"/>
+ </vbox>
+
+ </groupbox>
+ </vbox>
+
+</overlay>
--- /dev/null
+<!ENTITY dsn-settings.windowTitle "Delivery Status Notifications">
+<!ENTITY dsn-settings.requestTypeLabel "When I send a message with a delivery status notification request:">
+<!ENTITY dsn-settings.requestChoice "Ask to be notified when:">
+<!ENTITY dsn-settings.requestSuccess "delivery is successful">
+<!ENTITY dsn-settings.requestFailure "delivery failed">
+<!ENTITY dsn-settings.requestDelayed "delivery is delayed">
+<!ENTITY dsn-settings.requestNever "Ask to never receive any notification">
+<!ENTITY dsn-settings.note "Note: if you don't explicitly request not to receive any notification, you may still receive some if the delivery failed.">
+<!ENTITY dsn-settings.attachLabel "Ask servers to join to delivery failure notifications:">
+<!ENTITY dsn-settings.attachFullOnlyHeaders "only message headers">
+<!ENTITY dsn-settings.attachFullMessage "full message">
--- /dev/null
+<!ENTITY pane.title "Delivery Status Notifications (DSN)">
+<!ENTITY useGlobalPrefs.label "Use my global delivery status notification settings for this identity">
+<!ENTITY useGlobalPrefs.accesskey "U">
+<!ENTITY useCustomPrefs.label "Customize delivery status notification settings for this identity">
+<!ENTITY useCustomPrefs.accesskey "C">
+<!ENTITY requestAlways.label "When sending messages, always request a delivery status notification from the server">
+<!ENTITY requestAlways.accesskey "W">
--- /dev/null
+prefPanel-dsn=Delivery Status Notifications
--- /dev/null
+dsn-settings.caption = Delivery Status Notifications (DSN)
+dsn-settings.alwaysRequestDSNCheckbox = When sending messages, always request a delivery status notification from the server
+dsn-settings.advancedSettings = Advanced Settings...
+dsn-settings.advancedSettings.accessKey = S
--- /dev/null
+<!ENTITY dsn-settings.windowTitle "Avis de remise">
+<!ENTITY dsn-settings.requestTypeLabel "Lors de l'envoi d'un message avec demande d'avis de remise :">
+<!ENTITY dsn-settings.requestChoice "Demander à être notifié quand :">
+<!ENTITY dsn-settings.requestSuccess "la remise a réussi">
+<!ENTITY dsn-settings.requestFailure "la remise a échoué">
+<!ENTITY dsn-settings.requestDelayed "la remise est retardée">
+<!ENTITY dsn-settings.requestNever "Demander à ne jamais recevoir d'avis de remise">
+<!ENTITY dsn-settings.note "Note : si vous ne demandez pas explicitement à ne pas recevoir d'avis de remise, il est quand même possible que vous en receviez si la remise échoue.">
+<!ENTITY dsn-settings.attachLabel "Demander aux serveurs de joindre aux avis de remise :">
+<!ENTITY dsn-settings.attachFullOnlyHeaders "seulement les en-têtes du message">
+<!ENTITY dsn-settings.attachFullMessage "le message complet">
--- /dev/null
+<!ENTITY pane.title "Avis de remise (DSN)">
+<!ENTITY useGlobalPrefs.label "Utiliser mes préférences globales d'avis de remise pour cette identité">
+<!ENTITY useGlobalPrefs.accesskey "U">
+<!ENTITY useCustomPrefs.label "Personnaliser les paramètres d'avis de remise pour cette identité">
+<!ENTITY useCustomPrefs.accesskey "P">
+<!ENTITY requestAlways.label "Lors de l'envoi d'un message, toujours demander un avis de remise au serveur">
+<!ENTITY requestAlways.accesskey "L">
--- /dev/null
+prefPanel-dsn=Avis de remise (DSN)
--- /dev/null
+dsn-settings.caption = Avis de remise (DSN)
+dsn-settings.alwaysRequestDSNCheckbox = Lors de l'envoi d'un message, toujours demander un avis de remise au serveur
+dsn-settings.advancedSettings = Paramètres avancés...
+dsn-settings.advancedSettings.accessKey = P
--- /dev/null
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Trustedbird/DSN Settings code.
+ *
+ * The Initial Developer of the Original Code is
+ * BT Global Services / Etat francais Ministere de la Defense.
+ * Portions created by the Initial Developer are Copyright (C) 2010
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ * Raphael Fairise / BT Global Services / Etat francais Ministere de la Defense
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
+
+function DSNService() {}
+
+DSNService.prototype = {
+ name: "dsn",
+ chromePackageName: "dsn-settings",
+ showPanel: function(server) {
+ // don't show the panel for news, rss, or local accounts
+ return (server.type != "nntp" && server.type != "rss" &&
+ server.type != "none");
+ },
+
+ QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsIMsgAccountManagerExtension]),
+ classDescription: "DSN Account Manager Extension Service",
+ classID: Components.ID("{d117d42e-1d31-1d92-961e-2396256b8566}"),
+ contractID: "@mozilla.org/accountmanager/extension;1?name=dsn",
+
+ _xpcom_categories: [{category: "mailnews-accountmanager-extensions",
+ entry: "dsn account manager extension"}]
+};
+
+function NSGetModule(compMgr, fileSpec) {
+ return XPCOMUtils.generateModule([DSNService]);
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ***** BEGIN LICENSE BLOCK *****
+ - Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ -
+ - The contents of this file are subject to the Mozilla Public License Version
+ - 1.1 (the "License"); you may not use this file except in compliance with
+ - the License. You may obtain a copy of the License at
+ - http://www.mozilla.org/MPL/
+ -
+ - Software distributed under the License is distributed on an "AS IS" basis,
+ - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ - for the specific language governing rights and limitations under the
+ - License.
+ -
+ - The Original Code is Trustedbird/DSN Settings code.
+ -
+ - The Initial Developer of the Original Code is
+ - BT Global Services / Etat francais Ministere de la Defense.
+ - Portions created by the Initial Developer are Copyright (C) 2010
+ - the Initial Developer. All Rights Reserved.
+ -
+ - Contributor(s):
+ - Raphael Fairise / BT Global Services / Etat francais Ministere de la Defense
+ -
+ - Alternatively, the contents of this file may be used under the terms of
+ - either the GNU General Public License Version 2 or later (the "GPL"), or
+ - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ - in which case the provisions of the GPL or the LGPL are applicable instead
+ - of those above. If you wish to allow use of your version of this file only
+ - under the terms of either the GPL or the LGPL, and not to allow others to
+ - use your version of this file under the terms of the MPL, indicate your
+ - decision by deleting the provisions above and replace them with the notice
+ - and other provisions required by the LGPL or the GPL. If you do not delete
+ - the provisions above, a recipient may use your version of this file under
+ - the terms of any one of the MPL, the GPL or the LGPL.
+ -
+ - ***** END LICENSE BLOCK ***** -->
+
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
+ <rdf:Description about="urn:mozilla:install-manifest">
+
+ <em:id>dsn-settings@trustedbird.org</em:id>
+ <em:name>DSN Settings</em:name>
+ <em:version>__VERSION__</em:version>
+ <em:creator>Trustedbird/Milimail project</em:creator>
+
+ <em:developer>Raphael Fairise</em:developer>
+
+ <em:homepageURL>http://www.trustedbird.org/</em:homepageURL>
+
+ <em:updateURL>__UPDATE_RDF_URL__</em:updateURL>
+ <em:updateKey>__UPDATE_KEY__</em:updateKey>
+
+ <em:targetApplication>
+ <rdf:Description>
+ <!-- Thunderbird -->
+ <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
+ <em:minVersion>3.0</em:minVersion>
+ <em:maxVersion>3.0.*</em:maxVersion>
+ </rdf:Description>
+ </em:targetApplication>
+
+ <em:description>Adds user interface settings for Delivery Status Notification (DSN) requests.</em:description>
+
+ </rdf:Description>
+</rdf:RDF>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ***** BEGIN LICENSE BLOCK *****
+ - Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ -
+ - The contents of this file are subject to the Mozilla Public License Version
+ - 1.1 (the "License"); you may not use this file except in compliance with
+ - the License. You may obtain a copy of the License at
+ - http://www.mozilla.org/MPL/
+ -
+ - Software distributed under the License is distributed on an "AS IS" basis,
+ - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ - for the specific language governing rights and limitations under the
+ - License.
+ -
+ - The Original Code is Trustedbird/DSN Settings code.
+ -
+ - The Initial Developer of the Original Code is
+ - BT Global Services / Etat francais Ministere de la Defense.
+ - Portions created by the Initial Developer are Copyright (C) 2010
+ - the Initial Developer. All Rights Reserved.
+ -
+ - Contributor(s):
+ - Raphael Fairise / BT Global Services / Etat francais Ministere de la Defense
+ -
+ - Alternatively, the contents of this file may be used under the terms of
+ - either the GNU General Public License Version 2 or later (the "GPL"), or
+ - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ - in which case the provisions of the GPL or the LGPL are applicable instead
+ - of those above. If you wish to allow use of your version of this file only
+ - under the terms of either the GPL or the LGPL, and not to allow others to
+ - use your version of this file under the terms of the MPL, indicate your
+ - decision by deleting the provisions above and replace them with the notice
+ - and other provisions required by the LGPL or the GPL. If you do not delete
+ - the provisions above, a recipient may use your version of this file under
+ - the terms of any one of the MPL, the GPL or the LGPL.
+ -
+ - ***** END LICENSE BLOCK ***** -->
+
+<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
+ <em:creator>Trustedbird/Milimail project</em:creator>
+ <rdf:Description rdf:about="urn:mozilla:extension:dsn-settings@trustedbird.org">
+ <em:updates>
+ <rdf:Seq>
+ <rdf:li>
+ <rdf:Description>
+ <em:version>__VERSION__</em:version>
+ <em:targetApplication>
+ <rdf:Description>
+ <!-- Thunderbird -->
+ <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
+ <em:minVersion>3.0</em:minVersion>
+ <em:maxVersion>3.0.*</em:maxVersion>
+ <em:updateLink>__XPI_URL__</em:updateLink>
+ <em:updateHash>__UPDATE_HASH__</em:updateHash>
+ </rdf:Description>
+ </em:targetApplication>
+ </rdf:Description>
+ </rdf:li>
+ </rdf:Seq>
+ </em:updates>
+ </rdf:Description>
+</rdf:RDF>
# List of add-ons to build with the 'package-addons' target (add the special packages "all-addons-trustedbird", "all-addons-tb2" and "all-addons-tb3" at the end in order to build the meta-packages)
-addon.list = card-viewer-extended,check-recipients,crl-over-ldap,mailXFormsEngine,mailXFormsData-template,mailXFormsData-sample,mdn-extended,multi-ldap,notification-viewer,out-of-office,send-format-ldap,trustedbird-l10n-fr,ximfmail,ximfmail-company,xsmtp,all-addons-trustedbird,all-addons-tb2,all-addons-tb3
+addon.list = card-viewer-extended,check-recipients,crl-over-ldap,dsn-settings,mailXFormsEngine,mailXFormsData-template,mailXFormsData-sample,mdn-extended,multi-ldap,notification-viewer,out-of-office,send-format-ldap,trustedbird-l10n-fr,ximfmail,ximfmail-company,xsmtp,all-addons-trustedbird,all-addons-tb2,all-addons-tb3
#addon.list = directoryContactTabsEngine,directoryContactTabsData-template,directoryContactTabsData-sample
addon.directoryContactTabsEngine.path = directoryContactTabsEngine
addon.directoryContactTabsData-template.path = directoryContactTabsData-template
addon.directoryContactTabsData-sample.path = directoryContactTabsData-sample
+addon.dsn-settings.path = dsn-settings
addon.mailXFormsEngine.path = mailXFormsEngine
addon.mailXFormsData-template.path = mailXFormsData-template
addon.mailXFormsData-sample.path = mailXFormsData-sample