Re: [Nmh-workers] help me out with mime/base64/gpg please

2017-02-04 Thread David Levine
hymie wrote:

> But it seems like there is something I'm missing, that will enable
> mhshow to say "Oh, base64 and pgp-encrypted.  I should use the
> 'gpg2 -d %F | less' command to show this part"

Here are some pieces, in addition to gpg-agent, that might help:

1) I think you're looking for this kind of profile entry, as described in
the mhshow(1) man page:

mhshow-show-application/octet-stream: [ %{name} = encrypted.asc ] &&
  gpg2 -d %F || echo cannot display %a

If it gets more complicated, maybe put the real work into a script
and call that.  Also, multiple profile entries would be needed if
application/octet-stream isn't the only way to identify this type of
content.

2) Something like this might be useful:

mhstore -noverbose -type application/pgp-encrypted -outfile -

For your example, it just extracts the PGP version to stdout, but again
I'm not sure how general that Content-Type is.

3) The mhshow -notextonly and -noinlineonly switches will probably be
necessary.

David

___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] help me out with mime/base64/gpg please

2017-02-03 Thread Ken Hornstein
>> normally for encrypted email you'd need to enter in your password to
>> unlock your private key and we don't really have a good mechanism for
>> that currently.
>
>There's a gpg-agent(1);  it's kicked off as needed by gpg(1) these days
>AIUI.  I've not used it, but I assume it works similarly to ssh-agent in
>that you ssh-add(1) a key once, authenticating, and it dishes out the
>necessary as and when.  That's how us cool kids SSH willy-nilly about
>the Internets without entering passwords.

I am aware of that, but the programs I'm aware of that are like us (tty
based programs) and use GPG successfully are more tightly integrated
and use --status-fd and --batch.  But maybe we should consider using
GPGME, which is what the authors of GPG REALLY want MUAs to use.

--Ken

___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] help me out with mime/base64/gpg please

2017-02-03 Thread Ralph Corderoy
Hi Ken,

> normally for encrypted email you'd need to enter in your password to
> unlock your private key and we don't really have a good mechanism for
> that currently.

There's a gpg-agent(1);  it's kicked off as needed by gpg(1) these days
AIUI.  I've not used it, but I assume it works similarly to ssh-agent in
that you ssh-add(1) a key once, authenticating, and it dishes out the
necessary as and when.  That's how us cool kids SSH willy-nilly about
the Internets without entering passwords.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers