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,146 +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;EMM$N>\:Y(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;EMM$N>\:Y(B</h1>
18
-
19
- <h2>$BJ8;z%3!<%I$N07$$$K$D$$$F(B</h2>
20
-
21
- <h3>$BF~NO(B</h3>
22
-
23
- <p>
24
- $B4pK\E*$K$O!"%Q!<%5$X$NF~NO$O(B RFC $B$K1h$C$F@5$7$$%(%s%3!<%I$,(B
25
- $B$J$5$l$F$$$k$b$N$HA[Dj$7$F$$$^$9!#$G$9$,8=<B$K$O$=$&$G$J$$(B
26
- $B%a!<%k$bB?$$$N$G!"$"$kDxEY$N5,3J30%a!<%k$O5vMF$7$F$$$^$9!#(B
27
- $B$?$H$($P0J2<$N$h$&$J%X%C%@$O(B <code>TMail</code> $B$N%5%]!<%HBP>]$G$9!#(B
28
- ($B$?$@$7(B $KCODE $B$,E,@Z$K%;%C%H$5$l$F$$$J$1$l$P$$$1$^$;$s(B)
29
- </p>
30
- <pre>
31
- To: $BF|K\8l(B &lt;aamine@loveruby.net&gt;
32
- Content-Disposition: attached; filename=$BF|K\8l(B.doc
33
- </pre>
34
-
35
- <p>
36
- $B$^$?(B $KCODE=EUC/SJIS $B$N>l9g$O0J2<$N$h$&$J%X%C%@$b%Q!<%9(B
37
- $B$7$^$9!#(B<code>('</code>$BF|K\8l(B<code>'</code> $B$O@8$N(B <code>iso-2022-jp)</code>
38
- </p>
39
- <pre>
40
- To: $BF|K\8l(B &lt;aamine@loveruby.net&gt;
41
- To: "$BF|K\8l(B" &lt;aamine@loveruby.net&gt;
42
- To: Minero Aoki &lt;aamine@loveruby.net&gt; ($BF|K\8l(B)
43
- Content-Disposition: attached; filename=$BF|K\8l(B.doc
44
- Content-Disposition: attached; filename="$BF|K\8l(B.doc"
45
- </pre>
46
- <p>
47
- $B%/%*!<%H$d%3%a%s%HFb$K(B EUC $B$d(B <code>SJIS</code>$B!"(B<code>UTF8</code> $B$r@8$GF~$l$F$$$k(B
48
- $B%X%C%@$O$"$^$j$K<Y0-$9$.$k$N$G%5%]!<%H$7$^$;$s!#(B
49
- </p>
50
-
51
- <p>
52
- $B$$$o$f$kH>3QJ8;z$*$h$S5!<o0MB8J8;z$O$H$j$"$($:9MN8$7$F$$$^$;$s!#(B
53
- $B$,!"6a$/$J$$>-Mh$J$i$PB?>/$O$J$s$H$+$G$-$k$+$b$7$l$^$;$s!#(B
54
- </p>
55
-
56
- <p>
57
- $BF|K\8l0J30$N%(%s%3!<%G%#%s%0$K$O!"(BM17N Ruby $B$,0BDjHG$H$7$F(B
58
- $B%j%j!<%9$5$l$k$^$G$OBP1~$7$^$;$s!#(B
59
- </p>
60
-
61
- <h3>$B%G%3!<%I=PNO(B</h3>
62
-
63
- <p>
64
- <code>TMail</code> $B$NBgItJ,$N%a%=%C%I$OFC$KCG$j$,$J$$8B$j%G%3!<%I$7$?(B
65
- $BJ8;zNs$rJV$7$^$9!#J8;zNs$NCf$KF|K\8lJ8;zNs$,B8:_$9$k>l9g$O!"(B
66
- $KCODE $B$K=>$$%(%s%3!<%I$rJQ49$7$FJV$7$^$9!#$?$@$7%5%]!<%H(B
67
- $B$9$k$N$O(B $KCODE=EUC/SJIS $B$N>l9g$N$_$G!"$=$l0J30(B ($B$D$^$j(B <code>NONE</code> $B$+(B <code>UTF8)</code>
68
- $B$N$H$-$O%(%s%3!<%G%#%s%0$O0l@ZJQ49$5$l$^$;$s!#(B
69
- Ruby 1.6 $B0J9_$G$O(B $KCODE=NONE $B$,%G%U%)%k%H$J$N$GCm0U$7$F$/$@$5$$!#(B
70
- </p>
71
-
72
- <h3>$B%(%s%3!<%I=PNO(B</h3>
73
-
74
- <p>
75
- <code>encoded</code> $B%a%=%C%I$rBeI=$H$7$?%(%s%3!<%I=PNO%a%=%C%I$O$9$Y$F(B
76
- RFC $BE*$K@5$7$$%(%s%3!<%I$r9T$$$^$9(B ($B$H;W$$$^$9(B)$B!#=PNOB&$G(B
77
- $B%5%]!<%H$9$kJ8;z%(%s%3!<%G%#%s%0$O(B <code>iso-2022-jp</code>$B!"(BMIME $B%(%s(B
78
- $B%3!<%G%#%s%0$O(B <code>Base64/B</code> $B$N$_$G$9!#$3$l$O>-Mh$KEO$C$FJQ$($^$;$s!#(B
79
- </p>
80
-
81
-
82
- <h2>$B%3%a%s%H(B</h2>
83
-
84
- <p>
85
- $B%X%C%@$K$O%3%a%s%H$r4^$a$i$l$^$9!#$?$H$($P0J2<$N$&$A3g8L$G(B
86
- $B$/$/$i$l$?ItJ,$,%3%a%s%H$G$9!#(B
87
- </p>
88
- <pre>
89
- To: aamine@loveruby.net (This is comment.)
90
- </pre>
91
- <p>
92
- <code>TMail</code> $B$N%Q!<%5$O%3%a%s%H$r%Q!<%9$7$F%X%C%@%*%V%8%'%/%H$N(B
93
- <code>comments</code> $B$K3JG<$7$^$9$,!":FJ8;zNs2=$9$k$H$-$O$9$Y$F<N$F$k(B
94
- $B$h$&$K$J$C$F$$$^$9!#$J$<$+$H$$$&$H!"%a!<%k%X%C%@$N%3%a%s%H$O(B
95
- $BK\Ev$K$I$3$K$G$bCV$1$k$h$&$K$J$C$F$$$k$N$G!"%Q!<%9$7$?8e$+$i(B
96
- $B$G$O%3%a%s%H$,$I$N>l=j$K$"$C$?$N$+H=CG$G$-$J$$$+$i$G$9!#(B
97
- $B$?$H$($P0J2<$N$h$&$J%X%C%@$O$h$/8+$+$1$^$9!#(B
98
- </p>
99
- <pre>
100
- Received: from mail.loveruby.net (mail.loveruby.net [192.168.1.1])
101
- by doraemon.edit.ne.jp (8.12.1/8.12.0) with ESMTP id g0CGj4bo035
102
- for &lt;aamine@mx.edit.ne.jp&gt;; Sun, 13 Jan 2002 01:45:05 +0900 (JST)
103
- </pre>
104
- <p>
105
- $B$3$&$$$&>l9g!"3F%3%a%s%H$r$I$NMWAG$K=jB0$5$;$k$+$O?M4V$G(B
106
- $B$J$1$l$PH=CG$G$-$^$;$s!#$"$kDxEY%R%e!<%j%9%F%#%C%/$K$d$k$3$H$O(B
107
- $B2DG=$G$9$,!"$$$C$?$s30$l$?$i40`z$K<:GT$7$F$7$^$&$G$7$g$&!#(B
108
- $B85$N%X%C%@$r:F@8$G$-$k$h$&$K8+$;$+$1$F$*$$$F;~!9<:GT$9$k$H(B
109
- $B$$$&$N$O$"$^$j$KM-32$G$9$+$i!"$=$l$h$j$O7i$/A4It<N$F$k!"(B
110
- $B$H$$$&$N$,$$$^$N$H$3$m$N7kO@$G$9!#$I$&$;%3%a%s%H$O%3%a%s%H$G(B
111
- $B$"$C$FK\<A$K$O4X78$J$$$N$G$9$+$i!"$b$&%3%a%s%H$KMj$k$N$O(B
112
- $B$d$a$^$7$g$&!#(B
113
- </p>
114
-
115
- <p>
116
- $BFC$K!"%"%I%l%9%U%#!<%k%I$K$*$$$FK\L>$r%3%a%s%H$KF~$l$?$j$9$k(B
117
- $B$N$O:GDc$G$9!#$A$c$s$HJ8K!E*$KL>A0$r3JG<$9$k>l=j$,$"$k$N$K!"(B
118
- $B$o$6$o$6%3%a%s%H$r;H$&M}M3$OA4$/$"$j$^$;$s!#$=$&$$$&%X%C%@(B
119
- $B@_Dj$r$7$F$$$k?M$O$9$0$K%a!<%i$+@_Dj$+$I$A$i$+$rJQ$($^$7$g$&!#(B
120
- </p>
121
-
122
- <p>
123
- $B$b$C$H$b!"BgDq$N>l9g$K$O$3$l$GLdBj$J$$$N$G$9$,!"%a!<%k$NFbMF$r(B
124
- $B%U%#%k%?%j%s%0$9$k$h$&$J>l9g$OCWL?=}$K$J$j$($^$9!#$?$H$($P(B ML
125
- $B%I%i%$%P$G$O(B <code>Subject</code> $B$r2C9)$7$?$j$7$?$$$G$7$g$&$+$i!"<!$N$h$&$J(B
126
- $B%3!<%I$r=q$-$?$/$J$j$^$9!#(B
127
- </p>
128
- <pre>
129
- mail = TMail::Mail.load(filename)
130
- mail.subject = "[my-list:#{number}] " + mail.subject
131
- mail.write_back
132
- </pre>
133
- <p>
134
- $B$7$+$7$3$l$G$O%3%a%s%H$,<:$o$l$F$7$^$$$^$9!#>C$($F$b$$$$(B
135
- $B%3%a%s%H$b$"$j$^$9$,!"(B<code>Received:</code> $B$N%3%a%s%H$J$I$OHs>o$K(B
136
- $B=EMW$G$9!#(B
137
- </p>
138
-
139
- <p>
140
- $B$3$l$rHr$1$k$K$O!"$R$H$D$N(B <code>TMail::Mail</code> $B%*%V%8%'%/%H$O>o$K(B
141
- $B>pJs<hF@$+=PNO$N$I$A$i$+$@$1$K8BDj$7$F;H$&$3$H$G$9!#>-Mh$O(B
142
- $B$b$&>/$7$$$$J}K!$r9M$($^$9!#(B
143
- </p>
144
-
145
- </body>
146
- </html>
@@ -1,39 +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>TMail $B%f!<%6!<%^%K%e%"%k(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>TMail $B%f!<%6!<%^%K%e%"%k(B</h1>
18
-
19
- <p>
20
- $B%P!<%8%g%s(B 0.10 $BBP1~(B
21
- </p>
22
-
23
- <ul>
24
- <li><a href="basics.html" >$B%a!<%k%7%9%F%`$N4pAC(B </a>
25
- <li><a href="usage.html" >TMail $B$N4pK\(B </a>
26
- <li><a href="details.html">$B;EMM$N>\:Y(B </a>
27
- <li><a href="mail.html" >Mail $B%/%i%9%j%U%!%l%s%9(B </a>
28
- <li><a href="address.html">$B%"%I%l%9%/%i%9%j%U%!%l%s%9(B </a>
29
- <li><a href="mailbox.html">$B%a!<%k%\%C%/%9%/%i%9%j%U%!%l%s%9(B </a>
30
- <li><a href="port.html" >$B%]!<%H%/%i%9%j%U%!%l%s%9(B </a>
31
- <li><a href="config.html" >Config $B%/%i%9%j%U%!%l%s%9(B </a>
32
- <li><a href="tmail.html" >TMail $B%b%8%e!<%k%j%U%!%l%s%9(B </a>
33
-
34
-
35
-
36
- </ul>
37
-
38
- </body>
39
- </html>
@@ -1,793 +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%3aMail">TMail::Mail</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%3aMail">TMail::Mail</a> </code></h1>
18
-
19
- <h2>$B%/%i%9%a%=%C%I(B</h2>
20
-
21
- <dl>
22
- <dt><a name="TMail%3a%3aMail-new"><code>new(port = TMail::StringPort.new, <var>config</var> = DEFAULT_CONFIG)</code></a> $B"*(B <code><a href="mail.html#TMail%3a%3aMail">TMail::Mail</a></code></dt>
23
- <dd>
24
- <p>
25
- port: <a href="port.html#TMail%3a%3aPort">TMail::Port</a><br>
26
- config: <a href="config.html#TMail%3a%3aConfig">TMail::Config</a><br>
27
- </p>
28
-
29
- <p>
30
- <code>port</code> $B$+$i(B <code>Mail</code> $B%*%V%8%'%/%H$r:n@.$7$^$9!#(B
31
- </p>
32
-
33
- </dd>
34
- <dt><a name="TMail%3a%3aMail-load"><code>load(filename)</code></a> $B"*(B <code><a href="mail.html#TMail%3a%3aMail">TMail::Mail</a></code></dt>
35
- <dd>
36
- <p>
37
- filename: String<br>
38
- </p>
39
-
40
- <p>
41
- $B%U%!%$%k(B <code>filename</code> $B$+$i%a!<%k$r%m!<%I$7$F(B <code>Mail</code> $B%*%V%8%'%/%H$r:n@.$7$^$9!#(B
42
- $B%m!<%I$9$k%U%!%$%k$O(B MH $B$N%a!<%k$N$h$&$K%a!<%k0lDL$,%U%!%$%k$R$H$D$K(B
43
- $BBP1~$7$F$$$J$1$l$P$$$1$^$;$s!#(B
44
- </p>
45
-
46
- <p>
47
- UNIX mbox $B$N$h$&$J7A<0$OC1FH$G$OBP1~$7$F$$$^$;$s!#(B
48
- <a href="mbox.html">$B%a!<%k%\%C%/%9%/%i%9(B</a>$B$r;H$C$F$/$@$5$$!#(B
49
- </p>
50
-
51
- </dd>
52
- <dt><a name="TMail%3a%3aMail-parse"><code>parse(str)</code></a> $B"*(B <code><a href="mail.html#TMail%3a%3aMail">TMail::Mail</a></code></dt>
53
- <dd>
54
- <p>
55
- str: String<br>
56
- </p>
57
-
58
- <p>
59
- $BJ8;zNs(B <code>str</code> $B$r%Q!<%9$7$F(B <code>TMail::Mail</code> $B%*%V%8%'%/%H$r:n@.$7$^$9!#(B
60
- <code>str</code> $B$O%a!<%k0lDLJ,$G$J$1$l$P$$$1$^$;$s!#(B
61
- </p>
62
-
63
- </dd>
64
- </dl>
65
- <h2>$B%$%s%9%?%s%9%a%=%C%I(B</h2>
66
-
67
- <dl>
68
- <dt><a name="TMail%3a%3aMail-port"><code>port</code></a> $B"*(B <code><a href="port.html#TMail%3a%3aPort">TMail::Port</a></code></dt>
69
- <dd>
70
- <p>
71
- $B$3$N%a!<%k%*%V%8%'%/%H$N@8@.85$N%]!<%H$G$9!#(B
72
- </p>
73
-
74
- </dd>
75
- <dt><a name="TMail%3a%3aMail-body_port"><code>body_port</code></a> $B"*(B <code><a href="port.html#TMail%3a%3aPort">TMail::Port</a></code></dt>
76
- <dd>
77
- <p>
78
- $B%a!<%kK\J8$rJ]B8$7$F$$$k%]!<%H$rJV$7$^$9!#(B
79
- </p>
80
-
81
- <p>
82
- $B$?$@$7$3$3$K=q$-$3$s$G$b%m!<%I85$N%U%!%$%k(B($B$dJ8;zNs(B)$B$OJQ99$5$l$^$;$s!#(B
83
- $B<B:]$KJQ99$9$k$?$a$K$O$3$N%]!<%H$K=q$-$3$s$@8e(B <code><a href="mail.html#TMail%3a%3aMail-write_back">#write_back</a></code> $B$r8F$V(B
84
- $BI,MW$,$"$j$^$9!#(B
85
- </p>
86
-
87
- </dd>
88
- <dt><a name="TMail%3a%3aMail-each%20%7b%7cline%7c%20%2e%2e%2e%2e%20%7d"><code>each {|line| .... }</code></a></dt>
89
- <dd>
90
- <p>
91
- line: String<br>
92
- </p>
93
-
94
- <p>
95
- $BK\J8J8;zNs$N3F9T$KBP$9$k7+$jJV$7!#(B
96
- <code>body_port.ropen {|f| f.each }</code> $B$HF1$8$G$9!#(B
97
- </p>
98
-
99
- </dd>
100
- <dt><a name="TMail%3a%3aMail-body"><code>body</code></a> $B"*(B <code>String</code></dt>
101
- <dt><a name="TMail%3a%3aMail-preamble"><code>preamble</code></a> $B"*(B <code>String</code></dt>
102
- <dd>
103
- <p>
104
- $B%a!<%k%\%G%#(B($BK\J8(B)$BA4$F$rJ8;zNs$H$7$FJV$7$^$9!#(B
105
- MIME $B%^%k%A%Q!<%H%a!<%k$N$H$-$O(B <code>preamble</code> $B$KAjEv$7$^$9!#(B
106
- $B$3$NJV$jCM$rJQ99$7$F$b%*%j%8%J%k$OJQ99$5$l$^$;$s!#(B
107
- </p>
108
-
109
- </dd>
110
- <dt><a name="TMail%3a%3aMail-parts"><code>parts</code></a> $B"*(B <code>[<a href="mail.html#TMail%3a%3aMail">TMail::Mail</a>]</code></dt>
111
- <dd>
112
- <p>
113
- $B%a!<%k$,(B MIME $B%^%k%A%Q!<%H%a!<%k$N;~!"3F%Q!<%H$,(B <code>TMail::Mail</code> $B$NG[Ns$H$7$F(B
114
- $B3JG<$5$l$F$$$^$9!#%^%k%A%Q!<%H%a!<%k$G$J$$$H$-$O6u$NG[Ns$G$9!#(B
115
- </p>
116
-
117
- <p>
118
- $B$?$@$7$3$3$K=q$-$3$s$G$b%m!<%I85$N%U%!%$%k(B($B$dJ8;zNs(B)$B$OJQ99$5$l$^$;$s!#(B
119
- $B<B:]$KJQ99$9$k$?$a$K$O$3$N%*%V%8%'%/%H$K=q$-$3$s$@$"$H(B <code><a href="mail.html#TMail%3a%3aMail-write_back">#write_back</a></code> $B$r(B
120
- $B8F$VI,MW$,$"$j$^$9!#(B
121
- </p>
122
-
123
- </dd>
124
- <dt><a name="TMail%3a%3aMail-epilogue"><code>epilogue</code></a> $B"*(B <code>String</code></dt>
125
- <dd>
126
- <p>
127
- MIME $B%^%k%A%Q!<%H%a!<%k$G$N(B <code>epilogue</code> $B$KAjEv$9$kJ8;zNs$G$9!#(B
128
- $BDL>o$N%a!<%k$N$H$-$O6uJ8;zNs$,F~$C$F$$$^$9!#(B
129
- </p>
130
-
131
- <p>
132
- $B$?$@$7$3$3$K=q$-$3$s$G$b%m!<%I85$N%U%!%$%k(B($B$dJ8;zNs(B)$B$OJQ99$5$l$^$;$s!#(B
133
- $B<B:]$KJQ99$9$k$?$a$K$O=q$-$3$s$@8e(B <code><a href="mail.html#TMail%3a%3aMail-write_back">#write_back</a></code> $B$r8F$VI,MW$,$"$j$^$9!#(B
134
- </p>
135
-
136
- </dd>
137
- <dt><a name="TMail%3a%3aMail-multipart%3f"><code>multipart?</code></a></dt>
138
- <dd>
139
- <p>
140
- $B%a!<%k$,(B MIME $B%^%k%A%Q!<%H$N$H$-??!#(B
141
- $B$3$N%a%=%C%I$O(B <code>Content-Type</code> $B%X%C%@$NFbMF$G??56$rH=CG$7$^$9!#(B
142
- </p>
143
-
144
- </dd>
145
- <dt><a name="TMail%3a%3aMail-encoded"><code>encoded(eol = "\n", <var>encoding</var> = 'j')</code></a> $B"*(B <code>String</code></dt>
146
- <dd>
147
- <p>
148
- eol: String<br>
149
- encoding: String<br>
150
- </p>
151
-
152
- <p>
153
- $B%a!<%k$r(B <code>RFC2822</code> $B7A<0$K%(%s%3!<%I$7$?J8;zNs$KJQ49$7$^$9!#(B
154
- $B$=$N:]!"%X%C%@$N9TKv%3!<%I$r(B <code>eol</code> $B$K!"%X%C%@Fb$N%(%s%3!<%IA0$N(B
155
- $BF|K\8lJ8;zNs$NJ8;z%3!<%I$r(B <code><var>encoding</var></code> $B$KJQ49$7$^$9!#(B
156
- $B$?$@$78=:_(B <code><var>encoding</var></code> $B$O(B <code>"j" (JIS)</code> $B$7$+@5>o$KF0:n$7$^$;$s!#(B
157
- </p>
158
-
159
- <p>
160
- $B%P!<%8%g%s(B <code>0.9</code> $B$+$i$O(B <code><a href="mail.html#TMail%3a%3aMail-to_s">#to_s</a></code> $B$O(B <code><a href="mail.html#TMail%3a%3aMail-decoded">#decoded</a></code> $B$NJLL>$K$J$C$?$N$G!"$3$N(B
161
- $B%a%=%C%I$H$O0c$&$O$?$i$-$r$7$^$9!#(B
162
- </p>
163
-
164
- </dd>
165
- <dt><a name="TMail%3a%3aMail-decoded"><code>decoded(eol = "\n", <var>encoding</var> = 'e')</code></a> $B"*(B <code>String</code></dt>
166
- <dt><a name="TMail%3a%3aMail-to_s"><code>to_s(eol = "\n", <var>encoding</var> = 'e')</code></a> $B"*(B <code>String</code></dt>
167
- <dd>
168
- <p>
169
- eol: String<br>
170
- encoding: String<br>
171
- </p>
172
-
173
- <p>
174
- $B%a!<%k$r%G%3!<%I$5$l$?J8;zNs$KJQ49$7$^$9!#$=$N:]!"%X%C%@$N9TKv(B
175
- $B%3!<%I$r(B <code>eol</code> $B$K!"%X%C%@Fb$N%(%s%3!<%IA0$NF|K\8lJ8;zNs$NJ8;z%3!<%I$r(B
176
- <code><var>encoding</var></code> $B$KJQ49$7$^$9!#(B
177
- </p>
178
-
179
- <p>
180
- $B%P!<%8%g%s(B <code>0.9</code> $B0J9_$O(B <code><a href="mail.html#TMail%3a%3aMail-to_s">#to_s</a></code> $B$O$3$N%a%=%C%I$NJLL>$K$J$j$^$7$?!#(B
181
- </p>
182
-
183
- </dd>
184
- <dt><a name="TMail%3a%3aMail-inspect"><code>inspect</code></a> $B"*(B <code>String</code></dt>
185
- <dd>
186
- <p>
187
- $B0JA0$O(B <code><a href="mail.html#TMail%3a%3aMail-decoded">#decoded</a></code> $B$NJLL>$G$7$?$,%P!<%8%g%s(B <code>0.9</code> $B$+$i$O(B
188
- <code>"#&lt;TMail::Mail port=&lt;StringPort:str=...&gt;&gt;"</code>
189
- $B$N$h$&$J4J7i$JJ8;zNs2=$r9T$$$^$9!#(B
190
- </p>
191
-
192
- </dd>
193
- <dt><a name="TMail%3a%3aMail-write_back"><code>write_back(eol = "\n", <var>encoding</var> = 'e')</code></a></dt>
194
- <dd>
195
- <p>
196
- eol: String<br>
197
- encoding: String<br>
198
- </p>
199
-
200
- <p>
201
- $B%a!<%kA4BN$rJ8;zNs2=$7(B <code>body_port</code> $B$K=q$-La$7$^$9!#$=$N:]!"%X%C%@$N(B
202
- $B9TKv%3!<%I$r(B <code>eol</code> $B$K!"%X%C%@Fb$NF|K\8lJ8;zNs$NJ8;z%3!<%I$r(B <code><var>encoding</var></code> $B$K(B
203
- $BJQ49$7$^$9!#(B
204
- </p>
205
-
206
- </dd>
207
- </dl>
208
- <h3>$BB0@-%"%/%;%9$N$?$a$N%a%=%C%I(B</h3>
209
-
210
- <dl>
211
- <dt><a name="TMail%3a%3aMail-date"><code>date(default = nil)</code></a> $B"*(B <code>Time</code></dt>
212
- <dt><a name="TMail%3a%3aMail-date%3d"><code>date=(datetime)</code></a></dt>
213
- <dd>
214
- <p>
215
- datetime: Time<br>
216
- default: Object<br>
217
- </p>
218
-
219
- <p>
220
- <code>Date:</code> $B%X%C%@$KBP1~$9$k(B <code>Time</code> $B%*%V%8%'%/%H!#(B
221
- $B>o$K%m!<%+%k%?%$%`$KJQ49$5$l$^$9!#(B
222
- </p>
223
-
224
- </dd>
225
- <dt><a name="TMail%3a%3aMail-strftime"><code>strftime(format, <var>default</var> = nil)</code></a> $B"*(B <code>String</code></dt>
226
- <dd>
227
- <p>
228
- format: String<br>
229
- default: Object<br>
230
- </p>
231
-
232
- <p>
233
- <code>Date:</code> $B%X%C%@$KI=8=$5$l$?;~9o$HBP1~$9$k(B <code>Time</code> $B%*%V%8%'%/%H$KBP$7(B
234
- <code>strftime</code> $B$r8F$S$^$9!#(B<code>Date:</code> $B%X%C%@$,B8:_$7$J$$>l9g$O(B <code><var>default</var></code> $B$r(B
235
- $BJV$7$^$9!#(B
236
- </p>
237
-
238
- </dd>
239
- <dt><a name="TMail%3a%3aMail-to"><code>to(default = nil)</code></a> $B"*(B <code>[String]</code></dt>
240
- <dt><a name="TMail%3a%3aMail-to%3d"><code>to=(specs)</code></a></dt>
241
- <dd>
242
- <p>
243
- specs: String | [String]<br>
244
- default: Object<br>
245
- </p>
246
-
247
- <p>
248
- <code>To:</code> $B%"%I%l%9$N(B <code>spec</code> $B$NG[Ns!#(B
249
- </p>
250
-
251
- </dd>
252
- <dt><a name="TMail%3a%3aMail-to_addrs"><code>to_addrs(default = nil)</code></a> $B"*(B <code>[<a href="address.html#TMail%3a%3aAddress">TMail::Address</a> | <a href="address.html#TMail%3a%3aAddressGroup">TMail::AddressGroup</a>]</code></dt>
253
- <dt><a name="TMail%3a%3aMail-to_addrs%3d"><code>to_addrs=(addrs)</code></a></dt>
254
- <dd>
255
- <p>
256
- addrs: <a href="address.html#TMail%3a%3aAddress">TMail::Address</a> | [<a href="address.html#TMail%3a%3aAddress">TMail::Address</a>]<br>
257
- default: Object<br>
258
- </p>
259
-
260
- <p>
261
- <code>To:</code> $B%"%I%l%9$NG[Ns!#(B
262
- </p>
263
-
264
- </dd>
265
- <dt><a name="TMail%3a%3aMail-cc"><code>cc(default = nil)</code></a> $B"*(B <code>[String]</code></dt>
266
- <dt><a name="TMail%3a%3aMail-cc%3d"><code>cc=(specs)</code></a></dt>
267
- <dd>
268
- <p>
269
- specs: String | [String]<br>
270
- default: Object<br>
271
- </p>
272
-
273
- <p>
274
- <code>Cc:</code> $B%"%I%l%9$N(B <code>spec</code> $B$NG[Ns!#(B
275
- </p>
276
-
277
- </dd>
278
- <dt><a name="TMail%3a%3aMail-cc_addrs"><code>cc_addrs(default = nil)</code></a> $B"*(B <code>[<a href="address.html#TMail%3a%3aAddress">TMail::Address</a>]</code></dt>
279
- <dt><a name="TMail%3a%3aMail-cc_addrs%3d"><code>cc_addrs=(addrs)</code></a></dt>
280
- <dd>
281
- <p>
282
- addrs: <a href="address.html#TMail%3a%3aAddress">TMail::Address</a> | [<a href="address.html#TMail%3a%3aAddress">TMail::Address</a>]<br>
283
- default: Object<br>
284
- </p>
285
-
286
- <p>
287
- <code>Cc:</code> $B%"%I%l%9$NG[Ns!#(B
288
- </p>
289
-
290
- </dd>
291
- <dt><a name="TMail%3a%3aMail-bcc"><code>bcc(default = nil)</code></a> $B"*(B <code>[String]</code></dt>
292
- <dt><a name="TMail%3a%3aMail-bcc%3d"><code>bcc=(specs)</code></a></dt>
293
- <dd>
294
- <p>
295
- specs: String | [String]<br>
296
- default: Object<br>
297
- </p>
298
-
299
- <p>
300
- <code>Bcc:</code> $B%"%I%l%9$N(B <code>spec</code> $B$NG[Ns!#(B
301
- </p>
302
-
303
- </dd>
304
- <dt><a name="TMail%3a%3aMail-bcc_addrs"><code>bcc_addrs(default = nil)</code></a> $B"*(B <code>[<a href="address.html#TMail%3a%3aAddress">TMail::Address</a>]</code></dt>
305
- <dt><a name="TMail%3a%3aMail-bcc_addrs%3d"><code>bcc_addrs=(addrs)</code></a></dt>
306
- <dd>
307
- <p>
308
- addrs: <a href="address.html#TMail%3a%3aAddress">TMail::Address</a> | [<a href="address.html#TMail%3a%3aAddress">TMail::Address</a>]<br>
309
- default: Object<br>
310
- </p>
311
-
312
- <p>
313
- <code>Bcc:</code> $B%"%I%l%9$NG[Ns!#(B
314
- </p>
315
-
316
- </dd>
317
- <dt><a name="TMail%3a%3aMail-from"><code>from(default = nil)</code></a> $B"*(B <code>[String]</code></dt>
318
- <dt><a name="TMail%3a%3aMail-from%3d"><code>from=(specs)</code></a></dt>
319
- <dd>
320
- <p>
321
- specs: String | [String]<br>
322
- default: Object<br>
323
- </p>
324
-
325
- <p>
326
- <code>From:</code> $B%"%I%l%9$N(B <code>spec</code> $B$NG[Ns!#(B
327
- </p>
328
-
329
- </dd>
330
- <dt><a name="TMail%3a%3aMail-from_addrs"><code>from_addrs(default = nil)</code></a> $B"*(B <code>[<a href="address.html#TMail%3a%3aAddress">TMail::Address</a>]</code></dt>
331
- <dt><a name="TMail%3a%3aMail-from_addrs%3d"><code>from_addrs=(addrs)</code></a></dt>
332
- <dd>
333
- <p>
334
- addrs: <a href="address.html#TMail%3a%3aAddress">TMail::Address</a> | [<a href="address.html#TMail%3a%3aAddress">TMail::Address</a>]<br>
335
- default: Object<br>
336
- </p>
337
-
338
- <p>
339
- <code>From:</code> $B%"%I%l%9$NG[Ns!#(B
340
- </p>
341
-
342
- </dd>
343
- <dt><a name="TMail%3a%3aMail-friendly_from"><code>friendly_from(default = nil)</code></a> $B"*(B <code>String</code></dt>
344
- <dd>
345
- <p>
346
- default: Object<br>
347
- </p>
348
-
349
- <p>
350
- <code>From:</code> $B$N:G=i$N%"%I%l%9$N(B <code>phrase</code> $B$^$?$O(B <code>spec</code>$B!#(B
351
- <code>From:</code> $B$,B8:_$7$J$$$H$-$O(B <code>default</code> $B$rJV$7$^$9!#(B
352
- </p>
353
-
354
- </dd>
355
- <dt><a name="TMail%3a%3aMail-reply_to"><code>reply_to(default = nil)</code></a> $B"*(B <code>[String]</code></dt>
356
- <dt><a name="TMail%3a%3aMail-reply_to%3d"><code>reply_to=(specs)</code></a></dt>
357
- <dd>
358
- <p>
359
- specs: String | [String]<br>
360
- default: Object<br>
361
- </p>
362
-
363
- <p>
364
- <code>Reply-To:</code> $B%"%I%l%9$N(B <code>spec</code> $B$NG[Ns!#(B
365
- </p>
366
-
367
- </dd>
368
- <dt><a name="TMail%3a%3aMail-reply_to_addrs"><code>reply_to_addrs(default = nil)</code></a> $B"*(B <code>[<a href="address.html#TMail%3a%3aAddress">TMail::Address</a>]</code></dt>
369
- <dt><a name="TMail%3a%3aMail-reply_to_addrs%3d"><code>reply_to_addrs=(addrs)</code></a></dt>
370
- <dd>
371
- <p>
372
- addrs: <a href="address.html#TMail%3a%3aAddress">TMail::Address</a> | [<a href="address.html#TMail%3a%3aAddress">TMail::Address</a>]<br>
373
- default: Object<br>
374
- </p>
375
-
376
- <p>
377
- <code>Reply-To:</code> $B%"%I%l%9$NG[Ns!#(B
378
- </p>
379
-
380
- </dd>
381
- <dt><a name="TMail%3a%3aMail-sender"><code>sender(default = nil)</code></a> $B"*(B <code>String</code></dt>
382
- <dt><a name="TMail%3a%3aMail-sender%3d"><code>sender=(spec)</code></a></dt>
383
- <dd>
384
- <p>
385
- spec: String<br>
386
- </p>
387
-
388
- <p>
389
- <code>Sender:</code> $B%"%I%l%9$N(B <code>spec</code>
390
- </p>
391
-
392
- </dd>
393
- <dt><a name="TMail%3a%3aMail-sender_addr"><code>sender_addr(default = nil)</code></a> $B"*(B <code><a href="address.html#TMail%3a%3aAddress">TMail::Address</a></code></dt>
394
- <dt><a name="TMail%3a%3aMail-sender_addr%3d"><code>sender_addr=(addr)</code></a></dt>
395
- <dd>
396
- <p>
397
- addr: <a href="address.html#TMail%3a%3aAddress">TMail::Address</a><br>
398
- </p>
399
-
400
- <p>
401
- <code>Sender:</code> $B%"%I%l%9(B
402
- </p>
403
-
404
- </dd>
405
- <dt><a name="TMail%3a%3aMail-subject"><code>subject(default = nil)</code></a> $B"*(B <code>String</code></dt>
406
- <dt><a name="TMail%3a%3aMail-subject%3d"><code>subject=(sbj)</code></a></dt>
407
- <dd>
408
- <p>
409
- sbj: String<br>
410
- </p>
411
-
412
- <p>
413
- <code>Subject:</code> $B$NFbMF!#(B
414
- <code>Subject:</code> $B$,B8:_$7$J$$$H$-$O(B <code>default</code> $B$rJV$7$^$9!#(B
415
- </p>
416
-
417
- </dd>
418
- <dt><a name="TMail%3a%3aMail-message_id"><code>message_id(default = nil)</code></a> $B"*(B <code>String</code></dt>
419
- <dt><a name="TMail%3a%3aMail-message_id%3d"><code>message_id=(id)</code></a></dt>
420
- <dd>
421
- <p>
422
- id: String<br>
423
- </p>
424
-
425
- <p>
426
- $B%a!<%k$N%a%C%;!<%8(B <code>ID</code>$B!#(B
427
- </p>
428
-
429
- </dd>
430
- <dt><a name="TMail%3a%3aMail-in_reply_to"><code>in_reply_to(default = nil)</code></a> $B"*(B <code>[String]</code></dt>
431
- <dt><a name="TMail%3a%3aMail-in_reply_to%3d"><code>in_reply_to=(ids)</code></a></dt>
432
- <dd>
433
- <p>
434
- ids: String | [String]<br>
435
- </p>
436
-
437
- <p>
438
- <code>In-Reply-To:</code> $B$K4^$^$l$k%a%C%;!<%8(B <code>ID</code> $B$N%j%9%H!#(B
439
- </p>
440
-
441
- </dd>
442
- <dt><a name="TMail%3a%3aMail-references"><code>references(default = nil)</code></a> $B"*(B <code>[String]</code></dt>
443
- <dt><a name="TMail%3a%3aMail-references%3d"><code>references=(ids)</code></a></dt>
444
- <dd>
445
- <p>
446
- ids: String | [String]<br>
447
- </p>
448
-
449
- <p>
450
- <code>References:</code> $B$K4^$^$l$k%a%C%;!<%8(B <code>ID</code> $B$N%j%9%H!#(B
451
- $B8=:_$O(B <code>References:</code> $B$K$O%a%C%;!<%8(B <code>ID</code> $B0J30$O(B
452
- $B4^$a$i$l$^$;$s!#(B<code>(RFC2822)</code>
453
- </p>
454
-
455
- </dd>
456
- <dt><a name="TMail%3a%3aMail-mime_version"><code>mime_version(default = nil)</code></a> $B"*(B <code>String</code></dt>
457
- <dt><a name="TMail%3a%3aMail-mime_version%3d"><code>mime_version=(ver)</code></a></dt>
458
- <dd>
459
- <p>
460
- ver: String<br>
461
- </p>
462
-
463
- <p>
464
- MIME $B%P!<%8%g%s!#8=:_$O>o$K(B <code>"1.0"</code> $B$G$9!#(B
465
- $B%X%C%@$,B8:_$7$J$$>l9g$O(B <code>default</code> $B$rJV$7$^$9!#(B
466
- </p>
467
-
468
- </dd>
469
- <dt><a name="TMail%3a%3aMail-set_mime_version"><code>set_mime_version(major, <var>minor</var>)</code></a></dt>
470
- <dd>
471
- <p>
472
- major: Integer<br>
473
- minor: Integer<br>
474
- </p>
475
-
476
- <p>
477
- MIME $B%P!<%8%g%s$r%;%C%H$7$^$9!#(B
478
- </p>
479
-
480
- </dd>
481
- <dt><a name="TMail%3a%3aMail-content_type"><code>content_type(default = nil)</code></a> $B"*(B <code>String</code></dt>
482
- <dd>
483
- <p>
484
- $B%a!<%kK\BN$N%U%!%$%k%?%$%W$r<($9J8;zNs!#Nc$($P(B <code>"text/plain"</code>$B!#(B
485
- $B%X%C%@$,B8:_$7$J$$>l9g$O(B <code>default</code> $B$rJV$7$^$9!#(B
486
- </p>
487
-
488
- </dd>
489
- <dt><a name="TMail%3a%3aMail-main_type"><code>main_type(default = nil)</code></a> $B"*(B <code>String</code></dt>
490
- <dd>
491
- <p>
492
- $B%a!<%kK\BN$N%a%$%s%?%$%W(B ($BNc!'(B<code>"text")</code>$B!#(B
493
- $B>o$K>.J8;z$KE}0l$5$l$^$9!#(B
494
- $B%X%C%@$,B8:_$7$J$$>l9g$O(B <code>default</code> $B$rJV$7$^$9!#(B
495
- </p>
496
-
497
- </dd>
498
- <dt><a name="TMail%3a%3aMail-sub_type"><code>sub_type(default = nil)</code></a> $B"*(B <code>String</code></dt>
499
- <dd>
500
- <p>
501
- $B%a!<%kK\BN$N%5%V%?%$%W(B ($BNc!'(B<code>"plain")</code>$B!#(B
502
- $B>o$K>.J8;z$KE}0l$5$l$^$9!#(B
503
- $B%X%C%@$,B8:_$7$J$$>l9g$O(B <code>default</code> $B$rJV$7$^$9!#(B
504
- </p>
505
-
506
- </dd>
507
- <dt><a name="TMail%3a%3aMail-content_type%3d"><code>content_type=(ctype)</code></a></dt>
508
- <dd>
509
- <p>
510
- ctype: String<br>
511
- </p>
512
-
513
- <p>
514
- <code>Content-Type</code> $B$N%a%$%s%?%$%W!&%5%V%?%$%W$r(B <code>main_sub</code> $B$+$i%;%C%H(B
515
- $B$7$^$9!#(B<code>main_sub</code> $B$ONc$($P(B <code>"text/plain"</code> $B$N$h$&$J7A<0$G$J$1$l$P(B
516
- $B$$$1$^$;$s!#(B
517
- </p>
518
-
519
- </dd>
520
- <dt><a name="TMail%3a%3aMail-set_content_type"><code>set_content_type(main, <var>sub</var>, <var>params</var> = nil)</code></a></dt>
521
- <dd>
522
- <p>
523
- main: String<br>
524
- sub: String<br>
525
- params: {String => String}<br>
526
- </p>
527
-
528
- <p>
529
- $B%3%s%F%s%H%?%$%W$r(B <code>main/sub; param; param; ...</code> $B$N$h$&$K@_Dj$7$^$9!#(B
530
- </p>
531
-
532
- </dd>
533
- <dt><a name="TMail%3a%3aMail-type_param"><code>type_param(name, <var>default</var> = nil)</code></a> $B"*(B <code>String</code></dt>
534
- <dd>
535
- <p>
536
- name: String<br>
537
- </p>
538
-
539
- <p>
540
- <code>Content-Type</code> $B$N(B <code>name</code> $B%Q%i%a!<%?$NCM$rJV$7$^$9!#(B
541
- <code>name</code> $B$KBP1~$9$kCM$d%X%C%@$=$N$b$N$,B8:_$7$J$$>l9g$O(B <code><var>default</var></code> $B$r(B
542
- $BJV$7$^$9!#(B
543
- </p>
544
- <pre>
545
- # example
546
- mail['Content-Type'] = 'text/plain; charset=iso-2022-jp'
547
- p mail.type_param('charset') # "iso-2022-jp"
548
- </pre>
549
-
550
- </dd>
551
- <dt><a name="TMail%3a%3aMail-multipart%3f"><code>multipart?</code></a> $B"*(B <code>true | false</code></dt>
552
- <dd>
553
- <p>
554
- <code>Content-Type</code> $B$,(B MIME $B%^%k%A%Q!<%H%a!<%k$G$"$k$3$H$r(B
555
- $B<($9FbMF$J$i$P??!#(B
556
- </p>
557
-
558
- </dd>
559
- <dt><a name="TMail%3a%3aMail-transfer_encoding"><code>transfer_encoding(default = nil)</code></a> $B"*(B <code>String</code></dt>
560
- <dt><a name="TMail%3a%3aMail-transfer_encoding%3d"><code>transfer_encoding=(encoding)</code></a></dt>
561
- <dd>
562
- <p>
563
- encoding: String<br>
564
- </p>
565
- <p>
566
- $BE>Aw;~$KE,MQ$7$?%(%s%3!<%G%#%s%0(B <code>(Content-Transfer-Encoding)</code>$B!#(B
567
- <code>'7bit' '8bit' 'Base64' 'Binary'</code> $B$J$I!#(B
568
- </p>
569
-
570
- </dd>
571
- <dt><a name="TMail%3a%3aMail-disposition"><code>disposition(default = nil)</code></a> $B"*(B <code>String</code></dt>
572
- <dt><a name="TMail%3a%3aMail-disposition%3d"><code>disposition=(pos)</code></a></dt>
573
- <dd>
574
- <p>
575
- pos: String<br>
576
- </p>
577
-
578
- <p>
579
- <code>Content-Disposition</code> $B$N<gCM(B ($BJ8;zNs(B)$B!#JV$jCM$O>o$K>.J8;z$KE}0l$5$l$^$9!#(B
580
- <code>name</code> $B$KBP1~$9$kCM$d%X%C%@$=$N$b$N$,B8:_$7$J$$>l9g$O(B <code>default</code> $B$r(B
581
- $BJV$7$^$9!#(B
582
- </p>
583
- <pre>
584
- # example
585
- mail['Content-Disposition'] = 'attachement; filename="test.rb"'
586
- p mail.disposition # "attachment"
587
- </pre>
588
-
589
- </dd>
590
- <dt><a name="TMail%3a%3aMail-set_content_disposition"><code>set_content_disposition(pos, <var>params</var> = nil)</code></a></dt>
591
- <dd>
592
- <p>
593
- pos: String<br>
594
- params: {String => String}<br>
595
- </p>
596
-
597
- <p>
598
- <code>disposition</code> $BJ8;zNs$H%Q%i%a!<%?$N%O%C%7%e$+$i(B <code>Content-Disposition</code> $B$r(B
599
- $B%;%C%H$7$^$9!#(B
600
- </p>
601
-
602
- </dd>
603
- <dt><a name="TMail%3a%3aMail-disposition_param"><code>disposition_param(key, <var>default</var> = nil)</code></a> $B"*(B <code>String</code></dt>
604
- <dd>
605
- <p>
606
- key: String<br>
607
- </p>
608
-
609
- <p>
610
- <code>Content-Disposition</code> $B$NIU2C%Q%i%a!<%?$N(B <code>name</code> $B$NCM$r<hF@$7$^$9!#(B
611
- <code>name</code> $B$KBP1~$9$kCM$d%X%C%@$=$N$b$N$,B8:_$7$J$$>l9g$O(B <code><var>default</var></code> $B$r(B
612
- $BJV$7$^$9!#(B
613
- </p>
614
- <pre>
615
- # example
616
- mail.disposition_param('filename')
617
- </pre>
618
-
619
- </dd>
620
- <dt><a name="TMail%3a%3aMail-destinations"><code>destinations(default = nil)</code></a> $B"*(B <code>[String]</code></dt>
621
- <dd>
622
- <p>
623
- <code>To</code>$B!"(B<code>Cc</code>$B!"(B<code>Bcc</code> $B$9$Y$F$N%"%I%l%9%9%Z%C%/J8;zNs$NG[Ns$r(B
624
- $BJV$7$^$9!#$R$H$D$bB8:_$7$J$1$l$P(B <code>default</code> $B$rJV$7$^$9!#(B
625
- </p>
626
-
627
- </dd>
628
- <dt><a name="TMail%3a%3aMail-reply_addresses"><code>reply_addresses(default = nil)</code></a> $B"*(B <code>[<a href="address.html#TMail%3a%3aAddress">TMail::Address</a>]</code></dt>
629
- <dd>
630
- <p>
631
- $BJV?.$9$Y$-%"%I%l%9$rH=CG$7!"(B<code>Address</code> $B%*%V%8%'%/%H$N(B
632
- $BG[Ns$GJV$7$^$9!#JV?.$9$Y$-%"%I%l%9$,$_$D$+$i$J$1$l$P(B
633
- <code>DEFAULT</code> $B$rJV$7$^$9!#(B
634
- </p>
635
-
636
- </dd>
637
- <dt><a name="TMail%3a%3aMail-error_reply_addresses"><code>error_reply_addresses(default = nil)</code></a> $B"*(B <code>[<a href="address.html#TMail%3a%3aAddress">TMail::Address</a>]</code></dt>
638
- <dd>
639
- <p>
640
- $B%(%i!<%a!<%k$rJVAw$9$Y$-%"%I%l%9$rH=CG$7!"(B<code>Address</code> $B%*%V%8%'%/%H$N(B
641
- $BG[Ns$GJV$7$^$9!#JVAw$9$Y$-%"%I%l%9$,$_$D$+$i$J$1$l$P(B <code>default</code> $B$rJV$7$^$9!#(B
642
- </p>
643
-
644
- </dd>
645
- </dl>
646
- <h3>$B%X%C%@%U%#!<%k%ID>@\A`:nMQ%a%=%C%I(B</h3>
647
-
648
- <dl>
649
- <dt><a name="TMail%3a%3aMail-clear"><code>clear</code></a></dt>
650
- <dd>
651
- <p>
652
- $B%X%C%@$rA4$F>C5n$7$^$9!#(B
653
- </p>
654
-
655
- </dd>
656
- <dt><a name="TMail%3a%3aMail-keys"><code>keys</code></a> $B"*(B <code>[TMail::HeaderField]</code></dt>
657
- <dd>
658
- <p>
659
- $B%X%C%@L>$NG[Ns$rJV$7$^$9!#(B
660
- </p>
661
-
662
- </dd>
663
- <dt><a name="TMail%3a%3aMail-%5b%5d"><code>[](name)</code></a> $B"*(B <code>TMail::HeaderField</code></dt>
664
- <dd>
665
- <p>
666
- name: String<br>
667
- </p>
668
-
669
- <p>
670
- $B%X%C%@L>$+$i%X%C%@%*%V%8%'%/%H$rJV$7$^$9!#(B
671
- </p>
672
-
673
- </dd>
674
- <dt><a name="TMail%3a%3aMail-%5b%5d%3d"><code>[]=(name, <var>field</var>)</code></a></dt>
675
- <dd>
676
- <p>
677
- name: String<br>
678
- field: TMail::HeaderField<br>
679
- </p>
680
-
681
- <p>
682
- <code>name</code> $B%X%C%@$K(B <code><var>field</var></code> $B$r@_Dj$7$^$9!#(B<code><var>field</var></code> $B$OJ8;zNs$+(B <code>TMail::HeaderField</code> $B%*%V%8%'%/%H$G$9!#(B
683
- <code>Received</code> $B$J$I0lIt$N%X%C%@$KBP$7$F$O$5$i$K$=$NG[Ns$bM?$($k$3$H$,$G$-$^$9!#(B
684
- </p>
685
-
686
- </dd>
687
- <dt><a name="TMail%3a%3aMail-delete"><code>delete(name)</code></a></dt>
688
- <dd>
689
- <p>
690
- name: String<br>
691
- </p>
692
- <p>
693
- <code>name</code> $B%X%C%@$r>C$7$^$9!#(B
694
- </p>
695
-
696
- </dd>
697
- <dt><a name="TMail%3a%3aMail-delete_if%20%7b%7cname%2c%20field%7c%20%2e%2e%2e%2e%20%7d"><code>delete_if {|name, <var>field</var>| .... }</code></a></dt>
698
- <dd>
699
- <p>
700
- name: String<br>
701
- field: TMail::HeaderField<br>
702
- </p>
703
-
704
- <p>
705
- $B%X%C%@L>$H%X%C%@$rM?$($F%V%m%C%/$rI>2A$7!"??$J$i$=$N4XO"$E$1$r>C$7$^$9!#(B
706
- </p>
707
-
708
- </dd>
709
- <dt><a name="TMail%3a%3aMail-each_header%20%7b%7cname%2c%20field%7c%20%2e%2e%2e%2e%20%7d"><code>each_header {|name, <var>field</var>| .... }</code></a></dt>
710
- <dt><a name="TMail%3a%3aMail-each_pair%20%7b%7cname%2c%20field%7c%20%2e%2e%2e%2e%20%7d"><code>each_pair {|name, <var>field</var>| .... }</code></a></dt>
711
- <dd>
712
- <p>
713
- name: String<br>
714
- field: TMail::HeaderField<br>
715
- </p>
716
-
717
- <p>
718
- $BA4$F$N%X%C%@L>$H%X%C%@%*%V%8%'%/%H$KBP$9$k$/$j$+$($7!#(B
719
- </p>
720
-
721
- </dd>
722
- <dt><a name="TMail%3a%3aMail-each_header_name%20%7b%7cname%7c%20%2e%2e%2e%2e%20%7d"><code>each_header_name {|name| .... }</code></a></dt>
723
- <dt><a name="TMail%3a%3aMail-each_key%20%7b%7cname%7c%20%2e%2e%2e%2e%20%7d"><code>each_key {|name| .... }</code></a></dt>
724
- <dd>
725
- <p>
726
- name: String<br>
727
- </p>
728
-
729
- <p>
730
- $BA4$F$N%X%C%@L>$KBP$9$k$/$j$+$($7!#(B
731
- </p>
732
-
733
- </dd>
734
- <dt><a name="TMail%3a%3aMail-each_field%20%7b%7cfield%7c%20%2e%2e%2e%2e%20%7d"><code>each_field {|field| .... }</code></a></dt>
735
- <dt><a name="TMail%3a%3aMail-each_value%20%7b%7cfield%7c%20%2e%2e%2e%2e%20%7d"><code>each_value {|field| .... }</code></a></dt>
736
- <dd>
737
- <p>
738
- field: TMail::HeaderField<br>
739
- </p>
740
-
741
- <p>
742
- $BA4$F$N%X%C%@%*%V%8%'%/%H$KBP$9$k$/$j$+$($7!#(B
743
- $B%X%C%@$N=g=x;XDjIU$-$N(B <code>each_header</code> $B$G$9!#:G=i$K;XDj$7$?$b$N$,;XDj$7$?(B
744
- $B=gHV$GJB$S!"$=$NB>$N%X%C%@$,%i%s%@%`$KB3$-$^$9!#=g=x$OJ8;zNs$NG[Ns(B
745
- <code>TMail::Mail::FIELD_ORDER</code> $B$G@_Dj$7$F$/$@$5$$(B($B>\:Y$O%=!<%9%3!<%I$r;2>H(B)$B!#(B
746
- </p>
747
-
748
- </dd>
749
- <dt><a name="TMail%3a%3aMail-key%3f"><code>key?(name)</code></a></dt>
750
- <dd>
751
- <p>
752
- name: String<br>
753
- </p>
754
-
755
- <p>
756
- <code>name</code> $B%X%C%@$,$"$l$P??!#(B
757
- </p>
758
-
759
- </dd>
760
- <dt><a name="TMail%3a%3aMail-value%3f"><code>value?(field)</code></a></dt>
761
- <dd>
762
- <p>
763
- field: TMail::HeaderField<br>
764
- </p>
765
-
766
- <p>
767
- <code>field</code> $B%X%C%@%*%V%8%'%/%H$,$"$l$P??!#(B
768
- </p>
769
-
770
- </dd>
771
- <dt><a name="TMail%3a%3aMail-values_at"><code>values_at(*names)</code></a> $B"*(B <code>[TMail::HeaderField]</code></dt>
772
- <dt><a name="TMail%3a%3aMail-indexes"><code>indexes(*names)</code></a> $B"*(B <code>[TMail::HeaderField]</code></dt>
773
- <dt><a name="TMail%3a%3aMail-indices"><code>indices(*names)</code></a> $B"*(B <code>[TMail::HeaderField]</code></dt>
774
- <dd>
775
- <p>
776
- names: [String]<br>
777
- </p>
778
-
779
- <p>
780
- $BA4$F$N(B <code>names</code> $B$K$D$$$F(B <code>fetch</code> $B$7$?7k2L$NG[Ns$rJV$7$^$9!#(B
781
- </p>
782
-
783
- </dd>
784
- <dt><a name="TMail%3a%3aMail-values"><code>values</code></a> $B"*(B <code>[TMail::HeaderField]</code></dt>
785
- <dd>
786
- <p>
787
- $BEPO?$5$l$F$$$kA4$F$N%X%C%@%*%V%8%'%/%H$NG[Ns$rJV$7$^$9!#(B
788
- </p>
789
- </dd>
790
- </dl>
791
-
792
- </body>
793
- </html>