tmail 1.2.3.1 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. data/README +10 -0
  2. data/ext/tmailscanner/tmail/tmailscanner.c +39 -8
  3. data/lib/tmail.rb +1 -0
  4. data/lib/tmail/address.rb +6 -40
  5. data/lib/tmail/attachments.rb +41 -22
  6. data/lib/tmail/encode.rb +9 -0
  7. data/lib/tmail/header.rb +5 -3
  8. data/lib/tmail/interface.rb +40 -3
  9. data/lib/tmail/mail.rb +3 -3
  10. data/lib/tmail/mailbox.rb +3 -2
  11. data/lib/tmail/net.rb +3 -1
  12. data/lib/tmail/parser.rb +204 -620
  13. data/lib/tmail/parser.y +38 -3
  14. data/lib/tmail/quoting.rb +38 -1
  15. data/lib/tmail/utils.rb +28 -4
  16. data/lib/tmail/vendor/rchardet-1.3/COPYING +504 -0
  17. data/lib/tmail/vendor/rchardet-1.3/README +12 -0
  18. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet.rb +67 -0
  19. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/big5freq.rb +927 -0
  20. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/big5prober.rb +42 -0
  21. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/chardistribution.rb +237 -0
  22. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/charsetgroupprober.rb +112 -0
  23. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/charsetprober.rb +75 -0
  24. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/codingstatemachine.rb +64 -0
  25. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/constants.rb +42 -0
  26. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/escprober.rb +90 -0
  27. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/escsm.rb +244 -0
  28. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/eucjpprober.rb +88 -0
  29. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/euckrfreq.rb +596 -0
  30. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/euckrprober.rb +42 -0
  31. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/euctwfreq.rb +430 -0
  32. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/euctwprober.rb +42 -0
  33. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312freq.rb +474 -0
  34. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312prober.rb +42 -0
  35. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/hebrewprober.rb +289 -0
  36. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/jisfreq.rb +570 -0
  37. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/jpcntx.rb +229 -0
  38. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/langbulgarianmodel.rb +229 -0
  39. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/langcyrillicmodel.rb +330 -0
  40. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/langgreekmodel.rb +227 -0
  41. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/langhebrewmodel.rb +202 -0
  42. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/langhungarianmodel.rb +226 -0
  43. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/langthaimodel.rb +201 -0
  44. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/latin1prober.rb +147 -0
  45. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/mbcharsetprober.rb +89 -0
  46. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/mbcsgroupprober.rb +47 -0
  47. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/mbcssm.rb +542 -0
  48. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/sbcharsetprober.rb +124 -0
  49. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/sbcsgroupprober.rb +58 -0
  50. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/sjisprober.rb +88 -0
  51. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/universaldetector.rb +166 -0
  52. data/lib/tmail/vendor/rchardet-1.3/lib/rchardet/utf8prober.rb +87 -0
  53. data/lib/tmail/version.rb +1 -1
  54. data/setup.rb +2 -2
  55. data/test/fixtures/apple_unquoted_content_type +44 -0
  56. data/test/fixtures/inline_attachment.txt +2095 -0
  57. data/test/fixtures/iso_8859_1_email_without_encoding_and_message_id.txt +16 -0
  58. data/test/fixtures/mailbox.zip +0 -0
  59. data/test/fixtures/marked_as_iso_8859_1_but_it_is_utf_8.txt +33 -0
  60. data/test/fixtures/marked_as_utf_8_but_it_is_iso_8859_1.txt +56 -0
  61. data/test/fixtures/raw_email_bad_time +62 -0
  62. data/test/fixtures/raw_email_double_at_in_header +14 -0
  63. data/test/fixtures/raw_email_only_attachment +17 -0
  64. data/test/fixtures/raw_email_string_in_date_field +17 -0
  65. data/test/fixtures/raw_email_trailing_dot +21 -0
  66. data/test/fixtures/raw_email_with_quoted_attachment_filename +60 -0
  67. data/test/fixtures/raw_email_with_wrong_splitted_multibyte_encoded_word_subject +15 -0
  68. data/test/fixtures/the_only_part_is_a_word_document.txt +425 -0
  69. data/test/fixtures/unquoted_filename_in_attachment +177 -0
  70. data/test/test_address.rb +114 -92
  71. data/test/test_attachments.rb +84 -1
  72. data/test/test_encode.rb +54 -0
  73. data/test/test_header.rb +60 -2
  74. data/test/test_mail.rb +22 -15
  75. data/test/test_mbox.rb +12 -3
  76. data/test/test_port.rb +13 -9
  77. data/test/test_quote.rb +9 -0
  78. data/tmail.gemspec +34 -0
  79. metadata +68 -167
  80. data/MANIFEST +0 -191
  81. data/log/BugTrackingLog.txt +0 -1231
  82. data/log/Changelog.txt +0 -534
  83. data/log/Fixme.txt +0 -6
  84. data/log/Testlog.txt +0 -2340
  85. data/log/Todo.txt +0 -30
  86. data/log/fixme.rdoc +0 -6
  87. data/meta/MANIFEST +0 -128
  88. data/meta/VERSION +0 -1
  89. data/meta/project.yaml +0 -30
  90. data/meta/unixname +0 -1
  91. data/sample/bench_base64.rb +0 -48
  92. data/sample/data/multipart +0 -23
  93. data/sample/data/normal +0 -29
  94. data/sample/data/sendtest +0 -5
  95. data/sample/data/simple +0 -14
  96. data/sample/data/test +0 -27
  97. data/sample/extract-attachements.rb +0 -33
  98. data/sample/from-check.rb +0 -26
  99. data/sample/multipart.rb +0 -26
  100. data/sample/parse-bench.rb +0 -68
  101. data/sample/parse-test.rb +0 -19
  102. data/sample/sendmail.rb +0 -94
  103. data/site/contributing/index.html +0 -183
  104. data/site/css/clean.css +0 -27
  105. data/site/css/layout.css +0 -31
  106. data/site/css/style.css +0 -60
  107. data/site/download/index.html +0 -61
  108. data/site/img/envelope.jpg +0 -0
  109. data/site/img/mailman.gif +0 -0
  110. data/site/img/stamp-sm.jpg +0 -0
  111. data/site/img/stamp.jpg +0 -0
  112. data/site/img/stampborder.jpg +0 -0
  113. data/site/img/tfire.jpg +0 -0
  114. data/site/img/tmail.png +0 -0
  115. data/site/index.html +0 -270
  116. data/site/js/jquery.js +0 -31
  117. data/site/log/Changelog.xsl +0 -33
  118. data/site/log/changelog.xml +0 -1677
  119. data/site/outdated/BUGS +0 -3
  120. data/site/outdated/DEPENDS +0 -1
  121. data/site/outdated/Incompatibilities +0 -89
  122. data/site/outdated/Incompatibilities.ja +0 -102
  123. data/site/outdated/NEWS +0 -9
  124. data/site/outdated/README.ja +0 -73
  125. data/site/outdated/doc.ja/address.html +0 -275
  126. data/site/outdated/doc.ja/basics.html +0 -405
  127. data/site/outdated/doc.ja/config.html +0 -49
  128. data/site/outdated/doc.ja/details.html +0 -146
  129. data/site/outdated/doc.ja/index.html +0 -39
  130. data/site/outdated/doc.ja/mail.html +0 -793
  131. data/site/outdated/doc.ja/mailbox.html +0 -265
  132. data/site/outdated/doc.ja/port.html +0 -95
  133. data/site/outdated/doc.ja/tmail.html +0 -58
  134. data/site/outdated/doc.ja/usage.html +0 -202
  135. data/site/outdated/rdd/address.rrd.m +0 -229
  136. data/site/outdated/rdd/basics.rd.m +0 -275
  137. data/site/outdated/rdd/config.rrd.m +0 -26
  138. data/site/outdated/rdd/details.rd.m +0 -117
  139. data/site/outdated/rdd/index.rhtml.m +0 -54
  140. data/site/outdated/rdd/mail.rrd.m +0 -701
  141. data/site/outdated/rdd/mailbox.rrd.m +0 -228
  142. data/site/outdated/rdd/port.rrd.m +0 -69
  143. data/site/outdated/rdd/tmail.rrd.m +0 -33
  144. data/site/outdated/rdd/usage.rd.m +0 -247
  145. data/site/quickstart/index.html +0 -69
  146. data/site/quickstart/quickstart.html +0 -52
  147. data/site/quickstart/usage.html +0 -193
  148. data/site/reference/address.html +0 -247
  149. data/site/reference/config.html +0 -30
  150. data/site/reference/index.html +0 -101
  151. data/site/reference/mail.html +0 -726
  152. data/site/reference/mailbox.html +0 -245
  153. data/site/reference/port.html +0 -75
  154. data/site/reference/tmail.html +0 -35
  155. data/work/script/make +0 -26
  156. data/work/script/rdoc +0 -39
  157. data/work/script/setup +0 -1616
  158. data/work/script/test +0 -30
@@ -1,405 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html lang="ja-JP">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
5
- <meta http-equiv="Content-Language" content="ja-JP">
6
- <title>$B%$%s%?!<%M%C%H%a!<%k$N4pAC(B</title>
7
- </head>
8
- <body>
9
- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
10
- </script>
11
- <script type="text/javascript">
12
- _uacct = "UA-2871747-1";
13
- urchinTracker();
14
- </script>
15
-
16
-
17
- <h1>$B%$%s%?!<%M%C%H%a!<%k$N4pAC(B</h1>
18
-
19
- <h2>$B%a!<%k%7%9%F%`$r9=@.$9$kMWAG(B</h2>
20
-
21
- <h3>$B%a!<%k(B</h3>
22
-
23
- <p>
24
- $B$^$:%a!<%k$=$l<+BN$G$9!#(B
25
- $B%a!<%k$O4pK\E*$K$O%F%-%9%H%U%!%$%k$G$"$j!"%X%C%@(B <code>(header)</code> $B$H(B
26
- $B%\%G%#$KJ,$+$l$F$$$^$9!#%X%C%@$N=q<0$O5,3J$,$"$j$+$J$j87L)$K(B
27
- $B7h$a$i$l$F$$$^$9$,!"%\%G%#$K$O$"$j$^$;$s!#$?$H$($P0J2<$,@8$N(B
28
- $B%a!<%k$NNc$G$9!#(B
29
- </p>
30
-
31
- <pre>
32
- Return-Path: &lt;ruby-list-admin@ruby-lang.org&gt;
33
- Received: from helium.ruby-lang.org (localhost [127.0.0.1])
34
- by helium.ruby-lang.org (Postfix) with ESMTP
35
- id 4EEF9165; Wed, 12 Dec 2001 07:05:58 +0900 (JST)
36
- Received: from doraemon.edit.ne.jp (doraemon.edit.ne.jp [210.141.234.1])
37
- by helium.ruby-lang.org (Postfix) with ESMTP id 7AFAB126
38
- for &lt;ruby-list@ruby-lang.org&gt;; Wed, 12 Dec 2001 07:05:57 +0900 (JST)
39
- Date: Wed, 12 Dec 2001 07:05:58 +0900
40
- Posted: Wed, 12 Dec 2001 07:14:16 +0900
41
- From: Minero Aoki &lt;aamine@mx.edit.ne.jp&gt;
42
- Reply-To: ruby-list@ruby-lang.org
43
- Subject: [ruby-list:32880] Re: RAA update
44
- To: ruby-list@ruby-lang.org (ruby mailing list)
45
- Message-Id: &lt;20011212071416N.aamine@mx.edit.ne.jp&gt;
46
- In-Reply-To: &lt;20011210141226.DTUM11600.femail11.im.home.ne.jp@witch&gt;
47
- References: &lt;20011210141226.DTUM11600.femail11.im.home.ne.jp@witch&gt;
48
- Mime-Version: 1.0
49
- Content-Type: Text/Plain; charset=iso-2022-jp
50
- Content-Transfer-Encoding: 7bit
51
- Precedence: bulk
52
- Lines: 79
53
- X-UIDL: b8b1b7f1d28ee02af1df6f8612b5b8c4
54
-
55
- $B$"$*$-$G$9!#$3$3$+$i%\%G%#$G$9!#(B
56
- $B!'(B
57
- ($B0J2<N,(B)
58
- </pre>
59
-
60
- <p>
61
- $B%X%C%@$H%\%G%#$O6u9T$G6h@Z$i$l$^$9!#%X%C%@$G$O$@$$$?$$0l9T$,(B
62
- $B$R$H$D$N%X%C%@$KAjEv$7$^$9$,!"6uGr$G;O$^$k9T$O>e$N9T$NB3$-$G$9!#(B
63
- $B$?$H$($P$3$N%a!<%k$N(B <code>Received:</code> $B$OFs$D$H$b(B 3 $B9T$G$R$H$D$N%X%C%@9T$r(B
64
- $B9=@.$7$F$$$^$9!#3F%X%C%@$K$O:G=i$K%X%C%@L>$,$"$j!"%3%m%s(B($B!'(B)$B$r(B
65
- $BCV$$$F$=$N$"$H$,!V%X%C%@%U%#!<%k%I!W(B($B%X%C%@$NFbMF(B)$B$G$9!#(B
66
- </p>
67
-
68
- <p>
69
- $B%X%C%@$K$O$=$l$>$lLr3d$,$"$j$^$9!#$?$H$($P(B <code>To:</code> $B%X%C%@$K$O(B
70
- $B%a!<%k$N08@h$r=q$-$^$9!#(B<code>From:</code> $B$K$O%a!<%k$NAw$j85$r=q$-$^$9!#(B
71
- <code>Subject:</code> $B$O$$$o$f$kBjL>$G$9!#(B<code>Date:</code> $B$O%a!<%k$rAw?.$7$?F|;~!"(B
72
- <code>Received:</code> $B$,G[Aw5-O?$J$I$J$I!#>\$7$/$O$"$H$G@bL@$7$^$9!#(B
73
- </p>
74
-
75
- <h3>$B%a!<%k$NAw<u?.(B</h3>
76
-
77
- <p>
78
- $B:Y$+$/DI5a$9$l$PAw?.$K$b$$$m$$$m$JJ}K!$,$"$k$N$G$9$,!"IaDL$K(B
79
- $B@8$-$F$$$/8B$j4X78$7$J$/$F$O$$$1$J$$$N$O(B <code>SMTP (Simple Mail Transfer Protocol)</code>
80
- $B$@$1$G$9!#$3$l$O!"$H$"$k%[%9%H$+$iJL$N%[%9%H$K%a!<%k$rE>Aw$9$k(B
81
- $B$?$a$N%W%m%H%3%k(B ($BLsB+;v$N=89g(B) $B$G$9!#$H$K$+$/$3$l$r;H$($P(B
82
- $B%a!<%k$rE>Aw$G$-$^$9!#(B<code>SMTP</code> $B$G$O%a!<%k$NCf?H$K$O4pK\E*$K4XM?(B
83
- $B$7$^$;$s!#>/$J$/$H$b!"%a!<%k$NCf?H$rJQ$($F$7$^$&$h$&$JF/$-(B
84
- $B$+$1$O9T$$$^$;$s!#(B
85
- </p>
86
-
87
- <p>
88
- $B$^$?%a!<%k$K$OK\Mh!V<u?.!W$H$$$&$b$N$O$"$j$^$;$s$G$7$?!#(B
89
- $B4pK\E*$K%a!<%k%7%9%F%`$O>o;~@\B3$,4pK\$G!"%a!<%k$rAw$C$?$i(B
90
- $BB(:B$KAw$j@h$^$G(B <code>(SMTP</code> $B$G(B) $BG[Aw$5$l$k$3$H$K$J$C$F$$$?$+$i$G$9!#(B
91
- $B$$$^$G8@$($P7HBS%a!<%k$_$?$$$J$b$N$G$9!#(B
92
- </p>
93
-
94
- <p>
95
- $B$H$3$m$,$=$N$&$A>o;~@\B3$G$J$$$H$3$m$,=P$F$-$F!"2r7hJ}K!$r(B
96
- $B9M$($O$8$a$^$7$?!#$=$3$G=P$F$-$?2r7hK!$N$R$H$D$,:G6a;H$C$F$k(B
97
- $B!V<u?.!W$J$o$1$G$9!#$3$l$K$OIaDL$O(B <code>POP3 (Post Office Protocol version 3)</code>
98
- $B$H$$$&%W%m%H%3%k$r;H$$$^$9!#(B
99
- </p>
100
-
101
- <p>
102
- <code>POP3</code> $B$G$O!"G[Aw$5$l$?%a!<%k$r(B <code>POP</code> $B%5!<%P$KJ]B8$7$F$*$-!"$=$l$r(B
103
- <code>(PPP</code> $B$G$D$J$$$@%Q%=%3%s$H$+$+$i(B) $B%j%/%(%9%H$5$l$?$iEO$7!"$=$N(B
104
- $B$"$H>C$7$^$9!#$D$^$jK\Ev$O!VAw?.BT5!!W$H$G$b8@$&$[$&$,$h$j@53N(B
105
- $B$G$7$g$&!#(B
106
- </p>
107
-
108
- <p>
109
- $BB>$N2r7hK!$H$7$F$O(B IMAP (Internet Messsage Access Protocol) $B$H(B
110
- $B$$$&%W%m%H%3%k$,BeI=3J$G$9!#(B<code>POP</code> $B$O%a!<%k$NAw?.$r2p=u$9$k$@$1$G$9$,!"(B
111
- IMAP $B$G$OIaDL$N%a!<%k%/%i%$%"%s%H$N5!G=$N0lIt$^$G$,%5!<%P$K<h$j(B
112
- $B$3$^$l$?$h$&$J46$8$K$J$j$^$9!#$?$H$($P(B IMAP $B%5!<%P>e$G%a!<%k$N(B
113
- $B8!:w$r$7$?$j!"%a!<%k%\%C%/%9$NJ,N`$,$G$-$?$j$7$^$9!#7HBS%a!<%k(B
114
- $B$J$s$+$O<B$O(B IMAP $B$KN`;w$N9=B$$G$9!#7HBS$O(B CPU $B%Q%o!<$,$J$$$N$G!"(B
115
- $B%5!<%P>e$G%a!<%k$r2C9)$7$F7HBS$KEO$7$F$$$k$N$G$9!#(B
116
- </p>
117
-
118
- <h3>$B%a!<%k%\%C%/%9(B</h3>
119
-
120
- <p>
121
- $BFO$$$?%a!<%k$r:G=*E*$KJ]B8$7$F$*$/$H$3$m$,%a!<%k%\%C%/%9$G$9!#(B
122
- $B$-$C$H$I$3$+$GJ9$$$?$3$H$,$"$k$G$"$m$&(B <code>INBOX</code> $B$H$+!V<u?.H"!W$H$+(B
123
- $B!VM9JX<u$1!W$,$=$l$G$9!#(B
124
- </p>
125
-
126
- <p>
127
- $B%a!<%k%\%C%/%9$O!"%a!<%i<!Bh$G$$$/$i$G$bJQ$($k$3$H$,$G$-$F$7$^$&(B
128
- $B$N$GAjEv$K$?$/$5$s<oN`$,$"$j$^$9!#D6M-L>$J$N$@$1$G$b(B UNIX mbox
129
- ($B$5$i$K%^%$%J!<%P!<%8%g%s$,$$$/$D$+$"$k(B)$B!"(BMH$B!"(B<code>Maildir</code> $B$J$s$F$N$,(B
130
- $B$"$j$^$9!#(B
131
- </p>
132
-
133
- <p>
134
- $B$J$s$K$7$F$b%a!<%k%\%C%/%9$O%a!<%k$r$H$C$F$*$1$l$P$$$$$N$G$9!#(B
135
- $B7A<0$K$D$$$F$O?<$/DI5a$7$J$$$3$H$K$7$^$7$g$&!#(B
136
- </p>
137
-
138
-
139
- <h2>$B%a!<%k%7%9%F%`$NJz$($kLdBj(B</h2>
140
-
141
- <p>
142
- $B%a!<%k$O8=:_$"$k$J$+$G$O$[$H$s$I:G8E;2$N8E$$%7%9%F%`$G$9$+$i!"(B
143
- $BFCM-$NLdBj$,;`$L$[$I$"$j$^$9!#0J2<$$$/$D$+5s$2$^$7$g$&!#$^$:(B
144
- $BAw<u?.$+$i!#(B
145
- </p>
146
-
147
- <ul>
148
- <li>8 $B%S%C%HF)2a$G$J$$(B</li>
149
- <li>ASCII $BJ8;z0J30$rAw$k$H4m81(B</li>
150
- <li>$B%a!<%k$N(B <code>To:</code> $B$H(B <code>SMTP</code> $B$N(B To (RCPT TO) $B$OL54X78(B</li>
151
- <li>$B%a!<%k$N(B <code>From:</code> $B$H(B <code>SMTP</code> $B$N(B <code>From (MAIL FROM)</code> $B$bL54X78(B</li>
152
- </ul>
153
- <p>
154
- $B%a!<%k<+BN$K$D$$$F!#(B
155
- </p>
156
-
157
- <ul>
158
- <li>ASCII $BJ8;z0J30$rF~$l$k$H%P%0$k%a!<%i$,(B ($B$$$C$Q$$(B) $B$"$k(B</li>
159
- <li>$B%X%C%@$N=q<0$,D6J#;((B</li>
160
- <li>$B$7$+$b9q:]2=$N2aDx$G$5$i$KJ#;($K$J$C$?(B</li>
161
- <li>$BK?<R$N%a!<%i$,5,3J$rL5;k$7$?%a!<%k$P$C$+$j@8@.$9$k$N$G$b$O$d$I$&$K$b$J$i$J$$$/$i$$J#;($K$J$C$?(B</li>
162
- </ul>
163
- <p>
164
- $B%a!<%k%\%C%/%9$K$D$$$F!#(B
165
- </p>
166
-
167
- <ul>
168
- <li>$B<oN`$,$"$j$9$.$F$I$l$r;H$($P$$$$$N$+$o$+$i$J$$(B</li>
169
- <li>$B<oN`$,$"$j$9$.$FA4ItBP1~$J$s$F$G$-$J$$(B</li>
170
- <li>$B<oN`$,$"$j$9$.$F8_49@-$KLdBj$,(B ($B$h$/(B) $B=P$k(B</li>
171
- <li>$B$d$C$Q$j(B 8 $B%S%C%HF)2a$G$J$$(B</li>
172
- </ul>
173
- <p>
174
- $B$=$s$J$o$1$G!"(B<code>TMail</code> $B$,?t@i9T$"$k$N$K$O$=$l$J$j$NM}M3$,(B
175
- $B$"$k$N$G$9!#B?>/%m!<%I$,CY$/$F$bL\$r$D$V$C$F$/$@$5$$!#(B
176
- </p>
177
-
178
-
179
- <h2>$B%a!<%k$N;}$D>pJs(B</h2>
180
-
181
- <p>
182
- $B%a!<%k%X%C%@$K3JG<$5$l$F$$$k>pJs$K$D$$$F>/$7>\$7$/2r@b$7$^$9!#(B
183
- $B$b$C$H>\$7$/FbMF$d=q<0$K$D$$$FCN$j$?$$?M$O(B
184
- <a href="http://www.ietf.org/rfc/rfc2822.txt">RFC2822</a>
185
- $B$J$I$r8+$k$H$h$$$G$7$g$&!#(B
186
- </p>
187
-
188
- <dl>
189
- <dt><code>To:</code></dt>
190
- <dd>
191
- <p>
192
- $B08@h!#J#?t%"%I%l%9$r3JG<!#(B
193
- </p>
194
- </dd>
195
- <dt><code>From:</code></dt>
196
- <dd>
197
- <p>
198
- $BAw$j<g!#J#?t%"%I%l%9$r3JG<!#(B
199
- ($B$?$@$7DL>o$R$H$D$GJ#?t$N$H$-$O(B <code>Sender:</code> $B$r$D$1$J$1$l$P$$$1$J$$(B)
200
- </p>
201
- </dd>
202
- <dt><code>Subject:</code></dt>
203
- <dd>
204
- <p>
205
- $B<gBj!#%a!<%k$K=q$$$?FbMF$r0l8@$G6E=L$7$?$b$N!#(B
206
- $B!VBjL>!W$H$O$A$g$C$H0c$&!#(B
207
- </p>
208
- </dd>
209
- <dt><code>Date:</code></dt>
210
- <dd>
211
- <p>
212
- $B%a!<%k$rAw$C$?F|;~!#<u$1<h$C$?;~4V$G$b=q$$$?;~4V$G$b$J$$!#(B
213
- </p>
214
-
215
- </dd>
216
- <dt><code>Message-Id:</code></dt>
217
- <dd>
218
- <p>
219
- $BA4@$3&$K$*$$$F%a!<%k$H0lBP0l$KBP1~$9$k(B ($B$5$;$J$1$l$P$J$i$J$$(B)
220
- $BJ8;zNs!#%a!<%k$r:n@.$7$?%[%9%H$N(B <code>FQDN (</code>$B@5<0%[%9%HL>(B) $B$H;~9o!"(B
221
- $B%W%m%;%9!?%9%l%C%I(B <code>ID</code>$B!"%i%s%@%`J8;zNs$J$I$r;H$C$F:n$k$N$@$,!"(B
222
- <code>PPP</code> $B@\B3$J%Q%=%3%s$@$C$?$j$9$k$H(B <code>FQDN</code> $B$,$J$$$N$G:$$k!#$=$&$$$&(B
223
- $B$H$-$O!"4m81$J$N$r>5CN$G%W%m%P%$%@$N%a!<%k%5!<%P$N(B <code>FQDN</code> $B$KE,Ev$J(B
224
- $BJ8;zNs$r$/$C$D$1$F;H$&$7$+$J$$$H;W$&!#(B
225
- </p>
226
-
227
- <p>
228
- $B$A$J$_$K(B <code>sendmail (</code>$B0lHVM-L>$J(B <code>SMTP</code> $B%5!<%P(B) $B$O>!<j$K%a%C%;!<%8(B <code>ID</code>
229
- $B$r$D$1$F$/$l$k$N$G!"$=$l$r4|BT$9$k$N$b$h$$$+$b$7$l$J$$!#$,!"(B
230
- <code>qmail</code> $B$J$s$+$O$D$1$F$/$l$J$$$7!"5,3J$K@53N$K=>$&$J$i$P%a!<%i$,(B
231
- $BIU$1$k$N$,@5$7$$!#(B
232
- </p>
233
- </dd>
234
- <dt><code>In-Reply-To:</code></dt>
235
- <dd>
236
- <p>
237
- $B$3$N%a!<%k!"$,JV?.$7$?BP>]$N%a!<%k!"$N%a%C%;!<%8(B <code>ID</code>$B!#(B
238
- $B$3$N>pJs$r;H$C$FJV?.4X78$r%D%j!<$K$9$k$H$h$/8+$k(B
239
- $B!V%9%l%C%II=<(!W$K$J$k!#(B
240
- </p>
241
- </dd>
242
- <dt><code>References:</code></dt>
243
- <dd>
244
- <p>
245
- $B$3$N%a!<%k$,JV?.$7$?%a!<%k!"$,JV?.$7$?%a!<%k!"$,JV?.$7$?%a!<%k!D!D(B
246
- $B$H:F5"E*$K$?$I$C$F=8$a$?%a!<%k$N%a%C%;!<%8(B <code>ID</code> $B$N=89g!#(B
247
- <code>In-Reply-To</code> $B$HF1$8$h$&$K!"%a!<%k%9%l%C%I$r:n$k$N$K;H$($k!#(B
248
- </p>
249
-
250
- <p>
251
- $B4pK\E*$K$O4X78$"$k%a!<%k$N(B <code>ID</code> $B$OA4ItF~$l$k$,!"$5$9$,$K(B
252
- $BB?$9$.$k$H$-$O8E$$$b$N$+$i>JN,$7$F$h$$!#$?$H$($P(B 12 $B8D$H$+!#(B
253
- </p>
254
-
255
- </dd>
256
- <dt><code>Reply-To:</code></dt>
257
- <dd>
258
- <p>
259
- $B%a!<%k$KJV?.$9$k$H$-$K;H$&%"%I%l%9!#$3$N%X%C%@$,$"$k>l9g$O(B
260
- $B@dBP$K(B <code>From:</code> $B$K%a!<%k$rJV$7$F$O$$$1$J$$!#(B
261
- </p>
262
- </dd>
263
- <dt><code>Received:</code></dt>
264
- <dd>
265
- <p>
266
- $BG[Aw7PO)>pJs!#%a!<%k%7%9%F%`$N%G%P%C%0$d(B <code>SPAM</code> $B$NH/Aw85$N(B
267
- $BFCDj$H$+$K;H$($k!#$3$H$b$"$k!#4JC1$K56B$$G$-$k$+$i?.MQ(B
268
- $B$7$9$.$F$O$J$i$J$$!#(B
269
- </p>
270
-
271
- </dd>
272
- <dt><code>X-*:</code></dt>
273
- <dd>
274
- <p>
275
- <code>X-</code> $B$,F,$K$D$$$F$$$k%X%C%@$O5,3J$G7h$a$i$l$?$N$G$O$J$$!#(B
276
- $B$D$^$j2r<a$O<+M3!#M-L>$J$H$3$G$O(B <code>X-Mailer (</code>$B%a!<%iL>(B)$B$H$+!#(B
277
- </p>
278
-
279
- </dd>
280
- <dt><code>Mime-Version:</code></dt>
281
- <dd>
282
- <p>
283
- Content-* $B%X%C%@$r$D$1$k$J$iI,$:$D$1$J$1$l$P$$$1$J$$!#(B
284
- $B$$$^$N$H$3$m>o$K(B <code>"1.0"</code>$B!#(B
285
- </p>
286
-
287
- <p>
288
- MIME $B$H$O(B <code>Multipurpose Internet Mail Extentions</code> $B$NN,$@$,(B
289
- $B$$$^$OF1$85;=Q$,%a!<%k$K4X78$J$/$$$m$s$J$H$3$m$K;H$o$l$F$$$k!#(B
290
- </p>
291
- </dd>
292
- <dt>Content-Type:</dt>
293
- <dd>
294
- <p>
295
- $B%a!<%k$NCf?H$,$J$s$G$"$k$+<($9!#$J$s$G$"$k$+!"$H$O!"(B
296
- $B$?$H$($P!V%W%l!<%s%F%-%9%H$G$"$k!W$H$+!V(B<code>JPEG</code> $B$G$"$k!W$H$+!#(B
297
- $BB/$K8@$&$H$3$m$N!V(BMIME $B%?%$%W!W!#(BContent Type $B$N<oN`$K4X$7$F$O(B
298
- $B<!$N%;%/%7%g%s$G>\=R!#(B
299
- </p>
300
- </dd>
301
- <dt>Content-Disposition:</dt>
302
- <dd>
303
- <p>
304
- $B%a!<%k$N0LCVIU$1!#$H$$$&$H$o$1$o$+$s$J$$!#$"$j$F$$$K(B
305
- $B8@$&$H!"%^%k%A%Q!<%H%a!<%k$N$H$-$K%Q!<%H$,B>$N%Q!<%H$H(B
306
- $B$I$&$$$&4X78$K$"$k$+$r<($9$b$N!#$?$H$($P(B HTML $B$H$=$3$K(B
307
- $BF~$C$F$k3($H$+!"$=$&$$$&$3$H!#$d$j$+$?$O!D!D$d$C$F$[$7$/(B
308
- $B$J$$$+$i!"8@$o$J$$!#$I$&$7$F$b$d$j$?$1$l$P<+J,$GD4$Y$F!#(B
309
- </p>
310
- </dd>
311
- <dt>Content-Transfer-Encoding</dt>
312
- <dd>
313
- <p>
314
- $BA0=R$7$?$h$&$K(B <code>SMTP</code> $B$O(B 8 $B%S%C%HF)2a$G$J$$$N$G!"(B8 $B%S%C%H$a$,(B
315
- $BN)$C$F$k$H$-$O$J$K$+%(%s%3!<%I$7$FAw$k!#$=$&$$$&$H$-$K(B
316
- $B$3$N%X%C%@$K(B <code>Base64</code> $B$H$+=q$$$?$j$9$k!#(B
317
- </p>
318
-
319
-
320
- </dd>
321
- </dl>
322
- <h2>Content Type</h2>
323
-
324
- <p>
325
- $BM-L>$J(B Content Type $B$K$O0J2<$N$h$&$J$b$N$,$"$k!#(B
326
- </p>
327
-
328
- <ul>
329
- <li><code>text/plain</code></li>
330
- <li><code>text/html</code></li>
331
- <li><code>image/gif</code></li>
332
- <li><code>image/png</code></li>
333
- <li><code>image/jpeg</code></li>
334
- <li><code>application/octet-stream</code></li>
335
- <li><code>multipart/mixed</code> ($B<!$N%;%/%7%g%s$r;2>H(B)</li>
336
- </ul>
337
- <p>
338
- $B$^!"$@$$$?$$$o$+$k$G$7$g!#$^$?(B <code>text</code> $B$K$O(B <code>charset</code> $B$H$$$&(B
339
- $B%Q%i%a!<%?$,$D$-$b$N$G!"J8;z%3!<%I$N%(%s%3!<%G%#%s%0$r(B
340
- $B;X<($9$k!#$b$A$m$s(B <code>charset</code> $B$H%(%s%3!<%G%#%s%0$OJLJ*$G$"$k$N$@$,(B
341
- $B$$$C$?$s5,3J$G7h$^$C$F$7$^$C$?0J>e$O$=$&4JC1$KJQ$($i$l$J$$$N$@!#(B
342
- $B2f!9$K4X78$"$k(B <code>charset</code> $BCM$O<!$N$b$s$/$i$$!#(B
343
- </p>
344
-
345
- <ul>
346
- <li><code>us-ascii</code></li>
347
- <li><code>iso-2022-jp</code></li>
348
- <li><code>iso-2022-jp-2</code> <code>(iso-2022-jp</code> $B$r4Z9q8l$H$+$K$bBP1~$5$;$F3HD%$7$?$b$N(B)</li>
349
- <li><code>euc-jp</code></li>
350
- <li><code>shift_jis</code></li>
351
- <li><code>utf-8</code></li>
352
- </ul>
353
- <p>
354
- $BIaDL$NF|K\8l;H$$$J$i$P(B <code>iso-2022-jp (JIS)</code> $B$r;H$C$F$*$1$P$h$$!#$H$$$&$+(B
355
- $B$=$&$9$Y$-!#(B($B$b$A$m$s$A$c$s$H(B <code>NKF.nkf('-j',str)</code> $B$G%\%G%#$rJQ49$9$k$3$H(B)
356
- </p>
357
-
358
-
359
- <h2>$B%^%k%A%Q!<%H%a!<%k(B</h2>
360
-
361
- <p>
362
- Content-Type: multipart/* $B$N$H$-!"%a!<%k$O%^%k%A%Q!<%H%a!<%k(B
363
- $B$H$$$&$N$K$J$C$F$$$k!#0l8@$G8@$&$H!"%a!<%k%\%G%#$NCf$K$^$?%a!<%k$,(B
364
- $BF~$C$F$$$k$N$G$"$k!#B/$K8@$&!VE:IU%U%!%$%k!W$O$3$l$r;H$C$F(B
365
- $B%F%-%9%H$N%a!<%k$H2hA|$N%a!<%k$r$R$H$D$N%a!<%k$K4^$a$F$$$k$o$1$@!#(B
366
- $B$D$^$jE:IU$H$O8@$C$F$b7A<0>e$G$O%F%-%9%H$H2hA|$OJBNs$KJB$s$G$$$k!#(B
367
- </p>
368
-
369
-
370
- <h2>$BHf3SE*%^%$%J!<$J(B MIME $B3HD%(B</h2>
371
-
372
- <h3>$BJ,3d%a!<%k(B</h3>
373
-
374
- <p>
375
- $B$R$H$D$N%a!<%k$rJ#?t$N%a!<%k$KJ,3d$7$FAw$k$3$H$,$G$-$k!#(B
376
- $B$3$N$H$-(B Content-Type: message/partial$B!#:n$j$+$?$O(B
377
- RFC2046 $B$r;2>H!#(B
378
- </p>
379
-
380
- <p>
381
- $B%a!<%k$,$G$+$/$J$j$9$.$k$HESCf$N%U%!%$%"%&%)!<%k$H$+$,(B
382
- $B>!<j$K$3$l$r;H$C$F$V$C$?$.$k$3$H$,$"$k$N$G$H$-$?$^8+$+$1$k!#(B
383
- $B$7$+$7Aj<j$,J,3d%a!<%k$r:F@8$G$-$k$3$H$,J]>Z$5$l$k$J$i$P$$$$$,!"(B
384
- $B$=$&$G$J$$$J$i$=$&$$$&>!<j$J$3$H$r$7$F$O$$$1$J$$!#Aw$j85$K(B
385
- $B%(%i!<$rJV$9$Y$-$G$"$k!#(B
386
- </p>
387
-
388
- <h3>$B30It%(%s%F%#%F%#(B</h3>
389
-
390
- <p>
391
- $B%a!<%k$NK\BN$OJL$N$H$3$m$KCV$$$F$"$k$b$N!#$?$H$($P(B URL $B$r(B
392
- $B<($7$?$j$9$k!#(BContent-Type: message/external-body$B!#:n$j$+$?$O(B
393
- RFC2046 $B$r;2>H!#(B
394
- </p>
395
-
396
- <p>
397
- $B$I$3$G;H$C$F$s$@$m$&$H;W$C$F$$$?$,!"(B<code>IETF</code> $B$N%"%J%&%s%9(B ML $B$G(B
398
- $B;H$C$F$$$?!#%$%s%?!<%M%C%H%I%i%U%H$H$+$,=P$k$H!"%X%C%@$@$1$,(B
399
- $B%a!<%k$K=q$$$F$"$C$F(B <code>external-body</code> $B$GK\BN$r;X$7<($7$F$$$k!#(B
400
- $B$J$+$J$+8-$$!#$F$$$&$+(B <code>IETF</code> $B$,;H$o$J$+$C$?$i:>5=$+!#(B
401
- <code>(IETF</code> $B$O%$%s%?!<%M%C%H$G;H$&5,3J$r$^$H$a$F$kCDBN$G$9(B)
402
- </p>
403
-
404
- </body>
405
- </html>
@@ -1,49 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html lang="ja-JP">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
5
- <meta http-equiv="Content-Language" content="ja-JP">
6
- <title><code>class <a name="TMail%3a%3aConfig">TMail::Config</a> </code></title>
7
- </head>
8
- <body>
9
- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
10
- </script>
11
- <script type="text/javascript">
12
- _uacct = "UA-2871747-1";
13
- urchinTracker();
14
- </script>
15
-
16
-
17
- <h1><code>class <a name="TMail%3a%3aConfig">TMail::Config</a> </code></h1>
18
-
19
- <h2>$B%/%i%9%a%=%C%I(B</h2>
20
-
21
- <dl>
22
- <dt><a name="TMail%3a%3aConfig-new"><code>new(strict)</code></a> $B"*(B <code><a href="config.html#TMail%3a%3aConfig">TMail::Config</a></code></dt>
23
- <dd>
24
- <p>
25
- strict: true | false<br>
26
- </p>
27
-
28
- <p>
29
- <code>TMail::Config</code> $B%*%V%8%'%/%H$r@8@.$7$^$9!#(B<code>strict</code> $B$,??$N>l9g!"(B
30
- $B@8@.$5$l$?(B <code>Config</code> $B%*%V%8%'%/%H$N$9$Y$F$N(B <code>strict_*</code> $B%U%i%0$r(B
31
- $B%*%s$K$7$^$9!#(B
32
- </p>
33
-
34
- </dd>
35
- </dl>
36
- <h2>$B%$%s%9%?%s%9%a%=%C%I(B</h2>
37
-
38
- <dl>
39
- <dt><a name="TMail%3a%3aConfig-strict_parse%3f"><code>strict_parse?</code></a></dt>
40
- <dd>
41
- <p>
42
- $B??$J$i$P(B <code>TMail</code> $B$N%Q!<%5$O%X%C%@%Q!<%9Cf$KH/@8$7$?(B
43
- <code>TMail::SyntaxError</code> $B$rJV$7$^$9!#(B
44
- </p>
45
- </dd>
46
- </dl>
47
-
48
- </body>
49
- </html>