0
我有一個腳本可以對文本進行gpg加密並將其郵寄出去。自編的gnupg MIME郵件顯示爲附件而不是內聯
我使用MacGPG/Apple Mail,它可以很好地解密它,但是之後不顯示文本,而是顯示附件。
這些是我構建的郵件,它有什麼問題?
...
Date: Wed, 25 Apr 2012 16:01:04 +0200
From: <deleted>
To: <deleted>
Message-ID: <deleted>
Subject: asdf
Mime-Version: 1.0
Content-Type: multipart/encrypted;
boundary=4b5784e4-fc05-45bb-9a72-e9070a11423c;
charset=UTF-8;
protocol="application/pgp-encrypted"
Content-Transfer-Encoding: 7bit
--4b5784e4-fc05-45bb-9a72-e9070a11423c
Date: Wed, 25 Apr 2012 16:01:04 +0200
Mime-Version: 1.0
Content-Type: application/pgp-encrypted;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-ID: <deleted>
Version: 1
--4b5784e4-fc05-45bb-9a72-e9070a11423c
Date: Wed, 25 Apr 2012 16:01:04 +0200
Mime-Version: 1.0
Content-Type: application/octet-stream;
charset=UTF-8;
name=msg.asc
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename=msg.asc
Content-ID: <deleted>
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2.0.17 (GNU/Linux)
<PGPDATA>
-----END PGP MESSAGE-----
--4b5784e4-fc05-45bb-9a72-e9070a11423c--
這樣做的伎倆,謝謝。 – 2012-04-25 16:10:54