Hello community, here is the log from the commit of package enigmail for openSUSE:Factory checked in at 2016-06-09 16:15:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/enigmail (Old) and /work/SRC/openSUSE:Factory/.enigmail.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "enigmail" Changes: -------- --- /work/SRC/openSUSE:Factory/enigmail/enigmail.changes 2016-05-04 08:20:21.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.enigmail.new/enigmail.changes 2016-06-09 16:17:45.000000000 +0200 @@ -1,0 +2,10 @@ +Wed Jun 8 21:12:19 UTC 2016 - [email protected] + +- enigmail 1.9.3: + * Fix Decrypt loop with S/MIME self-signed mails + * Fix Manage UIDs throws errors if called from key properties dialog + * Fix No error message if configured key not found on keyring + * Fix Enigmail munges display of messages with S/MIME signature + * Allow importing of expired keys + +------------------------------------------------------------------- Old: ---- enigmail-1.9.2.tar.gz enigmail-1.9.2.tar.gz.asc New: ---- enigmail-1.9.3.tar.gz enigmail-1.9.3.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ enigmail.spec ++++++ --- /var/tmp/diff_new_pack.KTdi3i/_old 2016-06-09 16:17:47.000000000 +0200 +++ /var/tmp/diff_new_pack.KTdi3i/_new 2016-06-09 16:17:47.000000000 +0200 @@ -18,7 +18,7 @@ Name: enigmail -Version: 1.9.2 +Version: 1.9.3 Release: 0 Summary: OpenPGP addon for Thunderbird and SeaMonkey License: MPL-1.1 or GPL-2.0+ ++++++ enigmail-1.9.2.tar.gz -> enigmail-1.9.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/Makefile new/enigmail/Makefile --- old/enigmail/Makefile 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/Makefile 2016-06-03 16:13:30.000000000 +0200 @@ -3,7 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. XPI_MODULE = enigmail -XPI_MODULE_VERS = 1.9.2 +XPI_MODULE_VERS = 1.9.3 DEPTH = . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/configure new/enigmail/configure --- old/enigmail/configure 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/configure 2016-06-03 16:13:30.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for enigmail 1.9.2. +# Generated by GNU Autoconf 2.69 for enigmail 1.9.3. # # Report bugs to <https://www.enigmail.net>. # @@ -579,8 +579,8 @@ # Identity of this package. PACKAGE_NAME='enigmail' PACKAGE_TARNAME='enigmail' -PACKAGE_VERSION='1.9.2' -PACKAGE_STRING='enigmail 1.9.2' +PACKAGE_VERSION='1.9.3' +PACKAGE_STRING='enigmail 1.9.3' PACKAGE_BUGREPORT='https://www.enigmail.net' PACKAGE_URL='' @@ -1195,7 +1195,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures enigmail 1.9.2 to adapt to many kinds of systems. +\`configure' configures enigmail 1.9.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1261,7 +1261,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of enigmail 1.9.2:";; + short | recursive ) echo "Configuration of enigmail 1.9.3:";; esac cat <<\_ACEOF @@ -1343,7 +1343,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -enigmail configure 1.9.2 +enigmail configure 1.9.3 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1360,7 +1360,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by enigmail $as_me 1.9.2, which was +It was created by enigmail $as_me 1.9.3, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2595,7 +2595,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by enigmail $as_me 1.9.2, which was +This file was extended by enigmail $as_me 1.9.3, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -2648,7 +2648,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -enigmail config.status 1.9.2 +enigmail config.status 1.9.3 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/configure.ac new/enigmail/configure.ac --- old/enigmail/configure.ac 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/configure.ac 2016-06-03 16:13:30.000000000 +0200 @@ -2,7 +2,7 @@ AC_PREREQ(2.61) min_automake_version="1.10" -AC_INIT([enigmail],[1.9.2], [https://www.enigmail.net]) +AC_INIT([enigmail],[1.9.3], [https://www.enigmail.net]) AC_PATH_PROG(PYTHON, "python2") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/package/encryption.jsm new/enigmail/package/encryption.jsm --- old/enigmail/package/encryption.jsm 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/package/encryption.jsm 2016-06-03 16:13:30.000000000 +0200 @@ -207,7 +207,7 @@ if (encrypt) { keyList = keyList.reduce(function _f(p, keyObj) { - if (keyObj.getEncryptionValidity().keyValid) p.push(keyObj); + if (keyObj && keyObj.getEncryptionValidity().keyValid) p.push(keyObj); return p; }, []); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/package/gpg.jsm new/enigmail/package/gpg.jsm --- old/enigmail/package/gpg.jsm 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/package/gpg.jsm 2016-06-03 16:13:30.000000000 +0200 @@ -64,6 +64,7 @@ autostart-gpg-agent - is gpg-agent started automatically by gpg (true for gpg >= 2.0.16) keygen-passphrase - can the passphrase be specified when generating keys (false for gpg 2.1 and 2.1.1) windows-photoid-bug - is there a bug in gpg with the output of photoid on Windows (true for gpg < 2.0.16) + genkey-no-protection - is "%no-protection" supported for generting keys (true for gpg >= 2.1) @return: depending on featureName - Boolean unless specified differently: (true if feature is available / false otherwise) @@ -93,6 +94,8 @@ return vc.compare(gpgVersion, "2.0.16") >= 0; case 'keygen-passphrase': return vc.compare(gpgVersion, "2.1") < 0 || vc.compare(gpgVersion, "2.1.2") >= 0; + case 'genkey-no-protection': + return vc.compare(gpgVersion, "2.1") > 0; case 'windows-photoid-bug': return vc.compare(gpgVersion, "2.0.16") < 0; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/package/install.rdf new/enigmail/package/install.rdf --- old/enigmail/package/install.rdf 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/package/install.rdf 2016-06-03 16:13:30.000000000 +0200 @@ -5,7 +5,7 @@ <Description about="urn:mozilla:install-manifest"> <em:id>{847b3a00-7ab1-11d4-8f02-006008948af5}</em:id> - <em:version>1.9.2</em:version> + <em:version>1.9.3</em:version> <em:type>2</em:type> <!-- type = extension --> <em:unpack>true</em:unpack> @@ -16,7 +16,7 @@ <Description> <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id> <em:minVersion>38.0</em:minVersion> - <em:maxVersion>46.0</em:maxVersion> + <em:maxVersion>50.0</em:maxVersion> </Description> </em:targetApplication> <em:targetApplication> @@ -24,7 +24,7 @@ <Description> <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id> <em:minVersion>2.35</em:minVersion> - <em:maxVersion>2.43</em:maxVersion> + <em:maxVersion>2.47</em:maxVersion> </Description> </em:targetApplication> <!-- em:targetApplication> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/package/key.jsm new/enigmail/package/key.jsm --- old/enigmail/package/key.jsm 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/package/key.jsm 2016-06-03 16:13:30.000000000 +0200 @@ -263,6 +263,7 @@ var lines = statusMsg.split("\n"); var idx = 0; var cur = {}; + var keyexpired; while (state != "end") { if (idx >= lines.length) { @@ -270,6 +271,15 @@ return []; } + // Ignore all lines starting with "KEYEXPIRED" + keyexpired = lines[idx].match(/^KEYEXPIRED/); + + while (keyexpired && (keyexpired.length > 0) && (idx < (lines.length - 1))) { + EnigmailLog.DEBUG("Ignoring KEYEXPIRED line: '" + lines[idx] + "'\n"); + idx += 1; + keyexpired = lines[idx].match(/^KEYEXPIRED/); + } + EnigmailLog.DEBUG("state: '" + state + "', line: '" + lines[idx] + "'\n"); switch (state) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/package/keyRing.jsm new/enigmail/package/keyRing.jsm --- old/enigmail/package/keyRing.jsm 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/package/keyRing.jsm 2016-06-03 16:13:30.000000000 +0200 @@ -769,6 +769,11 @@ if (passphrase.length) { inputData += "Passphrase: " + passphrase + "\n"; } + else { + if (EnigmailGpg.getGpgFeature("genkey-no-protection")) { + inputData += "%no-protection\n"; + } + } inputData += "%commit\n%echo done\n"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/package/pgpmimeHandler.js new/enigmail/package/pgpmimeHandler.js --- old/enigmail/package/pgpmimeHandler.js 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/package/pgpmimeHandler.js 2016-06-03 16:13:30.000000000 +0200 @@ -141,7 +141,7 @@ // PGP/MIME signed message cth = EnigmailVerify.newVerifier(); } - else if (ct.search(/application\/pkcs7-signature/i) > 0) { + else if (ct.search(/application\/(x-)?pkcs7-signature/i) > 0) { // S/MIME signed message if (EnigmailVerify.lastMsgWindow) { // if message is displayed then handle like S/MIME message diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/package/windows.jsm new/enigmail/package/windows.jsm --- old/enigmail/package/windows.jsm 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/package/windows.jsm 2016-06-03 16:13:30.000000000 +0200 @@ -191,6 +191,35 @@ }, /** + * If the Key Manager is open, dispatch an event to tell the key + * manager to refresh the displayed keys + */ + + keyManReloadKeys: function() { + let windowManager = Cc[APPSHELL_MEDIATOR_CONTRACTID].getService(Ci.nsIWindowMediator); + let winName = "enigmail:KeyManager"; + let spec = "chrome://enigmail/content/enigmailKeygen.xul"; + + let winEnum = windowManager.getEnumerator(null); + let recentWin = null; + while (winEnum.hasMoreElements() && !recentWin) { + let thisWin = winEnum.getNext(); + if (thisWin.location.href == spec) { + recentWin = thisWin; + break; + } + if (winName && thisWin.name && thisWin.name == winName) { + let evt = new thisWin.Event("reload-keycache", { + "bubbles": true, + "cancelable": false + }); + thisWin.dispatchEvent(evt); + break; + } + } + }, + + /** * Display the key creation window * * no return value @@ -198,7 +227,7 @@ openKeyGen: function() { EnigmailWindows.openWin("enigmail:generateKey", "chrome://enigmail/content/enigmailKeygen.xul", - "chrome,modal,resizable=yes"); + "chrome,resizable=yes"); }, /** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/ui/content/enigmailKeyManager.js new/enigmail/ui/content/enigmailKeyManager.js --- old/enigmail/ui/content/enigmailKeyManager.js 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/ui/content/enigmailKeyManager.js 2016-06-03 16:13:30.000000000 +0200 @@ -62,6 +62,8 @@ gShowUntrustedKeys = document.getElementById("showUntrustedKeys"); gShowOthersKeys = document.getElementById("showOthersKeys"); + window.addEventListener("reload-keycache", enigmailRefreshKeys); + if (EnigGetPref("keyManShowAllKeys")) { gShowAllKeysElement.setAttribute("checked", "true"); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/ui/content/enigmailKeyManager.xul new/enigmail/ui/content/enigmailKeyManager.xul --- old/enigmail/ui/content/enigmailKeyManager.xul 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/ui/content/enigmailKeyManager.xul 2016-06-03 16:13:30.000000000 +0200 @@ -295,7 +295,7 @@ <menuitem label="&enigmail.keyMan.generate.label;" id="genKey" accesskey="&enigmail.keyMan.generate.accesskey;" - oncommand="EnigKeygen(); enigmailRefreshKeys();"/> + oncommand="EnigKeygen();"/> <menuitem label="&enigmail.keyMan.genRevoke.label;" id="revokationCertificate" observes="bcRevoke" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/ui/content/enigmailKeygen.js new/enigmail/ui/content/enigmailKeygen.js --- old/enigmail/ui/content/enigmailKeygen.js 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/ui/content/enigmailKeygen.js 2016-06-03 16:13:30.000000000 +0200 @@ -18,7 +18,7 @@ /* global EnigGetWindowOptions: false, EnigConfirm: false, EnigGetString: false, GetEnigmailSvc: false */ /* global EnigLongAlert: false, EnigAlert: false, EnigInitCommon: false, ENIG_ACCOUNT_MANAGER_CONTRACTID: false */ /* global EnigGetPref: false, EnigSetPref: false, EnigSavePrefs: false, EnigFilePicker: false, EnigGetFilePath: false */ -/* global EnigCreateRevokeCert: false */ +/* global EnigmailWindows: false, EnigCreateRevokeCert: false */ // Initialize enigmailCommon EnigInitCommon("enigmailKeygen"); @@ -139,6 +139,8 @@ EnigSavePrefs(); + EnigmailWindows.keyManReloadKeys(); + if (EnigConfirm(EnigGetString("keygenComplete", curId.email) + "\n\n" + EnigGetString("revokeCertRecommended"), EnigGetString("keyMan.button.generateCert"))) { EnigCreateRevokeCert(gGeneratedKey, curId.email, closeAndReset); } @@ -258,6 +260,11 @@ EnigAlert(EnigGetString("passSpaceProblem")); return null; } + + if (passphrase.length < 8) { + EnigAlert(EnigGetString("passphrase.min8keys")); + return null; + } return passphrase; } @@ -287,15 +294,19 @@ var passphrase; // gpg >= 2.1 queries passphrase using gpg-agent only if (EnigmailGpg.getGpgFeature("keygen-passphrase")) { - passphrase = enigmailCheckPassphrase(); - if (!passphrase) return; - var noPassphraseElement = document.getElementById("noPassphrase"); + var passphraseElement = document.getElementById("passphrase"); - if (!passphrase && !noPassphraseElement.checked) { - EnigAlert(EnigGetString("passCheckBox")); - return; + if (!noPassphraseElement.checked) { + if (passphraseElement.value.trim() === "") { + EnigAlert(EnigGetString("passCheckBox")); + return; + } + + passphrase = enigmailCheckPassphrase(); + if (!passphrase) return; } + } else { passphrase = ""; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/ui/content/enigmailMsgHdrViewOverlay.js new/enigmail/ui/content/enigmailMsgHdrViewOverlay.js --- old/enigmail/ui/content/enigmailMsgHdrViewOverlay.js 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/ui/content/enigmailMsgHdrViewOverlay.js 2016-06-03 16:13:30.000000000 +0200 @@ -881,7 +881,7 @@ updateMsgDb: function() { EnigmailLog.DEBUG("enigmailMsgHdrViewOverlay.js: this.updateMsgDb\n"); var msg = gFolderDisplay.selectedMessage; - if (!msg) return; + if (!msg || !msg.folder) return; var msgHdr = msg.folder.GetMessageHeader(msg.messageKey); if (this.statusBar.getAttribute("encrypted") == "ok") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/enigmail/ui/content/keyDetailsDlg.js new/enigmail/ui/content/keyDetailsDlg.js --- old/enigmail/ui/content/keyDetailsDlg.js 2016-04-25 16:38:54.000000000 +0200 +++ new/enigmail/ui/content/keyDetailsDlg.js 2016-06-03 16:13:30.000000000 +0200 @@ -194,9 +194,11 @@ } function manageUids() { + let keyObj = EnigmailKeyRing.getKeyById(gKeyId); + var inputObj = { - keyId: gKeyId, - ownKey: window.arguments[0].secKey + keyId: keyObj.keyId, + ownKey: keyObj.secretAvailable }; var resultObj = {
