Original id: PGP-Notes.txt,v 3.0 2002/01/24 13:35:07 roessler

		      MUTT 椫 PGP Ȥ


ٹ: ˡ 0.96.3 ȤϤޤäۤʤäƤޤ!
: ver1.5Ǥ̤ڤǤ


			    桼


mutt  PGP  PGP5, GnuPG ȤˤϤɤ뤫?
------------------------------------------------

ĥ꡼ contrib Ȥ֥ǥ쥯ȥ˹ԤäƤ
pgp2.rc, pgp5.rc, gpg.rc ȤĤΥե뤬ޤˤϡ
mutt  pgp2, pgp5, gpg Ȥ꤬񤤤Ƥޤ

ΰĤ򤽤Τޤ ~/.muttrc С
ޤưϤǤ

ȤϤPGP ХʥͿѥ᡼ PGP Υѥ٤
ʬ˹äƤ뤫ɤϳǧƤΤǤ͡



褯Ⱦ略
--------------------

Q: ֤ߤ mutt ǧʤ PGP åäƤޤ
    ɤФǤ?

ˡϡإå򤤤餺 mutt  check-traditional-pgp
ؿȤȤΤǤϡξ PGP å
Ф content-type ĴƤؿǤ

Τˡϡإåľ褦˥ᥤե륿ꤹ
ȤΤǤʲޤ

ʲƤ ~/.procmailrc ˽񤭹ߤޤ
(procmail ȤäƤޤ?)

		   ------------------------------

##
## PGP
##
  
:0
* !^Content-Type: message/
* !^Content-Type: multipart/
* !^Content-Type: application/pgp
{
        :0 fBw
        * ^-----BEGIN PGP MESSAGE-----
        * ^-----END PGP MESSAGE-----
        | formail \
            -i "Content-Type: application/pgp; format=text; x-action=encrypt"

        :0 fBw
        * ^-----BEGIN PGP SIGNED MESSAGE-----
        * ^-----BEGIN PGP SIGNATURE-----
        * ^-----END PGP SIGNATURE-----
        | formail \
            -i "Content-Type: application/pgp; format=text; x-action=sign"
}


		   ------------------------------

maildrop 桼ˤ
"Mark Weinem" <mark.weinem@unidui.uni-duisburg.de> 
νƤƤޤ


		   ------------------------------

BPGPM="-----BEGIN PGP MESSAGE-----"
EPGPM="-----END PGP MESSAGE-----"
BPGPS="-----BEGIN PGP SIGNATURE-----"
EPGPS="-----END PGP SIGNATURE-----"

if (!/^Content-Type: message/ && !/^Content-Type: multipart/ \
	&& !/^Content-Type: application\/pgp/)
{	
if (/^$BPGPM/:b && /^$EPGPM/:b)
	xfilter "reformail -A 'Content-Type: application/pgp; format=text; \
		x-action=encrypt'"

if (/^$BPGPS/:b && /^$EPGPS/:b)
	xfilter "reformail -A 'Content-Type: application/pgp; format=text; \
		x-action=sign'"
}

		   ------------------------------



Q: ֤ PGP/MIME äƤĤɤⵤʤΤǡ
    Τʤˡǥᥤ PGP ̾ȻפäƤޤ
    εǽ mutt Ƥޤ?

ϡμФϤΤǤ

  Ǥ¤ΤȤ application/pgp ϡMIME ƥȤ
  ѡȤʤɤΤˤŬƤʤΤǤǤʤܵ
  켰źեեȤΤǤСΥޥ
  ~/.muttrc Ƥ(ɤߤ䤹뤿˹Ԥʬ䤵
  ޤºݤˤϰԤǤ)

  macro compose S "Fpgp +verbose=0 -fast
  	+clearsig=on\ny^T^Uapplication/pgp; format=text;
	x-action=sign\n"


ʤ鿷ޤѿ $pgp_create_traditional
(yes, no [=ǥե], ask-yes, ask-no ͤ) 
"no" ʳꤹΤǤ mutt ϡ
Ȥ̤ǤϤĤǤ application/pgp ˴ޤޤ
Ū˸ȡޥѡȡޤ ASCII ƥȤ
ܥǥˤ application/pgp ȤΤϤޤäʥ󥻥󥹤Ǥ
Ǥ̵ PGP/MIME Ȥޤ

ϸäƤ⡢application/pgp ϻѤʤ褦
ᤷޤ



Q: PGP Ρ^G ȤФƤƤ뤵ΤʤǤɡ

Ф Roland Rosenfeld
<roland@spinnaker.rhein.de> ȯƤޤPGP ˤϡȤƤɤ
쥵ݡȤΤǡɽ줿ʤåФ
ʸˤʤäƤ "mutt" ȤƳǤΤǤ
θȤˤϡlanguage.txt  language50.txt Τ줫
(ȤäƤ PGP Υˤ)  $PGPPATH ˥ԡޤ
PGP ޥɤǧơPGP ΥХʥˤ٤
"+language=mutt" Ϥ褦ˤƤ ( pgpring ˤ
Ϥʤ褦!)

PGP 2.6 ѤˤϡɥĸǤ "muttde" ⤢ޤ


Q: ֽ̾ˤʤäƤޤޤCourier  MTA ȤäƤޤ

Courier MTA κԤϡmultipart/signed ꤷƤɸͤ
ȻפǤޤΤᡢmultipart/signed 
ѡȤݸ褦ʼϤʤȤ˷᤿褦Ǥ

桹ȤƤϡcourier ΤƤ sendmail  postfix, ޤ exim 
괹褦Ƥޤ



				


ץ
--------------

mutt  PGP ݡȤˤĤγץࡢpgpewrap  pgpring
ɬפȤʤäƤޤ


1. pgpring

pgpring ϸ«ƤɽޤPGP ΥХʥθ«
Фơmutt θ롼ƥǤ褦
(ۤ) ʹ֤ǤɤǽϤƤΤǤ
GNU Privacy Guard (GPG) ǻȤƤϷޤͤΤǤ

PGP 2  PGP 5 ˤϤΥץबɬפǤ

ޥɥ饤󥪥ץ

	-k <«>	-k ΤȤ˻ꤵ줿«ƤϤޤ

	-2, -5		ǥեȤθ«Ȥޤ
			 PGP  2  5 бޤ

	-s		̩θ«Ϥޤ



2. pgpewrap

äȤޥɥ饤Ѥ򤪤ʤ C ץǤ
Ĥΰϼ¹Ԥ륳ޥɤǤpgpewrap  "--" (å)
ȤƼȡμΰʹߤΰ٤Ƥդ
ޤ

()

	pgpewrap pgpe file -- -r a b c

ϼºݤˤϤ¹Ԥޤ

	pgpe file -r a -r b -r c

ΥץȤɬפʤΤ PGP 5  GPG Ǥϡ
ޥɥ饤ν񼰤 mutt λȤߤǤʤǤ




--------

mutt ¾Ʊ͡PGP ޥɤ printf 
񼰤ȤäƤޤ٤Ƥ PGP ޥɤФơʲ
%-󥹤Ƥޤ

  %p	ѥե쥤פʤʸɬפʤ "PGPPASSFD=0"
  	Ȥʸˤʤޤ

	ˡʬ %-ǻȤޤ

  %f	ۤȤɤ PGP ޥɤϡñΥե뤫
  	å줿եФΤǤ
  	%f ϡΥե̾Ÿޤ

  %s	̾򸡾ڤˤϡʬΥ̾줿եǤޤ
  	%s ϡΥե̾Ÿޤ

  %a	̾˴Ϣ̤ǡѿ $pgp_sign_as ͤ
  	Ÿޤ֤ʸ %-󥹤ǻȤɬפ
	ޤ

  %r	¿ξ̤ mutt ϸ ID  pgp Ϥޤ
  	%r ϸ ID ΥꥹȤŸޤ

ʲΥޥѿƤޤ

  $pgp_decode_command	application/pgp å沽ޤ
  			ѥե쥤ɬפʾפʾ⤢ޤ

  $pgp_verify_command	PGP/MIME ̾򸡾ڤޤ

  $pgp_decrypt_command	PGP/MIME ǰŹ沽줿ܥǥ沽ޤ
  			Υޥɤɬѥե쥤Ȥޤ

  $pgp_sign_command	ܥǥ PGP/MIME ǽ̾ޤ
  			ɬѥե쥤Ȥޤ

  $pgp_encrypt_sign_command Ź沽Ƚ̾ MIME ܥǥ˻ܤޤ
  			Υޥɤɬѥե쥤Ȥޤ

  $pgp_encrypt_only_command MIME ܥǥŹ沽ޤ̾Ϥޤ

  $pgp_import_command	ե뤫 PGP 򥤥ݡȤޤ

  $pgp_export_command	ե PGP 򥨥ݡȤޤϤ
  			ASCII ƤʤƤϤʤޤ

  $pgp_verify_key_command 򸡺ޤΥޥɤ
  			˥塼ǻȤޤ

  $pgp_list_secring_command ̩Τ%r ΥҥȤ˹פΤ
  			ɽޤ

  $pgp_list_pubring_command Τ%r ΥҥȤ˹פΤ
  			ɽޤ

ѥե쥤ɸϤϤޤޥɤνϤϤ٤
ɸϤɸ२顼ϤФʤƤϤʤޤ
