8 messages in net.sourceforge.lists.courier-sqwebmail[sqwebmail] Re: Problem importing PGP...
FromSent OnAttachments
Rainer DuffnerAug 9, 2004 3:18 am 
Sam VarshavchikAug 9, 2004 4:09 am 
Rainer DuffnerAug 9, 2004 4:20 am 
Alexander FarberAug 9, 2004 6:11 am 
Sam VarshavchikAug 9, 2004 3:59 pm 
Rainer DuffnerAug 10, 2004 6:10 am 
Sam VarshavchikAug 10, 2004 3:35 pm 
Rainer DuffnerAug 10, 2004 5:21 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[sqwebmail] Re: Problem importing PGP-keyActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Aug 9, 2004 3:59:21 pm
List:net.sourceforge.lists.courier-sqwebmail

Rainer Duffner writes:

Am Mo, 2004-08-09 um 13.09 schrieb Sam Varshavchik:

Rainer Duffner writes:

Hi,

why is it so difficult to import a PGP/GPG-Key ?

I got a PGP-key by mail, but it was sent as an attachement.

So, I tried to send it to myself, encrypted, so that Sqwebmail would recognize it. But when I upload it, it's only uploaded as text/plain or application/octet-stream (Mozilla 1.7.2 and Opera 7.54) - and sqwebmail doesn't recognize is as GPG-key again.

The MIME type for PGP keys is application/pgp-keys.

Yes, but how do I set that when I upload the keys via sqwebmail ?

When you select an existing key in sqwebmail, and attach it to a message, sqwebmail sets the correct MIME type.

If you are using some other mail client to send keys via E-mail, it is that mail client's responsibility to set the correct MIME types.

The webserver knows about these, though:

ROOT@bsd# egrep -i gpg mime.types ROOT@bsd# egrep -i pgp mime.types application/pgp-encrypted application/pgp-keys application/pgp-signature

None of these MIME types are associated with a file extension. You need set, for example, "key" as the extension for the application/pgp-keys MIME type. Then uploading filename.key sets the MIME type accordingly.