我有一个脚本可以对文本进行 gpg 加密并将其邮寄出去。
我使用 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--