PK dEM2_W = = install.rdf
{26af1522-982e-c0c4-f54a-7e69fb6432f5}
0.3.2
{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
0.8
1.0+
Get jetable mail
chrome://getjetablemail/content/about.xul
Get a jetable.org mail via context menu
Nicolas Moreau
http://stricto-sensu.net/projets/extensions/getjetablemail
chrome://getjetablemail/content/prefs.xul
chrome://getjetablemail/skin/img/icon.png
http://jetablemail.mozdev.org/update.rdf
content/
skin/classic/
locale/en-US/
locale/fr-FR/
locale/nl-NL/
locale/pt/
PK 1
install.jsconst X_MSG = "Install Get Jetable Mail extension";
const X_NAME = "Get Jetable Mail";
const X_AUTHOR = "Nicolas Moreau";
const X_VER = "0.3.2";
const X_TOPDIR = "getjetablemail";
const X_CONTENT = "content/";
const X_SKIN = "skin/classic/";
const X_LOCALE_EN = "locale/en-US/";
const X_LOCALE_FR = "locale/fr-FR/";
const X_LOCALE_NL = "locale/nl-NL/";
const X_LOCALE_PT = "locale/pt/";
const X_CHROME = "chrome";
var jarName = "getjetablemail.jar";
var folder = getFolder("Current User", "chrome");
var contentFlag = CONTENT | PROFILE_CHROME;
var existsInApplication = File.exists(getFolder(getFolder("Chrome"), X_TOPDIR));
var existsInProfile = File.exists(getFolder(folder, X_TOPDIR));
var srDest = 1;
var err = initInstall(X_MSG, X_NAME, X_VER);
logComment("initInstall: " + err);
logComment( "Installation started ..." );
// add software to the installation
setPackageFolder(folder);
if (verifyDiskSpace(getFolder("Program"), srDest))
{
err = addFile(X_AUTHOR, X_VER, 'chrome/' + jarName, folder, null);
logComment("addFile to " + folder + " : " + err);
registerChrome(CONTENT | PROFILE_CHROME, getFolder(folder, jarName), X_CONTENT);
registerChrome(SKIN | PROFILE_CHROME, getFolder(folder, jarName), X_SKIN);
registerChrome(LOCALE | PROFILE_CHROME, getFolder(folder, jarName), X_LOCALE_EN);
registerChrome(LOCALE | PROFILE_CHROME, getFolder(folder, jarName), X_LOCALE_FR);
registerChrome(LOCALE | PROFILE_CHROME, getFolder(folder, jarName), X_LOCALE_NL);
registerChrome(LOCALE | PROFILE_CHROME, getFolder(folder, jarName), X_LOCALE_PT);
err = getLastError();
if ( err == SUCCESS ) { // if there have been no errors:
performInstall(); // install moji/ directory
// alert("Please restart to activate the program");
}
else { // otherwise
cancelInstall(); // cancel the installation.
}
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);
// this function verifies disk space in kilobytes
function verifyDiskSpace(dirPath, spaceRequired)
{
var spaceAvailable;
// Get the available disk space on the given path
spaceAvailable = fileGetDiskSpaceAvailable(dirPath);
// Convert the available disk space into kilobytes
spaceAvailable = parseInt(spaceAvailable / 1024);
// do the verification
if(spaceAvailable < spaceRequired)
{
logComment("Insufficient disk space: " + dirPath);
logComment(" required : " + spaceRequired + " K");
logComment(" available: " + spaceAvailable + " K");
return(false);
}
return(true);
}
PK 0?j4fl l license***** 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 Jetable mail extension
The Initial Developer of the Original Code is Nicolas Moreau
Portions created by the Initial Developer are Copyright (C) 2004
the Initial Developer. All Rights Reserved.
Contributor(s):
Original Author: Nicolas Moreau (nmoreau@stricto-sensu.net)
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 *****
PK xFM2 chrome/getjetablemail.jarPK l0Q locale/en-US/contents.rdf
PK !A
1S locale/en-US/getjetablemail.dtd
PK Q8
1n~: : &