1 |
<?xml version="1.0" encoding="iso-2022-jp"?> |
<?xml version="1.0" encoding="iso-2022-jp"?> |
2 |
|
<?xml-stylesheet href="/s/simpledoc.css" type="text/css" ?> |
3 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" |
4 |
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
5 |
<html xml:lang="ja" xmlns="http://www.w3.org/1999/xhtml"> |
<html xml:lang="ja" xmlns="http://www.w3.org/1999/xhtml"> |
6 |
<head> |
<head> |
7 |
<title xml:lang="en">Message::* Perl modules</title> |
<title xml:lang="en">Message::* Perl modules</title> |
8 |
<link rel="index" href="./" /> |
<link rel="index" href="./" /> |
9 |
<?xml-stylesheet href="/s/simpledoc"?> |
<link rel="stylesheet" href="/s/simpledoc.css" type="text/css" /> |
|
<link rel="stylesheet" href="/s/simpledoc" /> |
|
10 |
<link rev="made" href="mailto:w@suika.fam.cx" /> |
<link rev="made" href="mailto:w@suika.fam.cx" /> |
11 |
<link rel="copyright" href="/c/pd" title="Public Domain." /> |
<link rel="copyright" href="/c/pd" title="Public Domain." /> |
12 |
<meta name="author" content="$B<cMU(B" /> |
<meta name="author" content="$B<cMU(B" /> |
13 |
<meta name="keywords" content="Perl, module, pm, Message, RFC 822, RFC 2822, RFC 1036, son-of-RFC 1036, MIME, Usefor, HTTP, CGI, header, field" /> |
<meta name="keywords" content="Perl, module, pm, Message, RFC 822, RFC 2822, RFC 1036, son-of-RFC1036, MIME, Usefor, HTTP, CGI, header, field" /> |
14 |
</head> |
</head> |
15 |
<body> |
<body> |
16 |
<h1>Message::* Perl modules</h1> |
<h1>Message::* Perl modules</h1> |
18 |
<h2>$B$O$8$a$N$O$8$a$K(B</h2> |
<h2>$B$O$8$a$N$O$8$a$K(B</h2> |
19 |
|
|
20 |
<p>$B$?$H$($P(B Perl $B$G=q$+$l$?(B CGI script, $B$=$l$b7G<(HD$J$s$+$K$O!"(B |
<p>$B$?$H$($P(B Perl $B$G=q$+$l$?(B CGI script, $B$=$l$b7G<(HD$J$s$+$K$O!"(B |
21 |
$B$3$s$J$/$@$i$J$$(B code $B$,:\$C$F$$$?$j$7$^$9!#(B</p> |
$B$3$s$J$_$C$H$b$J$$(B code $B$,:\$C$F$$$?$j$7$^$9!#(B</p> |
22 |
|
|
23 |
<pre class="application-x-perl"> |
<pre class="application-x-perl"> |
24 |
jcode'convert(*from, "jis"); |
jcode'convert(*from, "jis"); |
49 |
my $msg = new Message::Entity; |
my $msg = new Message::Entity; |
50 |
my $hdr = $msg->header; |
my $hdr = $msg->header; |
51 |
$hdr->add ('From')->add ('me@bar.example'); |
$hdr->add ('From')->add ('me@bar.example'); |
52 |
$hdr->add ('To')->add ('foo@bar.example', display_name => 'Mr. foo'); |
$hdr->add ('To')->add (['foo@bar.example', display_name => 'Mr. foo']); |
53 |
$hdr->add ('Subject' => $subject); |
$hdr->add (Subject => $subject); |
54 |
$msg->body ($body); |
$msg->body ($body); |
55 |
|
|
56 |
# $smtp->send $B$O(B SMTP $B$GAw?.$9$k(B method $B$H2>Dj!#(B |
# $smtp->send $B$O(B SMTP $B$GAw?.$9$k(B method $B$H2>Dj!#(B |
60 |
<p><a href="http://www.cpan.org/" xml:lang="en">CPAN</a> $B$rC5$9$H!"(B |
<p><a href="http://www.cpan.org/" xml:lang="en">CPAN</a> $B$rC5$9$H!"(B |
61 |
$B$3$l$K;w$?$h$&$J$3$H$,$G$-$=$&$J%b%8%e!<%k$O$"$k$h$&$G$9$,!"(B |
$B$3$l$K;w$?$h$&$J$3$H$,$G$-$=$&$J%b%8%e!<%k$O$"$k$h$&$G$9$,!"(B |
62 |
$B<B:]$K;H$C$F$_$k$H!"M?$($kCM$K$h$C$F$O(B <a href="urn:ietf:rfc:822">RFC 822</a>/<a href="urn:ietf:rfc:2822">2822</a> $B$K0cH?$9$k(B |
$B<B:]$K;H$C$F$_$k$H!"M?$($kCM$K$h$C$F$O(B <a href="urn:ietf:rfc:822">RFC 822</a>/<a href="urn:ietf:rfc:2822">2822</a> $B$K0cH?$9$k(B |
63 |
$B7k2L$r=PNO$9$k$J$I$NITK~$,$"$j$^$9!#(B ($BNc$($P:#$NNc$G(B |
$B7k2L$r=PNO$9$k$H$+!"$=$b$=$b$=$l0JA0$K!"(B |
64 |
<code xml:lang="en">To:</code> $BNN0h$K;H$C$F$$$k(B |
<code>$hdr->addr ('Foo Bar <foo@bar.example>')</code> |
65 |
<code xml:lang="en">display_name</code> $B$G!V(B.$B!W$,4^$^$l$^$9$,!"(B |
$B$N$h$&$K%a%C%;!<%87A<0$r%b%8%e!<%kFb$K1#F?$7$-$l$F$$$J$$$H$+!"Hs(B |
66 |
RFC 2822 $BE*$K$O?7$7$$%a%C%;!<%8$G$O8_49@-$N$?$a(B |
ASCII $BJ8;z$r9MN8$7$F$$$J$$$H$+$NITK~$,$"$j$^$9!#(B</p> |
67 |
<code xml:lang="en" class="bnf rfc2822">quoted-string</code> |
|
68 |
$B$K$9$kI,MW$,$"$j$^$9!#$7$+$7$=$N$^$^=PNO$5$l$^$9!#(B)</p> |
<p class="note">($B<BAuJ}?K$H$7$F$OIT@5$JCM$O%b%8%e!<%k$KEO$9A0$KCF$/$Y$-$H$$$&9M$(J}$b$"$k$G$7$g$&$1$I!"0lHLE*$JMxMQ$K:]$7$F$O8-$$@_7W$@$H$O;W$($^$;$s!#(B)</p> |
|
|
|
|
<p class="note">$B;29M(B: $B!V(B.$B!W$N>l9g$O(B RFC 2822 $BE*$K$O@5$7$/2r<a(B |
|
|
$B$5$l$J$1$l$P$J$j$^$;$s$,(B ($B=PNO$O$9$Y$-$G$J$$(B)$B!"(B |
|
|
$B$3$l0J30$NJ8;z!"Nc$($P@)8fJ8;z(B <code class="character">ESCAPE</code> $B$G$bF1$8$h$&$K$J$j$^$9!#(B |
|
|
$B$3$A$i$O40A4$K4V0c$$$G$9!#(B</p> |
|
|
<p class="note">$B;29M(B: $B<BAuJ}?K$H$7$F$OIT@5$JCM$O%b%8%e!<%k$K(B |
|
|
$BEO$9A0$KCF$/$Y$-$H$$$&9M$(J}$b$"$k$G$7$g$&!#(B |
|
|
$B$G$b$=$s$J$N$OITJX$G$9!#(B</p> |
|
69 |
|
|
70 |
<p>$B$H$$$&$3$H$G!"$O$8$a$O4{B8$N%b%8%e!<%k$N(B wrapper ($B$"$k$$$OJd40(B) |
<p>$B$H$$$&$3$H$G!"$O$8$a$O4{B8$N%b%8%e!<%k$N(B wrapper ($B$"$k$$$OJd40(B) |
71 |
$B$r=q$/$D$b$j$G$7$?$,!"$J$s$@$+$4$A$c$4$A$c$7$F$$$F!"(B |
$B$r=q$/$D$b$j$G$7$?$,!"$J$s$@$+$4$A$c$4$A$c$7$F$$$F!"(B |
74 |
<h2>$BFC?'(B ($B$H$$$&Dx$N$b$N$G$b$J$$!#(B)</h2> |
<h2>$BFC?'(B ($B$H$$$&Dx$N$b$N$G$b$J$$!#(B)</h2> |
75 |
|
|
76 |
<ol> |
<ol> |
77 |
<li>$B7k9=(B($BFf(B)$B%*%V%8%'%/%H;X8~$G$9!#(B</li> |
<li>$B7k9=%*%V%8%'%/%H;X8~$G$9!#(B</li> |
78 |
<li>RFC 822/2822 $B$N(B <code class="bnf rfc2822">group</code> $B$r2r<a=PMh$^$9!#(B</li> |
<li>RFC 822/2822 $B$N(B <code class="bnf rfc2822">group</code> $B$r2r<a=PMh$^$9!#(B</li> |
79 |
<li><a href="urn:ietf:id:draft-ietf-usefor-msg-id-alt-00">draft-ietf-usefor-msg-id-alt-00</a> $B$K4p$E$$$?Aw?.%"%I%l%9$J$I$K$h$k(B <code class="rfc2822">Message-ID</code> $B$r@8@.=PMh$^$9!#(B</li> |
<li><a href="urn:ietf:id:draft-ietf-usefor-msg-id-alt-00">draft-ietf-usefor-msg-id-alt-00</a> $B$K4p$E$$$?Aw?.%"%I%l%9$J$I$K$h$k(B <code class="rfc2822">Message-ID</code> $B$r@8@.=PMh$^$9!#(B</li> |
80 |
<li>$BJ8;z%3!<%IFHN)(B (CSI) $B$G$9!#(B ($BC"$7(B RFC 822 $B$G$"$kET9g>e(B($BFf(B)$B!"(B |
<li>$BJ8;z%3!<%IFHN)(B (CSI) $B$G$9!#(B ($BC"$7(B RFC 822 $B$G$"$kET9g>e(B($BFf(B)$B!"(B |
81 |
ASCII $B8_49$G$"$kI,MW$O$"$j$^$9!#(B EBCDIC $B$H$+$OL5M}$G$9(B:-<)</li> |
ASCII $B8_49$G$"$kI,MW$O$"$j$^$9!#(B EBCDIC $B$H$+$OL5M}$G$9(B:-< |
82 |
|
($B$H$$$&$N$O%a%C%;!<%89=B$$NItJ,$N$3$H$G$9!#(B |
83 |
|
MIME $B$r;H$C$F(B EBCDIC $B$J$I$r%a%C%;!<%8K\J8$KF~$l$k$3$H$O2DG=$G$9!#(B))</li> |
84 |
|
<li>MIME (<a href="urn:ietf:rfc:2045">RFC 2045</a>, |
85 |
|
<a href="urn:ietf:rfc:2046">2046</a>) $B$K$[$\40A4$KBP1~$7$F$$$^$9!#(B</li> |
86 |
</ol> |
</ol> |
87 |
|
|
88 |
<h2>$B3F;EMM$X$NBP1~>u67(B</h2> |
<h2>$B3F;EMM$X$NBP1~>u67(B</h2> |
89 |
|
|
90 |
<ol> |
<ol> |
91 |
<li>$BEE;R%a%$%k$N%a%C%;!<%8(B (RFC 822, RFC 2822) |
<li>$BEE;R%a%$%k$N%a%C%;!<%8(B (RFC 822, RFC 2822) |
92 |
$B$NA45!G=$K(B ($BH4$1$,L5$1$l$P(B) $BBP1~$7$F$$$^$9!#(B |
$B$NA45!G=$KBP1~$7$F$$$^$9!#(B</li> |
|
$BC"$7D9$5@)8B$J$I$O%A%'%C%/$7$F$$$^$;$s!#(B (MIME $B$N(B |
|
|
<code class="mime">Content-Transfer-Encoding</code> |
|
|
$B$H0l=o$K<BAuM=Dj(B)</li> |
|
93 |
<li>$BEE;R%K%e!<%95-;v(B (<a href="/uri-res/N2L?urn:ietf:rfc:1036">RFC 1036</a>, |
<li>$BEE;R%K%e!<%95-;v(B (<a href="/uri-res/N2L?urn:ietf:rfc:1036">RFC 1036</a>, |
94 |
<a href="spec/son-of-RFC1036">son-of-RFC1036</a>, |
<a href="spec/son-of-RFC1036">son-of-RFC1036</a>, |
95 |
<a href="/uri-res/N2L?urn:ietf:id:draft-usefor-article-06"> |
<a href="/uri-res/N2L?urn:ietf:id:draft-usefor-article-06"> |
96 |
draft-usefor-article (06)</a>) $B$NF,NN0h$NB?$/$KBP1~$7$F$$$^$9!#(B</li> |
draft-usefor-article (06)</a>) $B$NF,NN0h$NB?$/$KBP1~$7$F$$$^$9!#(B</li> |
97 |
<li>MIME $B$NK\BNItJ,(B (body part) $B$K$O$^$@BP1~$7$F$$$^$;$s!#(B</li> |
<li>MIME $B$NK\J8ItJ,(B (body part) $B$KBP1~$7$F$$$^$9!#(B |
98 |
<li>MIME $B$NDI2CF,NN0h(B |
<ul> |
99 |
|
<li>$BB?ItJ,(B (multipart) $B$dJ,3d(B (message/partial), |
100 |
|
$B30ItK\J,(B (message/external-body) $B$r07$&$3$H$,=PMh$^$9!#(B</li> |
101 |
|
<li>text/plain; format=flowed |
102 |
|
(<a href="urn:ietf:rfc:2646">RFC 2646</a>) |
103 |
|
$B$KBP1~$7$F$$$^$9!#(B</li> |
104 |
|
<li>Content-Transfer-Encoding $B$O(B Base64, Quoted-Printable |
105 |
|
$B$OL^O@!"(B x-uuencode, x-gzip64 $B$K$bBP1~!#(B |
106 |
|
RFC 2822 $B%a%$%k=PNO%b!<%I$G$O!"K\J8$,(B8$B%S%C%H$G$b<+F0E*$KE,@Z$J(B |
107 |
|
CTE $B$GId9f2=$7$^$9!#(B</li> |
108 |
|
</ul> |
109 |
|
</li> |
110 |
|
<li>MIME $B$NF,NN0h(B |
111 |
(<a href="/uri-res/N2L?urn:ietf:rfc:2045">RFC 2045</a>, |
(<a href="/uri-res/N2L?urn:ietf:rfc:2045">RFC 2045</a>, |
112 |
<code class="mime">Content-Disposition</code>) $B$KBP1~$7$F$$$^$9!#(B |
<code class="mime">Content-Disposition</code>) $B$KBP1~$7$F$$$^$9!#(B |
113 |
$B%Q%i%a!<%?!<CM3HD%(B (<a href="/uri-res/N2L?urn:ietf:rfc:2231">RFC 2231</a>) |
$B%Q%i%a!<%?!<CM3HD%(B (<a href="/uri-res/N2L?urn:ietf:rfc:2231">RFC 2231</a>) |
114 |
$B$bF~=PNO$H$b$K<BAu$7$^$7$?!#(B</li> |
$B$bF~=PNO$H$b$K<BAu$7$^$7$?!#(B</li> |
115 |
<li>MIME $BId9f2=8l(B (<code class="mime bnf">encoded-word</code>) |
<li>MIME $BId9f2=8l(B (<code class="mime bnf">encoded-word</code>) |
116 |
$B$N2rFI$KBP1~$7$F$$$^$9(B:-) $BC"$7JLESJQ49=hM}$r;XDj$9$kI,MW$,$"$j$^$9!#(B |
$B$N2rFI$KBP1~$7$F$$$^$9(B:-)</li> |
|
(<a href="#code">$BJ8;z%3!<%I$N07$$(B</a>$B;2>H(B)</li> |
|
117 |
<li>HTTP/1.0, HTTP/1.1, CGI/1.1, CGI/1.2 $B$NF,NN0h$N$&$A!"(B |
<li>HTTP/1.0, HTTP/1.1, CGI/1.1, CGI/1.2 $B$NF,NN0h$N$&$A!"(B |
118 |
$B$4$/0lIt$KBP1~$7$F$$$^$9!#(B MHTML $B$N(B |
$B$4$/0lIt$KBP1~$7$F$$$^$9!#(B MHTML $B$N(B |
119 |
<code class="mime">Content-Location</code> $B$K$bBP1~$7$F$$$^$9!#(B</li> |
<code class="mime">Content-Location</code> $B$K$bBP1~$7$F$$$^$9!#(B</li> |
120 |
<li>$BF|IU7A<0$G$O(B RFC 822/<a href="urn:ietf:rfc:1123">1123</a>, |
<li>$BF|IU7A<0$G$O(B RFC 822/<a href="urn:ietf:rfc:1123">1123</a>, |
121 |
<a href="urn:ietf:rfc:733">RFC 733</a>, asctime, ISO 8601 (HTML) |
<a href="urn:ietf:rfc:733">RFC 733</a>, asctime, ISO 8601 (HTML) |
122 |
$B$J$I$KBP1~$7$F$$$^$9!#(B</li> |
$B$J$I$KBP1~$7$F$$$^$9!#F|IU$N=PNO$O(B sprintf |
123 |
|
$B$NMM$J=q<0J8;zNs$rM?$($k$3$H$G!"B?<oB?MM$J7A<0$KBP1~!#(B</li> |
124 |
|
<li>X-Moe $B%7%j!<%:$KBP1~$7$F$$$^$9(B:-)</li> |
125 |
</ol> |
</ol> |
126 |
|
|
127 |
<h2>$B@)8B;v9`(B</h2> |
<h2>$B@)8B;v9`(B</h2> |
133 |
$BJ];}$7$F$$$^$9!#$G$9$+$i$"$^$jBg$-$J%a%C%;!<%8$N=hM}$K$O(B |
$BJ];}$7$F$$$^$9!#$G$9$+$i$"$^$jBg$-$J%a%C%;!<%8$N=hM}$K$O(B |
134 |
$B8~$$$F$$$J$$$G$7$g$&!#(B</li> |
$B8~$$$F$$$J$$$G$7$g$&!#(B</li> |
135 |
<li><code>CR</code> $B$d(B <code>LF</code> $B$,C1BN$G=P8=$9$k>l9g!"(B |
<li><code>CR</code> $B$d(B <code>LF</code> $B$,C1BN$G=P8=$9$k>l9g!"(B |
136 |
$B@5$7$/=hM}=PMh$^$;$s!#(B (<code>CRLF</code> $B$HEy2A$H$_$J$7$^$9!#(B) |
$B@5$7$/=hM}=PMh(B<del>$B$^$;$s(B</del><ins>$B$J$$$3$H$,$"$j$^$9(B |
137 |
|
($B6a$$>-Mh$NHG$G2~A1$NM=Dj(B)</ins>$B!#(B (<code>CRLF</code> $B$HEy2A$H$_$J$7$^$9!#(B) |
138 |
$B>-Mh$NHG$G$O%*%W%7%g%s$G@)8f2DG=$K$J$k$+$b$7$l$^$;$s!#(B</li> |
$B>-Mh$NHG$G$O%*%W%7%g%s$G@)8f2DG=$K$J$k$+$b$7$l$^$;$s!#(B</li> |
139 |
<li>$B$"$C$?$iNI$5$=$&$J5!G=$,L$<BAu$+$b$7$l$^$;$s!#(B |
<li>$B$"$C$?$iNI$5$=$&$J5!G=$,L$<BAu$+$b$7$l$^$;$s!#(B |
140 |
($BM_$7$$5!G=$,L$<BAu$@$C$?$i!"(B |
($BM_$7$$5!G=$,L$<BAu$@$C$?$i!"(B |
141 |
<a href="mailto:w@suika.fam.cx">$BEE;R%a%$%k(B</a>$B$J$I$G65$($F2<$5$$!#(B)</li> |
<a href="mailto:w@suika.fam.cx">$BEE;R%a%$%k(B</a>$B$d(B |
142 |
|
<a href="news://suika.fam.cx/suika.msg">suika.msg</a> |
143 |
|
$B$J$I$G65$($F2<$5$$!#(B)</li> |
144 |
<li>$B3F%b%8%e!<%k$N%*%W%7%g%sBN7O$,$"$^$j@0Hw$5$l$F$$$^$;$s!#(B |
<li>$B3F%b%8%e!<%k$N%*%W%7%g%sBN7O$,$"$^$j@0Hw$5$l$F$$$^$;$s!#(B |
145 |
($B$=$l$G$b5$;}$A0-$/$J$$DxEY$K$OBN7OE*$@$H;W$$$^$9!#(B)</li> |
($B$=$l$G$b5$;}$A0-$/$J$$DxEY$K$OBN7OE*$@$H;W$$$^$9!#(B)</li> |
146 |
<li>$B@bL@J8(B (document) $B$,NI$$2C8:$G$9!#(B</li> |
<li>$B@bL@J8(B (document) $B$,NI$$2C8:$G$9!#(B</li> |
152 |
<li>$BEE;R%K%e!<%9$NF,NN0h(B (RFC 1036, |
<li>$BEE;R%K%e!<%9$NF,NN0h(B (RFC 1036, |
153 |
<a href="spec/son-of-RFC1036">son-of-RFC1036</a>, |
<a href="spec/son-of-RFC1036">son-of-RFC1036</a>, |
154 |
draft-usefor-article) $B$N40A4<BAu(B</li> |
draft-usefor-article) $B$N40A4<BAu(B</li> |
|
<li><del>MIME $B$NF,NN0h$N<BAu!#(B</del></li> |
|
155 |
<li>$BDI2C(B/$BHsI8=`$NF,NN0h$N<BAu!#(B</li> |
<li>$BDI2C(B/$BHsI8=`$NF,NN0h$N<BAu!#(B</li> |
|
<li>MIME $BK\BN(B (<code class="bnf rfc822">body</code>) $B$N<BAu!#(B</li> |
|
|
<li><del>$BJ8;zId9fJQ49$N$?$a$N(B hook $B$N<BAu(B?</del></li> |
|
156 |
<li>documentation$B!#(B</li> |
<li>documentation$B!#(B</li> |
157 |
<li>$B;HMQNc$N:n@.!#(B</li> |
<li>$B;HMQNc$N:n@.!#(B</li> |
158 |
|
<li>$B4{B8%b%8%e!<%k$,MxMQ=PMh$kItJ,$O!"$=$l$r8F$S=P$9$h$&$K$9$k$+(B |
159 |
|
$B$=$N(B code $B$rN.MQ$9$k!#(B</li> |
160 |
|
<li>$BN`;w%b%8%e!<%k$H$N3&LL$N6&DL2=(B</li> |
161 |
</ol> |
</ol> |
162 |
|
|
163 |
<h2>$BI,MW4D6-(B</h2> |
<h2>$BI,MW4D6-(B</h2> |
171 |
</li> |
</li> |
172 |
<li>Digest::MD2, Digest::MD5, Digest::SHA1 |
<li>Digest::MD2, Digest::MD5, Digest::SHA1 |
173 |
<p>Message-ID $B$N@8@.$K$3$l$i$r;HMQ$9$k>l9g$N$_!"(B |
<p>Message-ID $B$N@8@.$K$3$l$i$r;HMQ$9$k>l9g$N$_!"(B |
174 |
<code>Message::Field::MsgID::MsgID</code> $B$,;H$$$^$9!#(B</p> |
<code>Message::Field::MsgID</code> $B$,;H$$$^$9!#(B</p> |
175 |
<p>$B$3$l$i$,MQ0U$5$l$F$$$J$$4D6-$G$O%(%i!<$K$J$k$N$G!"(B |
<p>$B$3$l$i$,MQ0U$5$l$F$$$J$$4D6-$G$O%(%i!<$K$J$k$N$G!"(B |
176 |
($B8=>u$G$O(B) $B>e5-%b%8%e!<%k$N3:EvItJ,$r=q$-49$($FBP=h$7$F2<$5$$!#(B</p> |
($B8=>u$G$O(B) $B>e5-%b%8%e!<%k$N3:EvItJ,$r=q$-49$($FBP=h$7$F2<$5$$!#(B</p> |
177 |
</li> |
</li> |
178 |
|
<li>MIME::Base64 |
179 |
|
<p>$B$A$J$_$K!"(B Quoted-Printable $B$d(B RFC 2231 $B$N(B |
180 |
|
% $BId9f2=$O<+NO$GI|9f$7$^$9!#(B</p> |
181 |
|
</li> |
182 |
<li>$BJ8;z%3!<%IJQ49=hM}(B |
<li>$BJ8;z%3!<%IJQ49=hM}(B |
183 |
<p>$BF|K\8l%a%C%;!<%8$r07$&$J$iI,?\$G$7$g$&!#(B |
<p>$BF|K\8l%a%C%;!<%8$r07$&$J$iI,?\$G$7$g$&!#(B |
184 |
$B>\$7$/$O(B<a href="#code">$BJ8;z%3!<%I$N07$$(B</a> |
$B>\$7$/$O(B<a href="#code">$BJ8;z%3!<%I$N07$$(B</a> |
208 |
<h2 id="code">$BJ8;z%3!<%I$N07$$(B</h2> |
<h2 id="code">$BJ8;z%3!<%I$N07$$(B</h2> |
209 |
|
|
210 |
<p>$BH\$7$$$3$H$GF,$rG:$^$9$N$O7y$J$N$G(B($BON(B)$B!"(B |
<p>$BH\$7$$$3$H$GF,$rG:$^$9$N$O7y$J$N$G(B($BON(B)$B!"(B |
211 |
|
[[ $B"*(B<a href="#code-easy">$B<j$C<h$jAa$/J}K!$@$1FI$`(B</a>$B!#(B ]] |
212 |
Message::* $B$OId9f2=J}K!FHN)(B (CSI) $B$rL\;X$7$F<BAu$7$F$$$^$9!#(B |
Message::* $B$OId9f2=J}K!FHN)(B (CSI) $B$rL\;X$7$F<BAu$7$F$$$^$9!#(B |
213 |
($BC"$7(B ASCII $B$N$7$,$i$_$@$1$OCG$A@Z$C$F$$$^$;$s(B:-)) |
($BC"$7(B ASCII $B$N$7$,$i$_$@$1$OCG$A@Z$C$F$$$^$;$s(B:-)) |
214 |
0x00 $B!A(B 0x7F $B$,(B ASCII ($B$^$?$O(B ASCII $B$H8+$J$7$FNI$$$b$N(B) $B$G$"$k(B |
0x00 $B!A(B 0x7F $B$,(B ASCII ($B$^$?$O(B ASCII $B$H8+$J$7$FNI$$$b$N(B) $B$G$"$k(B |
284 |
$B2?$b=hM}$7$^$;$s!#(B) $B$3$l0J30$N>lLL$G$O!"(B <code>*default</code> |
$B2?$b=hM}$7$^$;$s!#(B) $B$3$l0J30$N>lLL$G$O!"(B <code>*default</code> |
285 |
$B$GDj5A$5$l$?4X?t$,;H$o$l$^$9!#(B</p> |
$B$GDj5A$5$l$?4X?t$,;H$o$l$^$9!#(B</p> |
286 |
|
|
287 |
|
<!-- |
288 |
<p>$B:G8e$K!"F|K\8l%a%C%;!<%8$r07$&:]$NNc$r5s$2$F$*$-$^$9!#(B</p> |
<p>$B:G8e$K!"F|K\8l%a%C%;!<%8$r07$&:]$NNc$r5s$2$F$*$-$^$9!#(B</p> |
289 |
|
|
290 |
<pre class="example perl"> |
<pre class="example perl"> |
322 |
$Message::MIME::Charset::ENCODER{'*default'} = sub {Jcode->new ($_[1], 'euc')->jis}; |
$Message::MIME::Charset::ENCODER{'*default'} = sub {Jcode->new ($_[1], 'euc')->jis}; |
323 |
$Message::MIME::Charset::ENCODER{'utf-8'} = sub {Jcode->new ($_[1], 'euc')->utf8}; |
$Message::MIME::Charset::ENCODER{'utf-8'} = sub {Jcode->new ($_[1], 'euc')->utf8}; |
324 |
</pre> |
</pre> |
325 |
|
--> |
326 |
|
|
327 |
|
<p id="code-easy">$B$d$d$3$7$$@bL@$r$7$F$-$^$7$?$,!"<B:]LLE]$J$N$G!"F|K\8lJ8;z%3!<%IJQ49$KNI$/;H$o$l$k!"(B |
328 |
|
jcode.pl $B$d(B Jcode.pm $B$J$I$N$?$a$N@_Dj$OM=$aMQ0U$7$F$"$j$^$9!#(B</p> |
329 |
|
|
330 |
|
<pre class="example perl"> |
331 |
|
<span class="comment">## $B$I$A$i$+9%$-$JJ}$r$I$&$>!#(B</span> |
332 |
|
use Message::MIME::Charset::Jcode 'jcode.pl'; |
333 |
|
use Message::MIME::Charset::Jcode 'Jcode'; |
334 |
|
</pre> |
335 |
|
|
336 |
|
<p>$B$3$N(B1$B9T$@$1$G!"(B ISO-2022-JP, EUC-JP, Shift_JIS |
337 |
|
$B$*$h$S4v$D$+$N4XO"(B charset $B$,MxMQ2DG=$K$J$j$^$9!#(B</p> |
338 |
|
|
339 |
|
<p>Perl 5.8 $B$K$J$C$F(B Encode $B%b%8%e!<%k$,;H$($k$h$&$K$J$l$P!"(B |
340 |
|
$B$b$C$H?'!9$JJ8;z%3!<%I$,3Z$KMxMQ$G$-$k$h$&$K$J$k$H4|BT$7$F$$$^$9!#(B</p> |
341 |
|
|
342 |
<p>Perl 5.8 $B$G(B Encode $B%b%8%e!<%k$,;H$($k$h$&$K$J$l$P!"(B |
<p>$B$H$3$m$G!"$3$N$h$&$K(B charset $BBP1~=hM}$r$7$J$/$F$b!"(B |
343 |
$B$b$C$H3Z$K$J$k$H4|BT$7$F$$$^$9!#(B</p> |
MIME $B$G(B charset $B;%IU$1$5$l$F%a%C%;!<%8$K4^$a$i$l$F$$$kL$CN$N(B |
344 |
|
charset $B$N%G!<%?$,GK2u$5$l$k$3$H$O$"$j$^$;$s!#(B ($B$O$:$G$9!#(B) |
345 |
|
($B$=$3$$$i$,!"(B Unicoder $B$N%=%U%H%&%'%"$H$N0c$$$G$9(B($B>P(B)$B!#(B)</p> |
346 |
|
|
347 |
<div class="navigation"> |
<div class="navigation"> |
348 |
[<a href="/" title="$B$3$N%5!<%P!<$N<sJG(B">/</a> |
[<a href="/" title="$B$3$N%5!<%P!<$N<sJG(B">/</a> |