Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-11-04 Thread Doug Barton

On 11/04/2016 08:12 AM, Patrick Brunschwig wrote:

You have to use a Mozilla-API function in Thunderbird. The function
allows to specify that a directory name should be unique - but you have
to actually use the parameter to obtain a unique directory ...


Right, so ... shouldn't you be doing that as a matter of course? 
Predictable temp file and directory names are a programming security 
error we squashed in the 90's. :)


Doug


___
enigmail-users mailing list
enigmail-users@enigmail.net
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net


Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-11-04 Thread Patrick Brunschwig
On 04.11.16 09:05, Doug Barton wrote:
> On 10/31/2016 12:09 AM, Patrick Brunschwig wrote:
>> On 30.10.16 20:10, Daniel Kahn Gillmor wrote:
 Do you see any exception in the Thunderbird console?
>>>
>>> Ah, good call, sorry i didn't look there first.  When i open the key
>>> manager dialog box, i get a small warning that i think is irrelevant to
>>> this concern [0].
>>>
>>> Then when i try to do the import, i see the following error:
>>>
>>> Timestamp: 10/30/2016 01:44:08 PM
>>> Error: NS_ERROR_FILE_ALREADY_EXISTS: Component returned failure
>>> code: 0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS) [nsIFile.create]
>>> Source File: resource://enigmail/files.jsm
>>> Line: 263
>>>
>>> That's createTempSubDir, presumably with dirName="enigmail_import".
>>> Sure enough, i have $TMPDIR/enigmail_import already (probably leftovers
>>> From a previous attempt that failed due to the arglist).
>>
>> Indeed. It's obviously not ideal to assume that a temp directory does
>> not exist. I'll fix this.
> 
> Are you not using something equivalent to mktemp?

You have to use a Mozilla-API function in Thunderbird. The function
allows to specify that a directory name should be unique - but you have
to actually use the parameter to obtain a unique directory ...

-Patrick




signature.asc
Description: OpenPGP digital signature
___
enigmail-users mailing list
enigmail-users@enigmail.net
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net


Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-11-04 Thread Doug Barton

On 10/31/2016 12:09 AM, Patrick Brunschwig wrote:

On 30.10.16 20:10, Daniel Kahn Gillmor wrote:

Do you see any exception in the Thunderbird console?


Ah, good call, sorry i didn't look there first.  When i open the key
manager dialog box, i get a small warning that i think is irrelevant to
this concern [0].

Then when i try to do the import, i see the following error:

Timestamp: 10/30/2016 01:44:08 PM
Error: NS_ERROR_FILE_ALREADY_EXISTS: Component returned failure code: 
0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS) [nsIFile.create]
Source File: resource://enigmail/files.jsm
Line: 263

That's createTempSubDir, presumably with dirName="enigmail_import".
Sure enough, i have $TMPDIR/enigmail_import already (probably leftovers
From a previous attempt that failed due to the arglist).


Indeed. It's obviously not ideal to assume that a temp directory does
not exist. I'll fix this.


Are you not using something equivalent to mktemp?

Doug


___
enigmail-users mailing list
enigmail-users@enigmail.net
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net


Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-10-31 Thread Patrick Brunschwig
On 30.10.16 20:10, Daniel Kahn Gillmor wrote:
>> Do you see any exception in the Thunderbird console?
> 
> Ah, good call, sorry i didn't look there first.  When i open the key
> manager dialog box, i get a small warning that i think is irrelevant to
> this concern [0].
> 
> Then when i try to do the import, i see the following error:
> 
> Timestamp: 10/30/2016 01:44:08 PM
> Error: NS_ERROR_FILE_ALREADY_EXISTS: Component returned failure code: 
> 0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS) [nsIFile.create]
> Source File: resource://enigmail/files.jsm
> Line: 263
> 
> That's createTempSubDir, presumably with dirName="enigmail_import".
> Sure enough, i have $TMPDIR/enigmail_import already (probably leftovers
> From a previous attempt that failed due to the arglist).

Indeed. It's obviously not ideal to assume that a temp directory does
not exist. I'll fix this.

-Patrick



signature.asc
Description: OpenPGP digital signature
___
enigmail-users mailing list
enigmail-users@enigmail.net
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net


Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-10-30 Thread Daniel Kahn Gillmor
On Sat 2016-10-29 10:49:23 -0400, Patrick Brunschwig wrote:
> On 29.10.16 16:26, Daniel Kahn Gillmor wrote:
>> On Sat 2016-10-29 05:09:12 -0400, Patrick Brunschwig wrote:
>>> The problem is that there is no output on stderr, even though
>>> --status-fd 2 is specified. I added --no-verbose because "verbose"
>>> options in gpg.conf make gpg ignore --status-fd 2. Apparently there is
>>> something more in your gpg.conf file with the same result.
>> 
>> I think that the command that we're talking about is:
>> 
>>/usr/bin/gpg --charset utf-8 --display-charset utf-8 --use-agent --batch 
>> --no-tty --status-fd 2 --no-verbose --list-packets
>> 
>> Is that right?
>
> Right, this can't be the problem.
>
> The difference between your log file:
>
> 2016-10-28 14:35:35.523 [DEBUG] execution.jsm:
> EnigmailExecution.fixExitCode: agentType: gpg exitCode: 0 statusFlags
> undefined
> 2016-10-28 14:35:35.523 [CONSOLE]
> 2016-10-28 14:35:41.812 [DEBUG] enigmailMessengerOverlay.js:
> updateOptionsDisplay:
>
> and mine:
>
> 2016-10-29 16:44:30.301 [DEBUG] execution.jsm:
> EnigmailExecution.fixExitCode: agentType: gpg exitCode: 0 statusFlags
> undefined
> 2016-10-29 16:44:30.301 [CONSOLE]
> 2016-10-29 16:44:30.302 execution.jsm: EnigmailExecution.execCmd:
> subprocess = '/usr/local/bin/gpg2'
> 2016-10-29 16:44:30.302 [CONSOLE] enigmail> /usr/local/bin/gpg2
> --charset utf-8 --display-charset utf-8 --use-agent --batch --no-tty
> --status-fd 2 --import --trustdb
> /Users/pbr/Library/Caches/TemporaryItems/enigmail_import/trustdb
> --no-default-keyring --keyring
> /Users/pbr/Library/Caches/TemporaryItems/enigmail_import/keyring
>
> Do you see any exception in the Thunderbird console?

Ah, good call, sorry i didn't look there first.  When i open the key
manager dialog box, i get a small warning that i think is irrelevant to
this concern [0].

Then when i try to do the import, i see the following error:

Timestamp: 10/30/2016 01:44:08 PM
Error: NS_ERROR_FILE_ALREADY_EXISTS: Component returned failure code: 
0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS) [nsIFile.create]
Source File: resource://enigmail/files.jsm
Line: 263

That's createTempSubDir, presumably with dirName="enigmail_import".
Sure enough, i have $TMPDIR/enigmail_import already (probably leftovers
From a previous attempt that failed due to the arglist).

If i "mv $TMPDIR/enigmail_import{,.bak}" then try the import again, it
succeeds as expected. [1]

So: is it possible to use a dynamically-named temporary directory?
using $TMPDIR/enigmail_import seems prone to failure -- and for people
sharing a mode 1777 /tmp as $TMPDIR, it looks like one person could
block all other people on a given machine from doing imports.  (the same
is likely also true for "$TMPDIR/enig-imp" and "$TMPDIR/enig-exp").  On
a POSIX platform, i'd recommend mkstemp() -- but i don't know what the
equivalent is for enigmail's platform.

   --dkg

[0] The warning is:

Timestamp: 10/30/2016 01:43:25 PM
Warning: XUL box for a element contained an inline #text child, forcing all 
its children to be wrapped in a block.
Source File: chrome://enigmail/content/enigmailKeyManager.xul
Line: 0

I suspect this can be fixed with:

--- a/ui/content/enigmailKeyManager.xul
+++ b/ui/content/enigmailKeyManager.xul
@@ -454,8 +454,7 @@
 
 
 
-  
+   
 
   
 



[1] As another digression, after success, i get the following warning on
the console:

Timestamp: 10/30/2016 01:53:20 PM
Warning: Expected ':' but found ';'.  Declaration dropped.
Source File: chrome://enigmail/content/enigmailKeyImportInfo.xul
Line: 0, Column: 5
Source Code:
plain;white-space: pre
-^

I think this can be fixed with the following (based on similar elements
in ui/content/keyDetailsDlg.xul):

--- a/ui/content/enigmailKeyImportInfo.xul
+++ b/ui/content/enigmailKeyImportInfo.xul
@@ -31,7 +31,7 @@
 
   
 
-  
+  
 
   


signature.asc
Description: PGP signature
___
enigmail-users mailing list
enigmail-users@enigmail.net
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net


Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-10-29 Thread Patrick Brunschwig
On 29.10.16 16:26, Daniel Kahn Gillmor wrote:
> On Sat 2016-10-29 05:09:12 -0400, Patrick Brunschwig wrote:
>> The problem is that there is no output on stderr, even though
>> --status-fd 2 is specified. I added --no-verbose because "verbose"
>> options in gpg.conf make gpg ignore --status-fd 2. Apparently there is
>> something more in your gpg.conf file with the same result.
> 
> I think that the command that we're talking about is:
> 
>/usr/bin/gpg --charset utf-8 --display-charset utf-8 --use-agent --batch 
> --no-tty --status-fd 2 --no-verbose --list-packets
> 
> Is that right?

Right, this can't be the problem.

The difference between your log file:

2016-10-28 14:35:35.523 [DEBUG] execution.jsm:
EnigmailExecution.fixExitCode: agentType: gpg exitCode: 0 statusFlags
undefined
2016-10-28 14:35:35.523 [CONSOLE]
2016-10-28 14:35:41.812 [DEBUG] enigmailMessengerOverlay.js:
updateOptionsDisplay:

and mine:

2016-10-29 16:44:30.301 [DEBUG] execution.jsm:
EnigmailExecution.fixExitCode: agentType: gpg exitCode: 0 statusFlags
undefined
2016-10-29 16:44:30.301 [CONSOLE]
2016-10-29 16:44:30.302 execution.jsm: EnigmailExecution.execCmd:
subprocess = '/usr/local/bin/gpg2'
2016-10-29 16:44:30.302 [CONSOLE] enigmail> /usr/local/bin/gpg2
--charset utf-8 --display-charset utf-8 --use-agent --batch --no-tty
--status-fd 2 --import --trustdb
/Users/pbr/Library/Caches/TemporaryItems/enigmail_import/trustdb
--no-default-keyring --keyring
/Users/pbr/Library/Caches/TemporaryItems/enigmail_import/keyring

Do you see any exception in the Thunderbird console?

-Patrick




signature.asc
Description: OpenPGP digital signature
___
enigmail-users mailing list
enigmail-users@enigmail.net
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net


Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-10-29 Thread Daniel Kahn Gillmor
On Sat 2016-10-29 05:09:12 -0400, Patrick Brunschwig wrote:
> The problem is that there is no output on stderr, even though
> --status-fd 2 is specified. I added --no-verbose because "verbose"
> options in gpg.conf make gpg ignore --status-fd 2. Apparently there is
> something more in your gpg.conf file with the same result.

I think that the command that we're talking about is:

   /usr/bin/gpg --charset utf-8 --display-charset utf-8 --use-agent --batch 
--no-tty --status-fd 2 --no-verbose --list-packets

Is that right?

if so, when i run that with foo.asc on stdin, i don't see *anything* on
fd 2 anyway, even when run from a clean home directory with an empty
gpg.conf.  What are you expecting to see on the status-fd from
--list-packets?

  --dkg


signature.asc
Description: PGP signature
___
enigmail-users mailing list
enigmail-users@enigmail.net
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net


Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-10-28 Thread Daniel Kahn Gillmor
On Fri 2016-10-28 12:57:34 -0400, Patrick Brunschwig wrote:
> On 28.10.16 18:42, Daniel Kahn Gillmor wrote:
>> On Fri 2016-10-28 12:10:34 -0400, Ludwig Hügelschäfer wrote:
>> 
>>> Just tested: enigmail-1.9-branch imports a key from file as well as
>>> master here.
>> 
>> What version of GnuPG were you using to test?  I'm using 2.1.15-8 (on
>> debian testing/unstable).
>
> Importing works fine for me with GnuPG 2.1.15 (on Mac OS X).
>
> Can you send me the debug log file?

Below is the section of the debug log that appears when doing "Key
Manager Dialog | File | Import Keys from File…".

The file i pointed it at is the same foo.asc as earlier in the thread.

let me know if you need anything else.

   --dkg


--
2016-10-28 14:34:59.428 [DEBUG] enigmailCommon.jsm: filePicker: true
2016-10-28 14:35:21.652 [DEBUG] enigmailMessengerOverlay.js: 
updateOptionsDisplay: 
2016-10-28 14:35:21.652 [DEBUG] funcs.jsm: collapseAdvanced:
2016-10-28 14:35:24.246 [DEBUG] enigmailCommon.js: EnigInitCommon: 
id=enigmailKeyManager
2016-10-28 14:35:24.267 [DEBUG] enigmailKeyManager.js: enigmailKeyManagerLoad
2016-10-28 14:35:24.269 [DEBUG] enigmailCommon.jsm: dispatchEvent f=loadkeyList
2016-10-28 14:35:24.370 [DEBUG] enigmailCommon.jsm: dispatchEvent got notified
2016-10-28 14:35:24.370 [DEBUG] enigmailKeyManager.js: loadkeyList
2016-10-28 14:35:24.370 [DEBUG] enigmailKeyManager.js: enigmailBuildList
2016-10-28 14:35:31.226 [DEBUG] enigmailCommon.jsm: filePicker: false
2016-10-28 14:35:35.464 execution.jsm: EnigmailExecution.execCmd: subprocess = 
'/usr/bin/gpg'
2016-10-28 14:35:35.464 [CONSOLE] enigmail> /usr/bin/gpg --charset utf-8 
--display-charset utf-8 --use-agent --batch --no-tty --status-fd 2 --no-verbose 
--list-packets
2016-10-28 14:35:35.522 [DEBUG]   enigmail> DONE
2016-10-28 14:35:35.522 [DEBUG] execution.jsm: EnigmailExecution.execCmd: 
exitCode = 0
2016-10-28 14:35:35.522 [DEBUG] execution.jsm: EnigmailExecution.execCmd: 
errOutput = 
2016-10-28 14:35:35.522 [DEBUG] errorHandling.jsm: parseErrorOutputWith: status 
message: 

2016-10-28 14:35:35.523 [DEBUG] system.jsm: determineSystemCharset
2016-10-28 14:35:35.523 [DEBUG] system.jsm: determineSystemCharset: 
charset='iso-8859-1'
2016-10-28 14:35:35.523 [DEBUG] errorHandling.jsm: parseErrorOutputWith: 
statusFlags = 
2016-10-28 14:35:35.523 [DEBUG] errorHandling.jsm: parseErrorOutputWith: return 
with c.errorMsg = 
2016-10-28 14:35:35.523 [DEBUG] execution.jsm: EnigmailExecution.fixExitCode: 
agentType: gpg exitCode: 0 statusFlags undefined
2016-10-28 14:35:35.523 [CONSOLE] 
2016-10-28 14:35:41.812 [DEBUG] enigmailMessengerOverlay.js: 
updateOptionsDisplay: 
2016-10-28 14:35:41.813 [DEBUG] funcs.jsm: collapseAdvanced:
2016-10-28 14:35:43.644 [DEBUG] enigmailMessengerOverlay.js: 
updateOptionsDisplay: 
2016-10-28 14:35:43.644 [DEBUG] funcs.jsm: collapseAdvanced:
2016-10-28 14:35:44.456 [DEBUG] enigmailHelp.js: enigLoadPage
2016-10-28 14:35:44.456 [DEBUG] enigmailCommon.jsm: getFrame: name=contentFrame
--


signature.asc
Description: PGP signature
___
enigmail-users mailing list
enigmail-users@enigmail.net
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net


Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-10-28 Thread Patrick Brunschwig
On 28.10.16 18:42, Daniel Kahn Gillmor wrote:
> On Fri 2016-10-28 12:10:34 -0400, Ludwig Hügelschäfer wrote:
> 
>> Just tested: enigmail-1.9-branch imports a key from file as well as
>> master here.
> 
> What version of GnuPG were you using to test?  I'm using 2.1.15-8 (on
> debian testing/unstable).

Importing works fine for me with GnuPG 2.1.15 (on Mac OS X).

Can you send me the debug log file?

-Patrick




signature.asc
Description: OpenPGP digital signature
___
enigmail-users mailing list
enigmail-users@enigmail.net
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net


Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-10-28 Thread Daniel Kahn Gillmor
On Fri 2016-10-28 12:10:34 -0400, Ludwig Hügelschäfer wrote:

> Just tested: enigmail-1.9-branch imports a key from file as well as
> master here.

What version of GnuPG were you using to test?  I'm using 2.1.15-8 (on
debian testing/unstable).

   --dkg

___
enigmail-users mailing list
enigmail-users@enigmail.net
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net


Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-10-28 Thread Ludwig Hügelschäfer
On 27.10.16 21:00, Ludwig Hügelschäfer wrote:
> Hi,
> 
> On 27.10.16 20:13, Daniel Kahn Gillmor wrote:
> 
>> Any suggestions for what to debug next?
> 
> I suppose there's nothing related in the Thunderbird error console,
> right? Enigmail master runs an import from file flawlessly. I'll compare
> master and enigmail-1.9-branch.

Just tested: enigmail-1.9-branch imports a key from file as well as
master here.

Ludwig




signature.asc
Description: OpenPGP digital signature
___
enigmail-users mailing list
enigmail-users@enigmail.net
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net


Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-10-27 Thread Patrick Brunschwig
I'll try the branch tomorrow and see what went wrong with the merge. I think my 
patch from master was just broken ...

Patrick

- Originale Nachricht -
Von: Daniel Kahn Gillmor <d...@fifthhorseman.net>
Gesendet: 27.10.2016 - 20:13
An: enigmail-users@enigmail.net
Betreff: Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

> On Thu 2016-10-27 12:13:56 -0400, Daniel Kahn Gillmor wrote:
>> args is a list of distinct options, not a comma-separated string.
> 
> Even with this patch applied, i find that running enigmail-1.9-branch, i
> can't import a key from a file.
> 
> Take as an example the attached file.
> 
> From the key management dialog box, i choose "File | Import Keys from
> File", and then point the chooser at foo.asc.
> 
> The debug log shows:
> 
>  2016-10-27 12:11:47.275 [DEBUG] enigmailCommon.jsm: filePicker: false
>  2016-10-27 12:11:49.589 execution.jsm: EnigmailExecution.execCmd: 
> subprocess = '/usr/bin/gpg'
>  2016-10-27 12:11:49.589 [CONSOLE] enigmail> /usr/bin/gpg --charset utf-8 
> --display-charset utf-8 --use-agent --batch --no-tty --status-fd 2 
> --no-verbose --list-packets
>  2016-10-27 12:11:49.638 [DEBUG]   enigmail> DONE
>  2016-10-27 12:11:49.638 [DEBUG] execution.jsm: 
> EnigmailExecution.execCmd: exitCode = 0
>  2016-10-27 12:11:49.638 [DEBUG] execution.jsm: 
> EnigmailExecution.execCmd: errOutput = 
>  2016-10-27 12:11:49.638 [DEBUG] errorHandling.jsm: parseErrorOutputWith: 
> status message: 
> 
>  2016-10-27 12:11:49.639 [DEBUG] system.jsm: determineSystemCharset
>  2016-10-27 12:11:49.639 [DEBUG] system.jsm: determineSystemCharset: 
> charset='iso-8859-1'
>  2016-10-27 12:11:49.639 [DEBUG] errorHandling.jsm: parseErrorOutputWith: 
> statusFlags = 
>  2016-10-27 12:11:49.639 [DEBUG] errorHandling.jsm: parseErrorOutputWith: 
> return with c.errorMsg = 
>  2016-10-27 12:11:49.639 [DEBUG] execution.jsm: 
> EnigmailExecution.fixExitCode: agentType: gpg exitCode: 0 statusFlags 
> undefined
>  2016-10-27 12:11:49.639 [CONSOLE] 
> 
> But then nothing actually gets imported, and no error messages appear.
> 
> Any suggestions for what to debug next?
> 
> --dkg
> 
> ___
> enigmail-users mailing list
> enigmail-users@enigmail.net
> To unsubscribe or make changes to your subscription click here:
> https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net



___
enigmail-users mailing list
enigmail-users@enigmail.net
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net


Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-10-27 Thread Ludwig Hügelschäfer
Hi,

On 27.10.16 20:13, Daniel Kahn Gillmor wrote:

> Any suggestions for what to debug next?

I suppose there's nothing related in the Thunderbird error console,
right? Enigmail master runs an import from file flawlessly. I'll compare
master and enigmail-1.9-branch.

Ludwig




signature.asc
Description: OpenPGP digital signature
___
enigmail-users mailing list
enigmail-users@enigmail.net
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net


Re: [Enigmail] [ENIGMAIL-1.9-BRANCH PATCH] keep options distinct

2016-10-27 Thread Daniel Kahn Gillmor
On Thu 2016-10-27 12:13:56 -0400, Daniel Kahn Gillmor wrote:
> args is a list of distinct options, not a comma-separated string.

Even with this patch applied, i find that running enigmail-1.9-branch, i
can't import a key from a file.

Take as an example the attached file.

From the key management dialog box, i choose "File | Import Keys from
File", and then point the chooser at foo.asc.

The debug log shows:

 2016-10-27 12:11:47.275 [DEBUG] enigmailCommon.jsm: filePicker: false
 2016-10-27 12:11:49.589 execution.jsm: EnigmailExecution.execCmd: 
subprocess = '/usr/bin/gpg'
 2016-10-27 12:11:49.589 [CONSOLE] enigmail> /usr/bin/gpg --charset utf-8 
--display-charset utf-8 --use-agent --batch --no-tty --status-fd 2 --no-verbose 
--list-packets
 2016-10-27 12:11:49.638 [DEBUG]   enigmail> DONE
 2016-10-27 12:11:49.638 [DEBUG] execution.jsm: EnigmailExecution.execCmd: 
exitCode = 0
 2016-10-27 12:11:49.638 [DEBUG] execution.jsm: EnigmailExecution.execCmd: 
errOutput = 
 2016-10-27 12:11:49.638 [DEBUG] errorHandling.jsm: parseErrorOutputWith: 
status message: 

 2016-10-27 12:11:49.639 [DEBUG] system.jsm: determineSystemCharset
 2016-10-27 12:11:49.639 [DEBUG] system.jsm: determineSystemCharset: 
charset='iso-8859-1'
 2016-10-27 12:11:49.639 [DEBUG] errorHandling.jsm: parseErrorOutputWith: 
statusFlags = 
 2016-10-27 12:11:49.639 [DEBUG] errorHandling.jsm: parseErrorOutputWith: 
return with c.errorMsg = 
 2016-10-27 12:11:49.639 [DEBUG] execution.jsm: 
EnigmailExecution.fixExitCode: agentType: gpg exitCode: 0 statusFlags undefined
 2016-10-27 12:11:49.639 [CONSOLE] 

But then nothing actually gets imported, and no error messages appear.

Any suggestions for what to debug next?

--dkg

-BEGIN PGP PUBLIC KEY BLOCK-

mQINBFNNZNgBEAC1NWTQSUQLhW+QpaDc5I/9mSaRpxVcwEjGsEvCS+BzF7PhovG3
GCt7MQ6WzIEMOWD4aAhSaPji5NZgM/cbJku1n4Nx6x/q+P1agfYingJoVAgn6LNh
iMPzDFZd0S6nmYj/D22SGZY7ot/01q016s3PKyspkEO93R846tSaFl+Qnntq7UoZ
Z/G6pZ18GHGfva1riQ9i5yYbiKfNPvDeVsp0YOwmjtl1BL8WwtOLgEF90VX0djNR
OCuuj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