<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p>結局 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">multipart/signed媒体型</anchor>と <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">multipart/encrypted媒体型</anchor>を
使うことになって、日の目を見ずに消えていった PGP の媒体型。</p><p>とはいえ、実装している(いた?) UA は少なからずあるみたい。</p><p>というより、旧来の <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PGPメッセージ交換形式</anchor>と親和性が高い
(というか99%同じ) だから、どの道対応しないといけなかったんでしょう。</p><p>CTE には &quot;7bit&quot; と &quot;8bit&quot; だけが使える。 [PGP-kazu]</p><section><h1>パラメーター</h1><table><tbody><tr><td>charset</td><td>mime.charset</td><td></td><td>charset [MIME]</td><td>[PGP-kazu]</td></tr><tr><td>format</td><td>text / &quot;mime&quot;</td><td></td><td>内容の形式</td><td>[PGP-kazu]</td></tr><tr><td>x-action</td><td>sign / &quot;encrypt&quot;</td><td></td><td>中身は何か。</td><td>(非標準)</td></tr></tbody></table><p>format パラメーターの既定値は &quot;text&quot;。
format=mime の時、 charset パラメーターを指定できる。</p><p>format=text の時、本文の charset は local 慣習で決まる。</p></section><section><h1>仕様書</h1><ul><li>[PGP-kazu] <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="urn:ietf:id:draft-kazu-pgp-mime-00" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI">urn:ietf:id:draft-kazu-pgp-mime-00</anchor-external></li></ul></section><section><h1>MIME 以前の (CT: 領域がない) メッセージへの媒体型の付与</h1><p>したいときに、どーするか。 IANA 登録簿には登録されていない
ものの、この application/pgp 媒体型を使っていいんじゃないでしょか。</p><p>但し、(大半を占めると思われる) クリア署名の場合、
application/pgp にしてしまうと、(対応していない) MIME UA
が、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">application/octet-stream媒体型</anchor>として取り扱ってしまい、
不便です。</p><p>そこで、 text/x-pgp-cleartext-signed媒体型を使うことにしませう。</p><p>推奨媒体型パラメーターは charset で、既定値は
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MIME</anchor> 以前からの暗黙想定値、または ASCII armor 中に
指定がある場合はその値、とします。</p><p>ついでに、 application/pgp 媒体型にも charset パラメーターを
勝手に作ってしまいましょう。その方が色々と(謎)都合がいい。</p><p>と思ったら、 [PGP-Kazu] でも定義されてるっぽいことが
書いてあるけど、意味がわかんない。 MIME 実体を中身に持つ
PGP 署名だったら、その charset パラメーターはその中身の
CT: 領域にあるんじゃないの?</p></section></body></html>