Source

tm / texi / tm-edit-ja.texi

Full commit
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
\input texinfo.tex
@setfilename tm-edit-ja.info
@settitle{tm-edit 7.100 $B@bL@=q!JF|K\8lHG!K(B}
@direntry
* Tm-Edit-Ja::         MIME composer for GNU Emacs ($BF|K\8lHG(B)
@end direntry
@titlepage
@title tm-edit 7.100 $B@bL@=q!JF|K\8lHG!K(B
@author $B<i2,(B $BCNI'(B <morioka@@jaist.ac.jp>
@subtitle 1996/12/25
@end titlepage
@node Top, Introduction, (dir), (dir)
@top tm-edit 7.100 $B@bL@=q!JF|K\8lHG!K(B

@ifinfo

This file documents tm-edit, a MIME composer for GNU Emacs.@refill

GNU Emacs $BMQ$N(B MIME composer $B$G$"$k(B `tm-edit' $B$K$D$$$F@bL@$7$^$9!#(B
@end ifinfo

@menu
* Introduction::                What is tm-edit?
* mime/editor-mode::            
* single-part operations::      single-part $B$KBP$9$kA`:n(B
* enclosure operation::         enclosure $B$KBP$9$kA`:n(B
* other operations of mime/editor-mode::  mime/editor-mode $B$K$*$1$k$=$NB>$NA`:n(B
* tag specification for inserted file::  $BA^F~$5$l$k(B file $B$KBP$9$k(B tag $B$N7hDj(B
* transfer level::              
* header::                      header $B$G$NHs(B ASCII $BJ8;z$N;HMQ(B
* PGP::                         
* Acknowledgments::             $B<U<-(B
* Concept Index::               $B35G0:w0z(B
* Function Index::              $B4X?t:w0z(B
* Variable Index::              $BJQ?t:w0z(B
@end menu

@node Introduction, mime/editor-mode, Top, Top
@chapter What is tm-edit?
@cindex tm-edit

@strong{tm-edit} $B$O(B GNU Emacs $B$GF0:n$9$kHFMQE*$J(B MIME composer $B$G$9!#(B
@refill

tm-edit $B$O(B GNUS $B$N:n<T$H$7$F$bM-L>$J(B $BG_ED(B $B@/?.(B
<umerin@@mse.kyutech.ac.jp> $B$5$s$,=q$+$l$?(B 
@file{mime.el} $B$r4p$K(B

@itemize @bullet
@item
RFC 1521/1522 $B2=(B
@item
Content-Disposition field (@ref{(tm-ja)Content-Disposition}) (RFC 1806) 
$B$NMxMQ(B
@item
$BF~$l;R$K$J$C$?(B multi-part message (@ref{(tm-ja)multipart})
@item
PGP (@ref{PGP})
@item
file type $B$K$*$1$k(B parameter $B$N<+F0;XDj$N6/2=(B
@end itemize

@noindent
$B$J$I$N2~NI$r9T$$$^$7$?!#(B

tm-MUA (@ref{(tm-ja)tm-MUA}) $B$G$O(B tm-edit $B$r;H$&$3$H$K$h$j!"MF0W$K(B MIME
message $B$r:n@.$G$-$^$9!#(B


@node mime/editor-mode, single-part operations, Introduction, Top
@chapter mime/editor-mode
@cindex enclosure
@cindex multi-part $B=*N;(B tag
@cindex multi-part $B3+;O(B tag
@cindex tag
@cindex mime/editor-mode

@strong{mime/editor-mode} $B$O(B MIME message $B$r:n@.$9$k$?$a$N(B minor mode $B$G(B
$B$9!#$3$N(B mode $B$G$O(B @strong{tag} $B$r;H$C$F$5$^$6$^$J<oN`$N(B data $B$rI=8=$7!"(B
$BJ#?t$NItJ,$+$i$J$k(B message (@ref{(tm-ja)multipart}) $B$rJT=8$9$k$3$H$r2DG=(B
$B$K$7$F$$$^$9!#(B@refill

tag $B$K$O(B

@itemize @bullet
@item
 single-part tag
@item
 multi-part tag
@end itemize

@noindent
$B$N#2$D$,$"$j$^$9!#(B

single-part tag $B$O(B single part $B$rI=8=$9$k$?$a$N(B tag $B$G!"(B@refill

@example
        --[[TYPE/SUBTYPE;PARAMETERS][ENCODING]
        OPTIONAL-FIELDS]
@end example

@noindent
$B$H$$$&$h$&$J7A$r$7$F$$$^$9!#(B

TYPE/SUBTYPE $B$*$h$S(B PARAMETERS $B$O(B Content-Type field
(@ref{(tm-ja)Content-Type field}) $B$N(B type/subtype $B$*$h$S(B parameters $B$rI=(B
$B$7$^$9!#(BTYPE/SUBTYPE $B$OI,?\$G$"$j!"(BPARAMETERS $B$O>JN,2D$G$9!#(B@refill

ENCODING $B$O(B Content-Transfer-Encoding field $B$rI=$7$^$9!#$3$l$b>JN,2D$G$9!#(B
@refill

OPTIONAL-FIELDS $B$O(B Content-Type, Content-Transfer-Encoding $B0J30$N(B field 
$B$r=q$/$?$a$NItJ,$G!">JN,2D$G$9!#(B@refill

multi-part tag $B$O(B multi part (@ref{(tm-ja)multipart}) $B$rI=8=$9$k$?$a$N(B 
tag $B$G!"(B@refill

@example
        --<<TYPE>>-@@@{
@end example

@noindent
$B$H$$$&7A$N(B @strong{multi-part $B3+;O(B tag} $B$H8F$P$l$k(B multi
part $B$N3+;O$r<($9(B tag $B$H(B

@example
        --@@@}-<<TYPE>>
@end example

@noindent
$B$H$$$&7A$N(B @strong{multi-part $B=*N;(B tag} $B$H8F$P$l$k(B multi
part $B$N=*N;$r<($9(B tag $B$,$"$j$^$9!#(B

$B$^$?!"(Bmulti-part $B3+;O(B tag $B$H(B multi-part $B=*N;(B tag $B$G0O$^$l$?ItJ,$r(B 
@strong{enclosure} $B$H8F$S$^$9!#(B


@node single-part operations, enclosure operation, mime/editor-mode, Top
@chapter single-part $B$KBP$9$kA`:n(B

single-part $B$r:n$k$?$a$NA`:n$K$O0J2<$N$h$&$J$b$N$,$"$j$^$9!#(B

@table @kbd
@item @key{C-c C-x C-t}
text part $B$rI=$9(B single-part tag $B$rA^F~$7$^$9!#(B

@item @key{C-c C-x C-i}
file $B$r(B MIME part $B$H$7$FE:IU$7$^$9!#A0$K(B @kbd{C-u} $B$rIU$1$?>l9g!">o$K(B 
media-type, subtype $BEy$rJ9$$$FMh$^$9!#(B(cf. @ref{tag specification for inserted file})

@item @key{C-c C-x C-e}
external part $B$rA^F~$7$^$9!#(B

@item @key{C-c C-x C-v}
@kbd{C-g} $B$,2!$5$l$k$^$GO?2;$r9T$$!"2;@<(B part $B$rA^F~$7$^$9!#!J;H(B
$BMQ$G$-$J$$>l9g$,$"$j$^$9!K(B

@item @key{C-c C-x C-y}
$B8=:_I=<(Cf$N(B (mail or news) message $B$rA^F~$7$^$9!#!J<B:]$NF0:n$O;HMQ$7(B
$B$F$$$k(B MUA $B$K0MB8$7$^$9!K(B

@item @key{C-c C-x C-m}
mail message $B$rA^F~$7$^$9!#(B

@item @key{C-c C-x C-w}, @key{C-c C-x C-s}
signature $B$rA^F~$7$^$9!#(B

@item @key{C-c C-x C-k}
PGP (@ref{PGP}) $B$N8x3+80$rA^F~$7$^$9!#(B

@item @key{C-c C-x t}
$BG$0U$N(B single-part tag $B$rA^F~$7$^$9!#(B

@end table



@node enclosure operation, other operations of mime/editor-mode, single-part operations, Top
@chapter enclosure $B$KBP$9$kA`:n(B

enclosure $B$r:n$k$?$a$NA`:n$H$7$F$O0J2<$N$h$&$J$b$N$,$"$j$^$9!#(B

@table @kbd
@item @key{C-c C-x a}
$B;XDj$7$?(B region $B$r(B multipart/alternative $B$H$7$F0O$_$^$9!#(B

@item @key{C-c C-x p}
$B;XDj$7$?(B region $B$r(B multipart/parallel $B$H$7$F0O$_$^$9!#(B

@item @key{C-c C-x m}
$B;XDj$7$?(B region $B$r(B multipart/mixed $B$H$7$F0O$_$^$9!#(B

@item @key{C-c C-x d}
$B;XDj$7$?(B region $B$r(B multipart/digest $B$H$7$F0O$_$^$9!#(B

@item @key{C-c C-x s}
$B;XDj$7$?(B region $B$KEE;R=pL>$r9T$$$^$9!#(B(cf. @ref{PGP})

@item @key{C-c C-x e}
$B;XDj$7$?(B region $B$r0E9f2=$7$^$9!#(B(cf. @ref{PGP})

@item @key{C-c C-x q}
$B;XDj$7$?(B region $BFb$N(B tag $B$rL58z$K$7!"$=$N(B tag $B$rJ8;zNs$H$7$FMxMQ$G$-$k(B
$B$h$&$K$7$^$9!#!J8=:_$NHG$G$O$&$^$/F/$+$J$$$3$H$,$"$j$^$9!#$^$?!"EE;R=p(B
$BL>$H$NJ;MQ$K4X$7$F$bIT40A4$G$9!K(B

@end table



@node other operations of mime/editor-mode, tag specification for inserted file, enclosure operation, Top
@chapter mime/editor-mode $B$K$*$1$k$=$NB>$NA`:n(B

mime/editor-mode $B$K$*$1$k$=$NB>$NA`:n$r@bL@$7$^$9!#(B

@table @kbd
@item @key{C-c C-c}
$BJT=8Cf$N(B message $B$rAw?.$7$^$9!#(B

@item @key{C-c C-x C-p}
$BJT=8Cf$N(B message $B$r(B preview $B$7$^$9!#(B
(cf. @ref{(tm-view-ja)mime/viewer-mode})

@item @key{C-c C-x C-z}
$BJT=8Cf$N(B message $B$rAw?.$9$k$3$H$J$/!"(Bmime/editor-mode $B$r=*N;$7$^$9!#(B

@item @key{C-c C-x ?}
help message $B$rI=<($7$^$9!#(B

@item @key{C-c C-x /}
$BBg$-$J(B message $B$rAw?.$9$k>l9g$K(B message/partial $B7A<0$K<+F0J,3d2DG=$H$9(B
$B$k$+$I$&$+$r7h$a$^$9!#(B

@item @key{C-c C-x 7}
transfer level (@ref{transfer level}) $B$r(B 7bit (@ref{(tm-ja)7bit}) $B$K$7$^(B
$B$9!#(B

@item @key{C-c C-x 8}
transfer level (@ref{transfer level}) $B$r(B 8bit (@ref{(tm-ja)8bit}) $B$K$7$^(B
$B$9!#(B

@item @key{C-c C-x v}
message $BA4BN$rEE;R=pL>$9$k$+$I$&$+$r7h$a$^$9!#(B(cf. @ref{PGP})

@item @key{C-c C-x h}
message $BA4BN$r0E9f2=$9$k$+$I$&$+$r7h$a$^$9!#(B(cf. @ref{PGP})

@item @key{C-c C-x ?}
help message $B$rI=<($7$^$9!#(B

@end table



@node tag specification for inserted file, transfer level, other operations of mime/editor-mode, Top
@chapter $BA^F~$5$l$k(B file $B$KBP$9$k(B tag $B$N7hDj(B

@kbd{C-c C-x C-i} (@code{mime-editor/insert-file}) $B$r<B9T$7$?;~!"A^F~$5(B
$B$l$k(B file $B$KBP$9$k(B media-type $B$d(B encoding $B$J$I$N(B tag $B$N>pJs$OJQ?t(B 
@code{mime-file-types} $B$K$h$C$F(B file $BL>$+$i?dB,$5$l$^$9!#(B@refill

$BA0$K(B @kbd{C-u} $B$rIU$1$?;~!"$*$h$S!"E,Ev$JCM$,8+IU$+$i$J$+$C$?>l9g!"(Buser 
$B$KBP$7$FCM$NF~NO$rB%$7$^$9!#!JA0$K(B @kbd{C-u} $B$rIU$1$?;~!"?dB,$5$l$?CM$,(B
$B4{DjCM$H$7$FMQ$$$i$l$^$9!K(B@refill

file $BL>$KBP$9$k4{DjCM$rJQ$($?$$>l9g$OJQ?t(B @code{mime-file-types}
$B$r@_Dj$7$F2<$5$$!#(B

@defvar mime-file-types

$BA^F~$5$l$k(B file $B$N(B file $BL>$KBP$9$k(B tag $B$N4{DjCM$rM?$($k!#(B@refill

$B$3$NJQ?t$O(B

@lisp
	(FILE_PAT TYPE SUBTYPE PARAMS ENCODING
	 DISPOSITION_TYPE DISPOSITION_PARAMS)
@end lisp


$B$H$$$&(B list $B$N(B list $B$G!"3FMWAG$O0J2<$NDL$j$G$"$k!'(B

@table @samp
@item FILE_PAT
file $BL>$rI=$9@55,I=8=(B

@item TYPE
media type

@item SUBTYPE
media subtype

@item PARAMS
Content-Type field $B$N(B parameter

@item ENCODING
Content-Transfer-Encoding

@item DISPOSITION_TYPE
disposition-type

@item DISPOSITION_PARAMS
Content-Disposition field $B$N(B parameter

@end table

@noindent
$B@_DjNc!'(B @file{*.rtf} $B$KBP$9$k(B media type $B$r(B application/rtf $B$K(B
$B$9$k>l9g(B

@lisp
(call-after-loaded
 'tm-edit
 (lambda ()
   (set-alist 'mime-file-types
	      "\\.rtf$"
	      '("application" "rtf" nil nil
		"attachment" (("filename" . file)))
	      )))
@end lisp
@end defvar



@node transfer level, header, tag specification for inserted file, Top
@chapter transfer level
@cindex transfer level

message $B$KA^F~$9$k(B data $B$O(B 7bit (@ref{(tm-ja)7bit}) $B$J$$$7(B 8bit
(@ref{(tm-ja)8bit}) $B$b$7$/$O(B binary (@ref{(tm-ja)binary}) $B$GI=8=$9$k$3$H(B
$B$,$G$-$^$9!#(B@refill

$B$h$C$F!"(B7bit $B$7$+DL$5$J$$(B MTA (@ref{(tm-ja)MTA}) $B$r7PM3$9$k>l9g!"(B7bit $B$N(B 
data $B$O$=$N$^$^$GAw$l$^$9$,!"(B8bit $B$d(B binary $B$N(B data $B$O(B 7bit $B$KJQ49$7$J$1(B
$B$l$P$J$j$^$;$s!#(B@refill

$BF1MM$K!"(B8bit $B$7$+DL$5$J$$(B MTA $B$r7PM3$9$k>l9g!"(B7bit $B$d(B 8bit $B$N(B data $B$O$=(B
$B$N$^$^$GAw$l$^$9$,!"(Bbinary $B$N(B data $B$O(B 7bit $B$+(B 8bit $B$KJQ49$7$J$1$l$P$J$j(B
$B$^$;$s!#(B@refill

@noindent
@strong{[Memo]}
@quotation
EBCDIC $B$7$+DL$5$J$$(B MTA $B$r7PM3$9$k>l9g!"(B7bit $B$N(B data $B$b(B base64 $BEy$GJQ(B
$B49$7$J$$$HAw$l$^$;$s$,!";d$O(B EBCDIC $B$N$3$H$^$G$OCN$j$^$;$s!#(B(^_^;

$BF1MM$K!"@)8fJ8;z$rDL$5$J$$(B MTA $B$N$3$H$d(B code $BJQ49$r9T$J$&(B MTA $B$b>C$($F$J(B
$B$/$J$C$FM_$7$$$G$9!#(B(^_^;@refill

binary $B$bDL$9(B MTA $B$bB8:_$9$k$s$G$7$g$&$,!":#$N$H$3$m$"$^$j0lHLE*$H$O$$$((B
$B$J$$$G$7$g$&!#(B
@end quotation

@strong{transfer level} $B$H$$$&$N$O$I$NHO0O$N(B data $B$^$GAw$l$k(B
$B$+$H$$$&$3$H$rI=$9$b$N$G$9!#(Btm-edit $B$O(B 
@code{mime-editor/transfer-level} $B$H$$$&JQ?t$r;}$C$F$*$j!"$3$l$G(B 
transfer level $B$rI=8=$7$^$9!#(B


@defvar mime-editor/transfer-level

transfer level $B$rI=$9!#(B@refill

$B$"$k(B data $B$N(B transfer level $B$,$3$NCM$r1[$($k>l9g!"(B7bit data $B$X$NJQ49$,9T(B
$B$o$l$k!#(B@refill

$B8=:_$N$H$3$m!"(B7 $B$+(B 8 $B$,M-8z$G$"$k!#4{DjCM$O(B 7 $B$G$"$k!#(B@refill

EBCDIC $B$r(B 5, ASCII printable $B$N$_$r(B 6, binary $B$r(B 9 $B$H$9$k$3$H$r7W2h$7$F(B
$B$$$k$,!"<BAu$NM=Dj$O$J$$!#(B
@end defvar



@noindent
@strong{[Memo]}
@quotation
transfer level $B$O(B message header (@ref{header}) $B$K$O4X78$7$J$$!#(BRFC 1521 
$B$O(B body $B$K$*$$$F!"(B8bit $B$N(B data $B$r;H$($k$h$&$K(B RFC 822 (@ref{(tm-ja)RFC 822}) $B$r3HD%$7$F$$$k$,!"(Bmessage header $B$G$O(B us-ascii
(@ref{(tm-ja)us-ascii}) $B$N$_$rMQ$$$k$3$H$r5a$a$F$$$k!#(B
@end quotation



@node header, PGP, transfer level, Top
@chapter header $B$G$NHs(B ASCII $BJ8;z$N;HMQ(B
@cindex encoded-word

RFC 1522 (@ref{(tm-ja)RFC 1522}) $B$G$O(B header $B$GHs(B ASCII $BJ8;z$rI=8=$9$k$?(B
$B$a$NJ}K!$rDj5A$7$F$$$^$9!#(B@refill

$B$3$l$O(B @strong{encoded-word} (@ref{(tm-ja)encoded-word}) $B$H8F$P$l$k7?<0(B
$B$G!"(BMIME charset (@ref{(tm-ja)MIME charset}) $B$r@k8@$7!"$+$D!"(B7bit
(@ref{(tm-ja)7bit}) $B$GI=8=$9$k$3$H$r2DG=$K$7$F$$$^$9!#(B


@menu
* evil setting in header::      $B$I$&$7$F$b(B encoded-word $B$r;H$$$?$/$J$$>l9g(B
* API about header::            header $B$K4X$9$k4X?t!&JQ?t(B
@end menu

@node evil setting in header, API about header, header, header
@section $B$I$&$7$F$b(B encoded-word $B$r;H$$$?$/$J$$>l9g(B

$B$H$3$m$G!"(Bheader $B$G(B encoded-word $B$rMQ$$$:$K@8$GHs(B ASCII $BJ8;zNs$rF~$l$k$N(B
$B$O4V0c$C$F$$$^$9!#$J$<$J$i!"(BInternet $B$G$O$5$^$6$^$JId9f2=J8;z=89g(B
(@ref{(tm-ja)Coded character set})$B$,;H$o$l$F$*$j!"(BMIME charset
(@ref{(tm-ja)MIME charset}) $B$rL@<(E*$K@k8@$7$J$1$l$P$=$l$i$r@53N$K6hJL$9(B
$B$k$3$H$O$G$-$J$$$+$i$G$9!#(B@refill

$BNc$($P!"(BMIME charset $B$r@k8@$7$J$1$l$P(B iso-8859-1
(@ref{(tm-ja)iso-8859-1}) $B$H(B iso-8859-2 (@ref{(tm-ja)iso-8859-2}) $B$O8+J,(B
$B$1$,IU$+$J$$$G$7$g$&!#(B@refill

$B$7$+$7$J$,$i!"$I$&$7$F$b(B encoded-word $B$r;H$$$?$/$J$$>l9g$K$O0J2<$NJQ?t(B
$B$r@_Dj$7$F$/$@$5$$!#(B


@defvar mime/field-encoding-method-alist

field $BL>$HId9f2=K!$rI=$9(B symbol $B$NBP$+$i$J$kO"A[(B list.@refill

field $BL>$OJ8;zNs!"$b$7$/$O!"G$0U$NJ8;zNs$rI=$9(B @code{t} $B$G$"$k!#(B@refill

$BId9f2=K!$O!"(B@code{nil} $B$J$i$PL5JQ49!"(B@code{mime} $B$J$i$P(Bencoded-word,
MIME charset $B$rI=$9(B symbol $B$J$i$P$=$NId9f2=J8;z=89g$X(Bencoded-word $B$rMQ$$(B
$B$:$KJQ49$9$k$3$H$rI=$9!#(B@refill

field $BL>$OJ8;zNs$+$i8!:w$5$l!";XDj$7$?J8;zNs$,8+IU$+$i$J$1$l$P(B@code{t} 
$B$rMQ$$$k!#(B@refill

$B4{DjCM$O(B

@lisp
(("X-Nsubject" . iso-2022-jp-2)
 ("Newsgroups" . nil)
 (t            . mime)
 ))
@end lisp

@noindent
$B$G$"$k!#B($A!"(BX-Nsubject field $B$O@8$N(B iso-2022-jp-2
(@ref{(tm-ja)iso-2022-jp-2}), Newsgroup $B$OL5JQ49!"$=$l0J30$N(B field $B$O(B 
encoded-word $B$KJQ49$5$l$k!#(B
@end defvar


$B$^$?!"(Bfield $BKh$G$O$J$/!"Id9f2=J8;z=89gKh$K;XDj$7$?$$>l9g$O!"JQ?t(B 
@code{mime-eword/charset-encoding-alist} $B$rMQ$$$F$/$@$5$$!#(B
(@ref{API about header})


@node API about header,  , evil setting in header, header
@section header $B$K4X$9$k4X?t!&JQ?t(B

@deffn{Command} mime/encode-message-header &optional  code-conversion

Current buffer $B$N(B message header $B$KB8:_$9$kHs(B ASCII $BJ8;z$r(Bnetwork $BI=8=$K(B
$BJQ49$7$^$9!#(B@refill

optional $B0z?t$N(B @var{code-conversion} $B$KHs(B-nil $B$,;XDj$5$l$?>l9g!"(B
encoded-word $B$K$7$J$$(B field $B$r(B@code{mime/field-encoding-method-alist} $B$K(B
$B=>$C$F!"(Bcode $BJQ49$7$^$9!#(B
@end deffn


@defun mime/encode-field string

@var{string} $B$r(B field $B$H$7$F(B encoded-word $B$KJQ49$7$^$9!#(B@refill

$BD9$$9T$O(B RFC 822 $B$K=>$C$F@^JV$5$l$^$9!#(B
@end defun


@defun mime-eword/encode-string string  &optional  column mode

@var{string} $B$r(B encoded-word $B$KJQ49$7$^$9!#(B@refill

$BD9$$9T$O(B RFC 822 $B$K=>$C$F@^JV$5$l$^$9!#(B@refill

@var{column} $B$O$3$NJ8;zNs$,2?7eL\$+$i;O$^$C$F$$$k$+$r;XDj$7$^$9!#4{DjCM(B
$B$O(B 0 $B$G$9!#(B@refill

@var{mode} $B$O$3$NJ8;zNs$,$I$&$$$&ItJ,$G;H$o$l$F$$$k$+$r<($7$^$9!#;XDj$G(B
$B$-$kCM$H$7$F$O(B @code{text}, @code{comment}, @code{phrase} $B$,$"$j$^$9!#4{(B
$BDjCM$O(B @code{phrase} $B$G$9!#(B
@end defun


@defvar mime-eword/charset-encoding-alist

MIME charset $B$rI=$9(B symbol $B$H(B nil, $B$b$7$/$O!"(B@code{"B"} $B$+(B@code{"Q"} $B$N(B
$BJ8;zNs$NBP$+$i$J$kO"A[(B list.@refill

@code{nil} $B$O$=$N(B MIME charset $B$r(B encoded-word $B$K$7$J$$$3$H$rI=$7!"(B
@code{"B"} $B$O$=$N(B MIME charset $B$r(B B $BJ}<0$N(B encoded-word $B$K$9$k$3$H$rI=$7!"(B
@code{"Q"} $B$O$=$N(B MIME charset $B$r(B Q $BJ}<0$N(B encoded-word $B$K$9$k$3$H$rI=$9!#(B
@end defvar



@node PGP, Acknowledgments, header, Top
@chapter PGP
@cindex PGP-kazu
@cindex PGP/MIME

tm-edit $B$G$O(B @strong{PGP/MIME} (@ref{(tm-ja)PGP/MIME}) (RFC 2015) $B$*$h$S(B 
@strong{PGP-kazu} (@ref{(tm-ja)PGP-kazu}) (draft-kazu-pgp-mime-00.txt) 
$B$K$h$k0E9f2=!&EE;R=pL>!&8x3+80$NA^F~5!G=$rMxMQ$9$k$3$H$,$G$-$^$9!#(B

$BC"$7!"$3$N5!G=$rMxMQ$9$k$K$O(B Mailcrypt package (@ref{(mailcrypt)}) $B$H(B 
pgp command $B$,I,MW$G$9!#(B@refill

$B$^$?!"JQ?t(B @code{mimed-editor/signing-type} $B$HJQ?t(B 
@code{mime-editor/encrypting-type} $B$K(B @code{pgp-elkins} $B$+(B 
@code{pgp-kazu} $B$rBeF~$7$F$/$@$5$$!#(B@refill

@code{pgp-elkins} $B$r;XDj$7$?>l9g(B PGP/MIME $B$,;H$o$l!"(B
@code{pgp-kazu} $B$r;XDj$7$?>l9g(B PGP-kazu $B$,;H$o$l$^$9!#(B


@defvar mimed-editor/signing-type

PGP $B$G$NEE;R=qL>$N7A<0$r;XDj$7$^$9!#(B@refill

@code{pgp-elkins} $B$+(B @code{pgp-kazu} $B$r;XDj$7$F$/$@$5$$!#(B@refill

$B4{DjCM$O(B @code{nil} $B$G$9!#(B
@end defvar


@defvar mime-editor/encrypting-type

PGP $B$G$N0E9f2=$N7A<0$r;XDj$7$^$9!#(B@refill

@code{pgp-elkins} $B$+(B @code{pgp-kazu} $B$r;XDj$7$F$/$@$5$$!#(B@refill

$B4{DjCM$O(B @code{nil} $B$G$9!#(B
@end defvar



@node Acknowledgments, Concept Index, PGP, Top
@chapter $B<U<-(B

$B:G=i$K!"(Btm-edit $B$NA0?H$H$J$C$?(B @file{mime.el} $B$r=q$-!"$=$NG[I[$H2~B$$r$*(B
$B5v$72<$5$C$?!"G_ED@/?.$5$s$K46<U$7$^$9!#(Btm-edit $B$N(B user interface $B$N4pK\(B
$BE*$J@_7W$OG_ED$5$s$N<j$K$h$k$b$N$G!"$H$F$bNI$$@_7W$G$"$C$?$H;W$$$^$9!#(B
@refill

$B<!$K!"(Bbeta test $B$K6(NO$7$F2<$5$C$?F|K\8lHG!"1Q8lHGAPJ}$N(B tm mailing
list $B$N(B member $B$K46<U$7$^$9!#(B


@node Concept Index, Function Index, Acknowledgments, Top
@chapter $B35G0:w0z(B

@printindex cp

@node Function Index, Variable Index, Concept Index, Top
@chapter $B4X?t:w0z(B

@printindex fn

@node Variable Index,  , Function Index, Top
@chapter $BJQ?t:w0z(B

@printindex vr
@bye