Bug #135

Need to expand MIME tags for PGP encrypt

Added by Michael Galyuk 9 months ago. Updated 9 months ago.

Status:NewStart date:11/02/2013
Priority:NormalDue date:
Assignee:Hiroyuki Yamamoto% Done:

0%

Category:SylpheedSpent time:-
Target version:3.2

Description

Hi. I faced up with trouble when send PGP encrypted message when use Sylpheed 3.2.0 beta.
When a recepient opens the message in web-service mail.ru, he cannot see encrypted attachments.
He see an empty message only, without possibility "save as.." attachment and decrypt it via gnupg or something else.

I discover a body of letter:

Subject: test
Content-Type: multipart/encrypted; protocol="application/pgp-encrypted";
 boundary="Encrypt=_Sat__2_Nov_2013_12_12_12_+0600_1pZ8Rq_vZcgcyX60" 
...
--Encrypt=_Sat__2_Nov_2013_12_12_12_+0600_1pZ8Rq_vZcgcyX60
Content-Type: application/pgp-encrypted
Version: 1
--Encrypt=_Sat__2_Nov_2013_12_12_12_+0600_1pZ8Rq_vZcgcyX60
Content-Type: application/octet-stream

I found some links:
http://de.wikipedia.org/wiki/PGP/MIME
http://lists.gnupg.org/pipermail/gnupg-users/2003-May/018431.html
http://www.ietf.org/rfc/rfc2015.txt

It seems a trouble deals with absent additional mime tags.
I think you should to expand mime tags like this:

This is an OpenPGP/MIME encrypted message (RFC 2440 and 3156)
 --------------24i8m5cu37hapwm904t8v
 Content-Type: application/pgp-encrypted
 Content-Description: PGP/MIME version identification

 Version: 1

 --------------24i8m5cu37hapwm904t8v
 Content-Type: application/octet-stream; name="encrypted.asc" 
 Content-Description: OpenPGP encrypted message
 Content-Disposition: inline; filename="encrypted.asc" 

It will fully follows conform to a standard RFC2015, and decides a troubles with other mail clients and web-services.

History

#1 Updated by Michael Galyuk 9 months ago

I've just installed Thunderbirg, tryed to create a letter and look body of the letter:

Return-path: <ironsoft@mail.ru>
From: Michael Galyuk <ironsoft@mail.ru>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
MIME-Version: 1.0
To: robux@mail.ru
Subject: test3
X-Enigmail-Version: 1.5.2
Content-Type: multipart/encrypted;
 protocol="application/pgp-encrypted";
 boundary="qbOQb2T9pvEhfijRdTkGwAfhbrFHn8xjH" 
X-Spam: Not detected
X-Mras: Ok
X-Spam: Not detected
X-Mras: Ok

This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156)
--qbOQb2T9pvEhfijRdTkGwAfhbrFHn8xjH
Content-Type: application/pgp-encrypted
Content-Description: PGP/MIME version identification

Version: 1

--qbOQb2T9pvEhfijRdTkGwAfhbrFHn8xjH
Content-Type: application/octet-stream; name="encrypted.asc" 
Content-Description: OpenPGP encrypted message
Content-Disposition: inline; filename="encrypted.asc" 

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

hQEMA03PNMXnnEGcAQf/WgPYyv5qI4XGNdZlTYdDQS4bJZ+mDE/jdi3th05abkHb
....
=Gj4H
-----END PGP MESSAGE-----

--qbOQb2T9pvEhfijRdTkGwAfhbrFHn8xjH--

Pay attention at:

Content-Type: application/octet-stream; name="encrypted.asc" 
Content-Description: OpenPGP encrypted message
Content-Disposition: inline; filename="encrypted.asc" 

Now the attachment is available in web-service, and I can download it and encrypt without any mail client!

So, those MIME's parameters are very important for using!!!
I hope you will understand my English and correct the bug :)

Have a nice day.

Also available in: Atom PDF