@node Content-Transfer-Encoding, encoded-word, Content-Disposition, Top
@chapter Encoding Method
-@cindex Content-Transfer-Encoding \e$(BMs\e(B
+@cindex Content-Transfer-Encoding field
-@strong{Content-Transfer-Encoding \e$(BMs\e(B} \e$(B$O\e(B entity \e$(B$NId9f2=K!$r5-=R$9$k$?$a\e(B
-\e$(B$N$b$N$G$9!#\e(B@refill
+@strong{Content-Transfer-Encoding field} is a header field to indicate
+body encoding of a entity.@refill
-FLIM \e$(B$G$O\e(B Content-Transfer-Encoding \e$(BMs$r9=J82r@O$9$k4X?t$rDs6!$7$^$9!#$3\e(B
-\e$(B$l$i$N4X?t$O\e(B Content-Transfer-Encoding \e$(BMs$N>pJs$OJ8;zNs$GI=8=$7$^$9!#\e(B
-@refill
+FLIM provides parser functions for Content-Transfer-Encoding field.
+They represent information of Content-Transfer-Encoding field as
+string.@refill
-\e$(B$^$?!"\e(BContent-Transfer-Encoding \e$(B$K4p$E$$$FId9f2=!&I|9f2=$r9T$&4X?t$bDs\e(B
-\e$(B6!$5$l$^$9!#\e(B
+In addition, FLIM provides encoder/decoder functions by
+Content-Transfer-Encoding.
@menu
@defun mime-parse-Content-Transfer-Encoding string
-@var{string} \e$(B$r\e(B content-transfer-encoding \e$(B$H$7$F2r@O$7$?7k2L$rJV$9!#\e(B
+@var{string} \e$B$r\e(B content-transfer-encoding \e$B$H$7$F2r@O$7$?7k2L$rJV$9!#\e(B
@end defun
@defun mime-read-Content-Transfer-Encoding &optional default-encoding
-\e$(B8=:_$N\e(B buffer \e$(B$N\e(B Content-Transfer-Encoding \e$(BMs$rFI$_<h$j!"2r@O$7$?7k2L$r\e(B
-\e$(BJV$9!#\e(B@refill
+\e$B8=:_$N\e(B buffer \e$B$N\e(B Content-Transfer-Encoding \e$BMs$rFI$_<h$j!"2r@O$7$?7k2L$r\e(B
+\e$BJV$9!#\e(B@refill
-Content-Transfer-Encoding \e$(BMs$,B8:_$7$J$$>l9g$O\e(B@var{default-encoding} \e$(B$r\e(B
-\e$(BJV$9!#\e(B
+Content-Transfer-Encoding \e$BMs$,B8:_$7$J$$>l9g$O\e(B@var{default-encoding} \e$B$r\e(B
+\e$BJV$9!#\e(B
@end defun
@defun mime-decode-string string encoding
-@var{string} \e$(B$r\e(B @var{encoding} \e$(B$H$7$FI|9f$7$?7k2L$rJV$7$^$9!#\e(B
+@var{string} \e$B$r\e(B @var{encoding} \e$B$H$7$FI|9f$7$?7k2L$rJV$7$^$9!#\e(B
@end defun
@cindex Standards Track
@cindex RFC 2047
-encoded-word \e$(B$O\e(B header \e$(B$GHs\e(B ASCII (@ref{ASCII}) \e$(BJ8;z$rI=8=$9$k$?$a$N7A<0\e(B
-\e$(B$G!"\e(B@strong{RFC 2047} \e$(B$GDj5A$5$l$F$$$^$9!#\e(B@refill
+encoded-word \e$B$O\e(B header \e$B$GHs\e(B ASCII (@ref{ASCII}) \e$BJ8;z$rI=8=$9$k$?$a$N7A<0\e(B
+\e$B$G!"\e(B@strong{RFC 2047} \e$B$GDj5A$5$l$F$$$^$9!#\e(B@refill
@noindent
Track (obsolete RFC 1521,1522,1590).
@end quotation
-\e$(B$^$?!"9T57$N0-$$$3$H$@$H8@$($^$9$,!"\e(Bencoded-word \e$(B$rMQ$$$:$KHs\e(B ASCII
-(@ref{ASCII}) \e$(BJ8;z$r\e(B header \e$(B$KF~$l$?5-;v$bB8:_$7$^$9!#\e(B@refill
+\e$B$^$?!"9T57$N0-$$$3$H$@$H8@$($^$9$,!"\e(Bencoded-word \e$B$rMQ$$$:$KHs\e(B ASCII
+(@ref{ASCII}) \e$BJ8;z$r\e(B header \e$B$KF~$l$?5-;v$bB8:_$7$^$9!#\e(B@refill
-FLIM \e$(B$O$3$l$i$rId9f2=!&I|9f2=$9$k5!G=$rDs6!$7$^$9!#\e(B
+FLIM \e$B$O$3$l$i$rId9f2=!&I|9f2=$9$k5!G=$rDs6!$7$^$9!#\e(B
@menu
@deffn{group} mime
-MIME \e$(B4XO"5!G=$K4X$9$k\e(B group.@refill
+MIME \e$B4XO"5!G=$K4X$9$k\e(B group.@refill
-@code{mail} \e$(B$H\e(B @code{news} \e$(B$KB0$9$k!#\e(B
+@code{mail} \e$B$H\e(B @code{news} \e$B$KB0$9$k!#\e(B
@end deffn
@defvar default-mime-charset
-\e$(BE,@Z$J\e(B MIME charset (@ref{MIME charset}) \e$(B$,8+$D$+$i$J$+$C$?>l9g$KMQ$$$i\e(B
-\e$(B$l$k\e(BMIME charset.@refill
+\e$BE,@Z$J\e(B MIME charset (@ref{MIME charset}) \e$B$,8+$D$+$i$J$+$C$?>l9g$KMQ$$$i\e(B
+\e$B$l$k\e(BMIME charset.@refill
-\e$(BK\Mh$O\e(B APEL \e$(B$NJQ?t$G$"$k!#\e(B
+\e$BK\Mh$O\e(B APEL \e$B$NJQ?t$G$"$k!#\e(B
@end defvar
@defvar mime-temp-directory
-MIME \e$(B5!G=$K4X$9$k<BAu$,0l;~E*$K;HMQ$9$k\e(B file \e$(B$r:n@.$9$k\e(B
+MIME \e$B5!G=$K4X$9$k<BAu$,0l;~E*$K;HMQ$9$k\e(B file \e$B$r:n@.$9$k\e(B
directory.@refill
-\e$(B4D6-JQ?t\e(B @code{MIME_TMP_DIR}, @code{TM_TMP_DIR}, @code{TMPDIR},
-@code{TMP} \e$(B$b$7$/$O\e(B @code{TEMP} \e$(B$,@_Dj$5$l$F$$$?>l9g!"$=$l$r=i4|CM$H$7$F\e(B
-\e$(BMQ$$$k!#2?$b@_Dj$5$l$F$$$J$$>l9g!"\e(B@code{"/tmp/"} \e$(B$rMQ$$$k!#\e(B
+\e$B4D6-JQ?t\e(B @code{MIME_TMP_DIR}, @code{TM_TMP_DIR}, @code{TMPDIR},
+@code{TMP} \e$B$b$7$/$O\e(B @code{TEMP} \e$B$,@_Dj$5$l$F$$$?>l9g!"$=$l$r=i4|CM$H$7$F\e(B
+\e$BMQ$$$k!#2?$b@_Dj$5$l$F$$$J$$>l9g!"\e(B@code{"/tmp/"} \e$B$rMQ$$$k!#\e(B
@end defvar
@node CVS, History, Bug report, Appendix
@section CVS based development
-FLIM \e$(B$N\e(B file \e$(B$O\e(B CVS \e$(B$r;H$C$F4IM}$5$l$F$$$^$9!#$3$N$?$a!"0J2<$NJ}K!$G:G\e(B
-\e$(B?7$N\e(B FLIM \e$(B$rF~<j$9$k$3$H$,$G$-$^$9!'\e(B
+FLIM \e$B$N\e(B file \e$B$O\e(B CVS \e$B$r;H$C$F4IM}$5$l$F$$$^$9!#$3$N$?$a!"0J2<$NJ}K!$G:G\e(B
+\e$B?7$N\e(B FLIM \e$B$rF~<j$9$k$3$H$,$G$-$^$9!'\e(B
@example
(0) cvs login
@end example
-CVS \e$(B$rMQ$$$?3+H/$K;22C$7$?$$J}$O\e(B
+CVS \e$B$rMQ$$$?3+H/$K;22C$7$?$$J}$O\e(B
@itemize @bullet
@item
@end itemize
@noindent
-\e$(B$^$G!"\e(Baccount \e$(BL>$H\e(B UNIX \e$(B$N\e(B passwd \e$(B$HF1$87A<0$N\e(B crypt \e$(B2=$5$l$?\e(B password
-\e$(B$r1h$($F8fO"Mm$/$@$5$$!#\e(B
+\e$B$^$G!"\e(Baccount \e$BL>$H\e(B UNIX \e$B$N\e(B passwd \e$B$HF1$87A<0$N\e(B crypt \e$B2=$5$l$?\e(B password
+\e$B$r1h$($F8fO"Mm$/$@$5$$!#\e(B
@node History, , CVS, Appendix
@section History of FLIM
-FLIM \e$(B$N\e(B code \e$(B$N:G8E$NItJ,$O\e(B \e$(B1]JB\e(B \e$(B;LCR\e(B \e$(B;a$,=q$$$?\e(B @file{mime.el}\e$(B$K5/8;$7\e(B
-\e$(B$^$9!#$3$N>.$5$J\e(B program \e$(B$O\e(B Nemacs \e$(B$GF0:n$9$k\e(B iso-2022-jp \e$(B$N\e(B B-encoding
-\e$(B@lMQ$N\e(B encoded-word \e$(B$NI|9f2=%W%m%0%i%`$G$7$?!#\e(B@refill
-
-\e$(B$=$N8e!"<i2,\e(B \e$(BCNI'\e(B \e$(B$O\e(B @file{mime.el} \e$(B$r85$K\e(B@file{tiny-mime.el} \e$(B$H$$$&%W%m\e(B
-\e$(B%0%i%`$r=q$-$^$9!#$3$l$O!"\e(BNemacs \e$(B$H\e(B Mule \e$(B$GF0:n$9$k\e(B encoded-word \e$(B$NId9f\e(B
-\e$(B2=!&I|9f2=%W%m%0%i%`$G$7$?!#\e(B@file{tiny-mime.el} \e$(B$O\e(B B-encoding \e$(B$@$1$G$J$/\e(B
-Q-encoding \e$(B$b\e(Bsupport \e$(B$7!"$^$?!"\e(BMULE \e$(B$G07$&$3$H$,$G$-$k$5$^$6$^$J\e(B MIME
-charset (@ref{MIME charset}) \e$(B$rF1;~$K;H$&$3$H$,$G$-$^$7$?!#$3$N;~!"\e(B
-Nemacs \e$(B$H\e(B Mule \e$(B$NAPJ}$r\e(B support \e$(B$9$k$?$a$KMQ$$$i$l$?%F%/%K%C%/$O8e$K\e(B emu
-package \e$(B$K$^$H$a$i$l$^$9!#\e(B@refill
-
-\e$(B$3$N:"!"<i2,\e(B \e$(BCNI'\e(B \e$(B$O\e(B @file{tiny-mime.el} \e$(B$r$5$^$6$^$J\e(B MUA \e$(B$G;H$&$?$a$N@_\e(B
-\e$(BDj=8$bG[I[$7$F$$$^$7$?$,!"$=$l$i$O8e$K\e(B@file{tiny-mime.el} \e$(B$H$H$b$K#1$D$N\e(B
-package \e$(B$K$^$H$a$i$l!"\e(Btm \e$(B$H$$$&L>A0$GG[I[$5$l$^$9!#\e(B@refill
-
-\e$(B<i2,\e(B \e$(BCNI'\e(B \e$(B$O$d$,$F!"\e(BMIME message \e$(B$r1\Mw$9$k$?$a$N%W%m%0%i%`$G$"$k\e(B
-@file{tm-body.el} \e$(B$r=q$-$^$9!#$3$l$O!"$9$0$K\e(B@file{tm-view.el} \e$(B$H$$$&L>A0\e(B
-\e$(B$KJQ$o$j$^$7$?$,!"$d$,$F!"$3$l$,\e(B@file{tiny-mime.el} \e$(B$KBe$o$C$F!"\e(Btm \e$(B$NCf\e(B
-\e$(B3K$H$J$j$^$9!#\e(B@refill
-
-@file{tm-view.el} \e$(B$OEvA3!"\e(BContent-Transfer-Encoding \e$(B$r07$&I,MW$,$"$j$^$9!#\e(B
-\e$(B$3$NL\E*$N$?$a$K!"\e(BMEL \e$(B$,@0Hw$5$l$O$8$a$^$7$?!#\e(BBase64 \e$(B$K4X$7$F$O\e(B
-@file{tiny-mime.el} \e$(B$N\e(B code \e$(B$,0\$5$l!"$^$?!"?7$?$K\e(BQuoted-Printable \e$(B$N\e(B
-code \e$(B$,DI2C$5$l$^$7$?!#$3$l$i$,\e(B@file{mel-b.el} \e$(B$H\e(B @file{mel-q.el} \e$(B$K$J$j\e(B
-\e$(B$^$7$?!#\e(B@refill
-
-\e$(B$^$?!"8e$K!"<i2,\e(B \e$(BCNI'\e(B \e$(B$K$h$C$F\e(B uuencode \e$(BMQ$N\e(B @file{mel-u.el} \e$(B$,DI2C$5$l!"\e(B
-\e$(B$=$N8e$K!">.NS\e(B \e$(B=$J?\e(B \e$(B;a$K$h$C$F\e(B x-gzip64 \e$(BMQ$N\e(B@file{mel-g.el} \e$(B$,DI2C$5$l$^\e(B
-\e$(B$7$?!#\e(B@refill
-
-tm \e$(B$G$O8e$K!"<i2,\e(B \e$(BCNI'\e(B \e$(B$K$h$C$F\e(B @file{tiny-mime.el} \e$(B$N:F<BAu$,9T$o$l!"$3\e(B
-\e$(B$N2aDx$G!"\e(BSTD 11 \e$(B$N\e(B parser \e$(B$,=q$+$l$^$7$?!#$3$l$O!"8=:_$N\e(B
-@file{std11.el} \e$(B$KEv$?$j$^$9!#$^$?!"$3$N2aDx$G\e(B @file{tiny-mime.el} \e$(B$OI|\e(B
-\e$(B9f2=$r9T$&\e(B @file{tm-ew-d.el} \e$(B$HId9f2=$r9T$&\e(B @file{tm-ew-e.el} \e$(B$KJ,$1$i$l\e(B
-\e$(B$^$7$?!#$3$NN><T$,8=:_$N\e(B @file{eword-decode.el} \e$(B$H\e(B
-@file{eword-encode.el} \e$(B$N@hAD$KEv$?$j$^$9!#\e(B@refill
-
-\e$(B8e$K!"<i2,\e(B \e$(BCNI'\e(B \e$(B$i$K$h$C$F\e(B tm \e$(B$NA4LL=q$-49$(:n6H$,9T$o$l!"$3$N2aDx$G!"\e(Btm
-\e$(B$O\e(B APEL, MEL, SEMI, EMH, RMAIL-MIME, Gnus-MIME \e$(B$J$I$KJ,$1$i$l$^$7$?!#$3\e(B
-\e$(B$N$&$A$N\e(B MEL \e$(B$,\e(B FLIM \e$(B$ND>@\$N@hAD$KEv$?$j$^$9!#\e(B@refill
-
-\e$(B8e$K!"\e(BAPEL \e$(B$+$i\e(B @file{std11.el} \e$(B$,0\$5$l!"$^$?!"\e(B@file{mailcap.el},
-@file{eword-decode.el} \e$(B$*$h$S\e(B @file{eword-encode.el} \e$(B$,\e(B SEMI \e$(B$+$i0\$5$l!"\e(B
-package \e$(B$NL>A0$,\e(B FLIM\e$(B$H$J$j$^$9!#\e(B@refill
-
-\e$(B$3$ND>A0$+$iEDCf\e(B \e$(BE/\e(B \e$(B;a$,$h$j\e(B RFC \e$(B$KCi<B$J<BAu$r=q$-;O$a!"$3$l$O!"8=:_!"\e(B
-FLIM \e$(B$N;^$G$"$k\e(B ``FLIM-FLAM'' \e$(B$H$J$C$F$$$^$9!#\e(B
+FLIM \e$B$N\e(B code \e$B$N:G8E$NItJ,$O\e(B \e$B1]JB\e(B \e$B;LCR\e(B \e$B;a$,=q$$$?\e(B @file{mime.el}\e$B$K5/8;$7\e(B
+\e$B$^$9!#$3$N>.$5$J\e(B program \e$B$O\e(B Nemacs \e$B$GF0:n$9$k\e(B iso-2022-jp \e$B$N\e(B B-encoding
+\e$B@lMQ$N\e(B encoded-word \e$B$NI|9f2=%W%m%0%i%`$G$7$?!#\e(B@refill
+
+\e$B$=$N8e!"<i2,\e(B \e$BCNI'\e(B \e$B$O\e(B @file{mime.el} \e$B$r85$K\e(B@file{tiny-mime.el} \e$B$H$$$&%W%m\e(B
+\e$B%0%i%`$r=q$-$^$9!#$3$l$O!"\e(BNemacs \e$B$H\e(B Mule \e$B$GF0:n$9$k\e(B encoded-word \e$B$NId9f\e(B
+\e$B2=!&I|9f2=%W%m%0%i%`$G$7$?!#\e(B@file{tiny-mime.el} \e$B$O\e(B B-encoding \e$B$@$1$G$J$/\e(B
+Q-encoding \e$B$b\e(Bsupport \e$B$7!"$^$?!"\e(BMULE \e$B$G07$&$3$H$,$G$-$k$5$^$6$^$J\e(B MIME
+charset (@ref{MIME charset}) \e$B$rF1;~$K;H$&$3$H$,$G$-$^$7$?!#$3$N;~!"\e(B
+Nemacs \e$B$H\e(B Mule \e$B$NAPJ}$r\e(B support \e$B$9$k$?$a$KMQ$$$i$l$?%F%/%K%C%/$O8e$K\e(B emu
+package \e$B$K$^$H$a$i$l$^$9!#\e(B@refill
+
+\e$B$3$N:"!"<i2,\e(B \e$BCNI'\e(B \e$B$O\e(B @file{tiny-mime.el} \e$B$r$5$^$6$^$J\e(B MUA \e$B$G;H$&$?$a$N@_\e(B
+\e$BDj=8$bG[I[$7$F$$$^$7$?$,!"$=$l$i$O8e$K\e(B@file{tiny-mime.el} \e$B$H$H$b$K#1$D$N\e(B
+package \e$B$K$^$H$a$i$l!"\e(Btm \e$B$H$$$&L>A0$GG[I[$5$l$^$9!#\e(B@refill
+
+\e$B<i2,\e(B \e$BCNI'\e(B \e$B$O$d$,$F!"\e(BMIME message \e$B$r1\Mw$9$k$?$a$N%W%m%0%i%`$G$"$k\e(B
+@file{tm-body.el} \e$B$r=q$-$^$9!#$3$l$O!"$9$0$K\e(B@file{tm-view.el} \e$B$H$$$&L>A0\e(B
+\e$B$KJQ$o$j$^$7$?$,!"$d$,$F!"$3$l$,\e(B@file{tiny-mime.el} \e$B$KBe$o$C$F!"\e(Btm \e$B$NCf\e(B
+\e$B3K$H$J$j$^$9!#\e(B@refill
+
+@file{tm-view.el} \e$B$OEvA3!"\e(BContent-Transfer-Encoding \e$B$r07$&I,MW$,$"$j$^$9!#\e(B
+\e$B$3$NL\E*$N$?$a$K!"\e(BMEL \e$B$,@0Hw$5$l$O$8$a$^$7$?!#\e(BBase64 \e$B$K4X$7$F$O\e(B
+@file{tiny-mime.el} \e$B$N\e(B code \e$B$,0\$5$l!"$^$?!"?7$?$K\e(BQuoted-Printable \e$B$N\e(B
+code \e$B$,DI2C$5$l$^$7$?!#$3$l$i$,\e(B@file{mel-b.el} \e$B$H\e(B @file{mel-q.el} \e$B$K$J$j\e(B
+\e$B$^$7$?!#\e(B@refill
+
+\e$B$^$?!"8e$K!"<i2,\e(B \e$BCNI'\e(B \e$B$K$h$C$F\e(B uuencode \e$BMQ$N\e(B @file{mel-u.el} \e$B$,DI2C$5$l!"\e(B
+\e$B$=$N8e$K!">.NS\e(B \e$B=$J?\e(B \e$B;a$K$h$C$F\e(B x-gzip64 \e$BMQ$N\e(B@file{mel-g.el} \e$B$,DI2C$5$l$^\e(B
+\e$B$7$?!#\e(B@refill
+
+tm \e$B$G$O8e$K!"<i2,\e(B \e$BCNI'\e(B \e$B$K$h$C$F\e(B @file{tiny-mime.el} \e$B$N:F<BAu$,9T$o$l!"$3\e(B
+\e$B$N2aDx$G!"\e(BSTD 11 \e$B$N\e(B parser \e$B$,=q$+$l$^$7$?!#$3$l$O!"8=:_$N\e(B
+@file{std11.el} \e$B$KEv$?$j$^$9!#$^$?!"$3$N2aDx$G\e(B @file{tiny-mime.el} \e$B$OI|\e(B
+\e$B9f2=$r9T$&\e(B @file{tm-ew-d.el} \e$B$HId9f2=$r9T$&\e(B @file{tm-ew-e.el} \e$B$KJ,$1$i$l\e(B
+\e$B$^$7$?!#$3$NN><T$,8=:_$N\e(B @file{eword-decode.el} \e$B$H\e(B
+@file{eword-encode.el} \e$B$N@hAD$KEv$?$j$^$9!#\e(B@refill
+
+\e$B8e$K!"<i2,\e(B \e$BCNI'\e(B \e$B$i$K$h$C$F\e(B tm \e$B$NA4LL=q$-49$(:n6H$,9T$o$l!"$3$N2aDx$G!"\e(Btm
+\e$B$O\e(B APEL, MEL, SEMI, EMH, RMAIL-MIME, Gnus-MIME \e$B$J$I$KJ,$1$i$l$^$7$?!#$3\e(B
+\e$B$N$&$A$N\e(B MEL \e$B$,\e(B FLIM \e$B$ND>@\$N@hAD$KEv$?$j$^$9!#\e(B@refill
+
+\e$B8e$K!"\e(BAPEL \e$B$+$i\e(B @file{std11.el} \e$B$,0\$5$l!"$^$?!"\e(B@file{mailcap.el},
+@file{eword-decode.el} \e$B$*$h$S\e(B @file{eword-encode.el} \e$B$,\e(B SEMI \e$B$+$i0\$5$l!"\e(B
+package \e$B$NL>A0$,\e(B FLIM\e$B$H$J$j$^$9!#\e(B@refill
+
+\e$B$3$ND>A0$+$iEDCf\e(B \e$BE/\e(B \e$B;a$,$h$j\e(B RFC \e$B$KCi<B$J<BAu$r=q$-;O$a!"$3$l$O!"8=:_!"\e(B
+FLIM \e$B$N;^$G$"$k\e(B ``FLIM-FLAM'' \e$B$H$J$C$F$$$^$9!#\e(B
@node Concept Index, Function Index, Appendix, Top