ledermann-tmail 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. data/CHANGES +74 -0
  2. data/LICENSE +21 -0
  3. data/NOTES +7 -0
  4. data/README +179 -0
  5. data/Rakefile +2 -0
  6. data/ext/Makefile +20 -0
  7. data/ext/tmailscanner/tmail/MANIFEST +4 -0
  8. data/ext/tmailscanner/tmail/depend +1 -0
  9. data/ext/tmailscanner/tmail/extconf.rb +33 -0
  10. data/ext/tmailscanner/tmail/tmailscanner.c +614 -0
  11. data/lib/tmail.rb +6 -0
  12. data/lib/tmail/Makefile +18 -0
  13. data/lib/tmail/address.rb +392 -0
  14. data/lib/tmail/attachments.rb +65 -0
  15. data/lib/tmail/base64.rb +46 -0
  16. data/lib/tmail/compat.rb +41 -0
  17. data/lib/tmail/config.rb +67 -0
  18. data/lib/tmail/core_extensions.rb +63 -0
  19. data/lib/tmail/encode.rb +590 -0
  20. data/lib/tmail/header.rb +962 -0
  21. data/lib/tmail/index.rb +9 -0
  22. data/lib/tmail/interface.rb +1162 -0
  23. data/lib/tmail/loader.rb +3 -0
  24. data/lib/tmail/mail.rb +578 -0
  25. data/lib/tmail/mailbox.rb +496 -0
  26. data/lib/tmail/main.rb +6 -0
  27. data/lib/tmail/mbox.rb +3 -0
  28. data/lib/tmail/net.rb +250 -0
  29. data/lib/tmail/obsolete.rb +132 -0
  30. data/lib/tmail/parser.rb +1060 -0
  31. data/lib/tmail/parser.y +416 -0
  32. data/lib/tmail/port.rb +379 -0
  33. data/lib/tmail/quoting.rb +155 -0
  34. data/lib/tmail/require_arch.rb +58 -0
  35. data/lib/tmail/scanner.rb +49 -0
  36. data/lib/tmail/scanner_r.rb +261 -0
  37. data/lib/tmail/stringio.rb +280 -0
  38. data/lib/tmail/utils.rb +361 -0
  39. data/lib/tmail/version.rb +39 -0
  40. data/log/BugTrackingLog.txt +1245 -0
  41. data/log/Changelog.txt +534 -0
  42. data/log/Testlog.txt +2340 -0
  43. data/log/Todo.txt +30 -0
  44. data/meta/MANIFEST +128 -0
  45. data/meta/VERSION +1 -0
  46. data/meta/project.yaml +30 -0
  47. data/meta/unixname +1 -0
  48. data/sample/bench_base64.rb +48 -0
  49. data/sample/data/multipart +23 -0
  50. data/sample/data/normal +29 -0
  51. data/sample/data/sendtest +5 -0
  52. data/sample/data/simple +14 -0
  53. data/sample/data/test +27 -0
  54. data/sample/extract-attachements.rb +33 -0
  55. data/sample/from-check.rb +26 -0
  56. data/sample/multipart.rb +26 -0
  57. data/sample/parse-bench.rb +68 -0
  58. data/sample/parse-test.rb +19 -0
  59. data/sample/sendmail.rb +94 -0
  60. data/setup.rb +1482 -0
  61. data/site/contributing/index.html +183 -0
  62. data/site/css/clean.css +27 -0
  63. data/site/css/layout.css +31 -0
  64. data/site/css/style.css +60 -0
  65. data/site/download/index.html +61 -0
  66. data/site/img/envelope.jpg +0 -0
  67. data/site/img/mailman.gif +0 -0
  68. data/site/img/stamp-sm.jpg +0 -0
  69. data/site/img/stamp.jpg +0 -0
  70. data/site/img/stampborder.jpg +0 -0
  71. data/site/img/tfire.jpg +0 -0
  72. data/site/img/tmail.png +0 -0
  73. data/site/index.html +272 -0
  74. data/site/js/jquery.js +31 -0
  75. data/site/log/Changelog.xsl +33 -0
  76. data/site/log/changelog.xml +1677 -0
  77. data/site/outdated/BUGS +3 -0
  78. data/site/outdated/DEPENDS +1 -0
  79. data/site/outdated/Incompatibilities +89 -0
  80. data/site/outdated/Incompatibilities.ja +102 -0
  81. data/site/outdated/NEWS +9 -0
  82. data/site/outdated/README.ja +73 -0
  83. data/site/outdated/doc.ja/address.html +275 -0
  84. data/site/outdated/doc.ja/basics.html +405 -0
  85. data/site/outdated/doc.ja/config.html +49 -0
  86. data/site/outdated/doc.ja/details.html +146 -0
  87. data/site/outdated/doc.ja/index.html +39 -0
  88. data/site/outdated/doc.ja/mail.html +793 -0
  89. data/site/outdated/doc.ja/mailbox.html +265 -0
  90. data/site/outdated/doc.ja/port.html +95 -0
  91. data/site/outdated/doc.ja/tmail.html +58 -0
  92. data/site/outdated/doc.ja/usage.html +202 -0
  93. data/site/outdated/rdd/address.rrd.m +229 -0
  94. data/site/outdated/rdd/basics.rd.m +275 -0
  95. data/site/outdated/rdd/config.rrd.m +26 -0
  96. data/site/outdated/rdd/details.rd.m +117 -0
  97. data/site/outdated/rdd/index.rhtml.m +54 -0
  98. data/site/outdated/rdd/mail.rrd.m +701 -0
  99. data/site/outdated/rdd/mailbox.rrd.m +228 -0
  100. data/site/outdated/rdd/port.rrd.m +69 -0
  101. data/site/outdated/rdd/tmail.rrd.m +33 -0
  102. data/site/outdated/rdd/usage.rd.m +247 -0
  103. data/site/quickstart/index.html +69 -0
  104. data/site/quickstart/quickstart.html +52 -0
  105. data/site/quickstart/usage.html +193 -0
  106. data/site/reference/address.html +247 -0
  107. data/site/reference/config.html +30 -0
  108. data/site/reference/index.html +101 -0
  109. data/site/reference/mail.html +726 -0
  110. data/site/reference/mailbox.html +245 -0
  111. data/site/reference/port.html +75 -0
  112. data/site/reference/tmail.html +35 -0
  113. data/test/extctrl.rb +6 -0
  114. data/test/fixtures/mailbox +414 -0
  115. data/test/fixtures/mailbox_without_any_from_or_sender +10 -0
  116. data/test/fixtures/mailbox_without_from +11 -0
  117. data/test/fixtures/mailbox_without_return_path +12 -0
  118. data/test/fixtures/raw_attack_email_with_zero_length_whitespace +29 -0
  119. data/test/fixtures/raw_base64_decoded_string +0 -0
  120. data/test/fixtures/raw_base64_email +83 -0
  121. data/test/fixtures/raw_base64_encoded_string +1 -0
  122. data/test/fixtures/raw_email +14 -0
  123. data/test/fixtures/raw_email10 +20 -0
  124. data/test/fixtures/raw_email11 +34 -0
  125. data/test/fixtures/raw_email12 +32 -0
  126. data/test/fixtures/raw_email13 +29 -0
  127. data/test/fixtures/raw_email2 +114 -0
  128. data/test/fixtures/raw_email3 +70 -0
  129. data/test/fixtures/raw_email4 +59 -0
  130. data/test/fixtures/raw_email5 +19 -0
  131. data/test/fixtures/raw_email6 +20 -0
  132. data/test/fixtures/raw_email7 +66 -0
  133. data/test/fixtures/raw_email8 +47 -0
  134. data/test/fixtures/raw_email9 +28 -0
  135. data/test/fixtures/raw_email_multiple_from +30 -0
  136. data/test/fixtures/raw_email_quoted_with_0d0a +14 -0
  137. data/test/fixtures/raw_email_reply +32 -0
  138. data/test/fixtures/raw_email_simple +11 -0
  139. data/test/fixtures/raw_email_with_bad_date +48 -0
  140. data/test/fixtures/raw_email_with_illegal_boundary +58 -0
  141. data/test/fixtures/raw_email_with_mimepart_without_content_type +94 -0
  142. data/test/fixtures/raw_email_with_multipart_mixed_quoted_boundary +50 -0
  143. data/test/fixtures/raw_email_with_nested_attachment +100 -0
  144. data/test/fixtures/raw_email_with_partially_quoted_subject +14 -0
  145. data/test/fixtures/raw_email_with_quoted_illegal_boundary +58 -0
  146. data/test/kcode.rb +14 -0
  147. data/test/temp_test_one.rb +46 -0
  148. data/test/test_address.rb +1216 -0
  149. data/test/test_attachments.rb +131 -0
  150. data/test/test_base64.rb +64 -0
  151. data/test/test_encode.rb +139 -0
  152. data/test/test_header.rb +1021 -0
  153. data/test/test_helper.rb +9 -0
  154. data/test/test_mail.rb +756 -0
  155. data/test/test_mbox.rb +184 -0
  156. data/test/test_port.rb +440 -0
  157. data/test/test_quote.rb +107 -0
  158. data/test/test_scanner.rb +209 -0
  159. data/test/test_utils.rb +36 -0
  160. data/work/script/make +26 -0
  161. data/work/script/rdoc +39 -0
  162. data/work/script/setup +1616 -0
  163. data/work/script/test +30 -0
  164. metadata +297 -0
data/work/script/test ADDED
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # TODO: Ensure compile first (but only if needed)
4
+ # system "task/make"
5
+
6
+ # Run unit tests
7
+
8
+ live = ARGV.include?('--live')
9
+ pure = ARGV.include?('--pure') # pure won't work if live.
10
+
11
+ unless live
12
+ $LOAD_PATH.unshift(File.expand_path('lib'))
13
+ $LOAD_PATH.unshift(File.expand_path('ext/tmailscanner')) unless pure
14
+ end
15
+ $LOAD_PATH.unshift('test') # NEEDED?
16
+
17
+ unless glob = ARGV.select{ |a| a !~ /^[-]/ }[0]
18
+ glob = 'test/test_*.rb'
19
+ end
20
+
21
+ Dir[glob].each do |file|
22
+ next if File.directory?(file)
23
+ begin
24
+ puts "Loading: #{file}" if $DEBUG
25
+ load(file)
26
+ rescue LoadError
27
+ puts "Error loading: #{file}"
28
+ end
29
+ end
30
+
metadata ADDED
@@ -0,0 +1,297 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ledermann-tmail
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.5
5
+ platform: ruby
6
+ authors:
7
+ - Mikel Lindsaar <raasdnil AT gmail.com>
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-05-17 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: TMail is a Ruby-based mail handler. It allows you to compose stadards compliant emails in a very Ruby-way.
17
+ email: raasdnil AT gmail.com
18
+ executables: []
19
+
20
+ extensions:
21
+ - ext/tmailscanner/tmail/extconf.rb
22
+ extra_rdoc_files:
23
+ - README
24
+ - CHANGES
25
+ - LICENSE
26
+ - NOTES
27
+ - Rakefile
28
+ files:
29
+ - CHANGES
30
+ - ext
31
+ - ext/Makefile
32
+ - ext/tmailscanner
33
+ - ext/tmailscanner/tmail
34
+ - ext/tmailscanner/tmail/depend
35
+ - ext/tmailscanner/tmail/extconf.rb
36
+ - ext/tmailscanner/tmail/MANIFEST
37
+ - ext/tmailscanner/tmail/tmailscanner.c
38
+ - lib
39
+ - lib/tmail
40
+ - lib/tmail/address.rb
41
+ - lib/tmail/attachments.rb
42
+ - lib/tmail/base64.rb
43
+ - lib/tmail/compat.rb
44
+ - lib/tmail/config.rb
45
+ - lib/tmail/core_extensions.rb
46
+ - lib/tmail/encode.rb
47
+ - lib/tmail/header.rb
48
+ - lib/tmail/index.rb
49
+ - lib/tmail/interface.rb
50
+ - lib/tmail/loader.rb
51
+ - lib/tmail/mail.rb
52
+ - lib/tmail/mailbox.rb
53
+ - lib/tmail/main.rb
54
+ - lib/tmail/Makefile
55
+ - lib/tmail/mbox.rb
56
+ - lib/tmail/net.rb
57
+ - lib/tmail/obsolete.rb
58
+ - lib/tmail/parser.rb
59
+ - lib/tmail/parser.y
60
+ - lib/tmail/port.rb
61
+ - lib/tmail/quoting.rb
62
+ - lib/tmail/require_arch.rb
63
+ - lib/tmail/scanner.rb
64
+ - lib/tmail/scanner_r.rb
65
+ - lib/tmail/stringio.rb
66
+ - lib/tmail/utils.rb
67
+ - lib/tmail/version.rb
68
+ - lib/tmail.rb
69
+ - LICENSE
70
+ - log
71
+ - log/BugTrackingLog.txt
72
+ - log/Changelog.txt
73
+ - log/Testlog.txt
74
+ - log/Todo.txt
75
+ - meta
76
+ - meta/MANIFEST
77
+ - meta/project.yaml
78
+ - meta/unixname
79
+ - meta/VERSION
80
+ - NOTES
81
+ - Rakefile
82
+ - README
83
+ - sample
84
+ - sample/bench_base64.rb
85
+ - sample/data
86
+ - sample/data/multipart
87
+ - sample/data/normal
88
+ - sample/data/sendtest
89
+ - sample/data/simple
90
+ - sample/data/test
91
+ - sample/extract-attachements.rb
92
+ - sample/from-check.rb
93
+ - sample/multipart.rb
94
+ - sample/parse-bench.rb
95
+ - sample/parse-test.rb
96
+ - sample/sendmail.rb
97
+ - setup.rb
98
+ - site
99
+ - site/contributing
100
+ - site/contributing/index.html
101
+ - site/css
102
+ - site/css/clean.css
103
+ - site/css/layout.css
104
+ - site/css/style.css
105
+ - site/download
106
+ - site/download/index.html
107
+ - site/img
108
+ - site/img/envelope.jpg
109
+ - site/img/mailman.gif
110
+ - site/img/stamp-sm.jpg
111
+ - site/img/stamp.jpg
112
+ - site/img/stampborder.jpg
113
+ - site/img/tfire.jpg
114
+ - site/img/tmail.png
115
+ - site/index.html
116
+ - site/js
117
+ - site/js/jquery.js
118
+ - site/log
119
+ - site/log/changelog.xml
120
+ - site/log/Changelog.xsl
121
+ - site/outdated
122
+ - site/outdated/BUGS
123
+ - site/outdated/DEPENDS
124
+ - site/outdated/doc.ja
125
+ - site/outdated/doc.ja/address.html
126
+ - site/outdated/doc.ja/basics.html
127
+ - site/outdated/doc.ja/config.html
128
+ - site/outdated/doc.ja/details.html
129
+ - site/outdated/doc.ja/index.html
130
+ - site/outdated/doc.ja/mail.html
131
+ - site/outdated/doc.ja/mailbox.html
132
+ - site/outdated/doc.ja/port.html
133
+ - site/outdated/doc.ja/tmail.html
134
+ - site/outdated/doc.ja/usage.html
135
+ - site/outdated/Incompatibilities
136
+ - site/outdated/Incompatibilities.ja
137
+ - site/outdated/NEWS
138
+ - site/outdated/rdd
139
+ - site/outdated/rdd/address.rrd.m
140
+ - site/outdated/rdd/basics.rd.m
141
+ - site/outdated/rdd/config.rrd.m
142
+ - site/outdated/rdd/details.rd.m
143
+ - site/outdated/rdd/index.rhtml.m
144
+ - site/outdated/rdd/mail.rrd.m
145
+ - site/outdated/rdd/mailbox.rrd.m
146
+ - site/outdated/rdd/port.rrd.m
147
+ - site/outdated/rdd/tmail.rrd.m
148
+ - site/outdated/rdd/usage.rd.m
149
+ - site/outdated/README.ja
150
+ - site/quickstart
151
+ - site/quickstart/index.html
152
+ - site/quickstart/quickstart.html
153
+ - site/quickstart/usage.html
154
+ - site/reference
155
+ - site/reference/address.html
156
+ - site/reference/config.html
157
+ - site/reference/index.html
158
+ - site/reference/mail.html
159
+ - site/reference/mailbox.html
160
+ - site/reference/port.html
161
+ - site/reference/tmail.html
162
+ - test
163
+ - test/extctrl.rb
164
+ - test/fixtures
165
+ - test/fixtures/mailbox
166
+ - test/fixtures/mailbox_without_any_from_or_sender
167
+ - test/fixtures/mailbox_without_from
168
+ - test/fixtures/mailbox_without_return_path
169
+ - test/fixtures/raw_attack_email_with_zero_length_whitespace
170
+ - test/fixtures/raw_base64_decoded_string
171
+ - test/fixtures/raw_base64_email
172
+ - test/fixtures/raw_base64_encoded_string
173
+ - test/fixtures/raw_email
174
+ - test/fixtures/raw_email10
175
+ - test/fixtures/raw_email11
176
+ - test/fixtures/raw_email12
177
+ - test/fixtures/raw_email13
178
+ - test/fixtures/raw_email2
179
+ - test/fixtures/raw_email3
180
+ - test/fixtures/raw_email4
181
+ - test/fixtures/raw_email5
182
+ - test/fixtures/raw_email6
183
+ - test/fixtures/raw_email7
184
+ - test/fixtures/raw_email8
185
+ - test/fixtures/raw_email9
186
+ - test/fixtures/raw_email_multiple_from
187
+ - test/fixtures/raw_email_quoted_with_0d0a
188
+ - test/fixtures/raw_email_reply
189
+ - test/fixtures/raw_email_simple
190
+ - test/fixtures/raw_email_with_bad_date
191
+ - test/fixtures/raw_email_with_illegal_boundary
192
+ - test/fixtures/raw_email_with_mimepart_without_content_type
193
+ - test/fixtures/raw_email_with_multipart_mixed_quoted_boundary
194
+ - test/fixtures/raw_email_with_nested_attachment
195
+ - test/fixtures/raw_email_with_partially_quoted_subject
196
+ - test/fixtures/raw_email_with_quoted_illegal_boundary
197
+ - test/kcode.rb
198
+ - test/temp_test_one.rb
199
+ - test/test_address.rb
200
+ - test/test_attachments.rb
201
+ - test/test_base64.rb
202
+ - test/test_encode.rb
203
+ - test/test_header.rb
204
+ - test/test_helper.rb
205
+ - test/test_mail.rb
206
+ - test/test_mbox.rb
207
+ - test/test_port.rb
208
+ - test/test_quote.rb
209
+ - test/test_scanner.rb
210
+ - test/test_utils.rb
211
+ - work
212
+ - work/script
213
+ - work/script/make
214
+ - work/script/rdoc
215
+ - work/script/setup
216
+ - work/script/test
217
+ has_rdoc: true
218
+ homepage: http://tmail.rubyforge.org
219
+ licenses:
220
+ post_install_message:
221
+ rdoc_options:
222
+ - --inline-source
223
+ - --title
224
+ - TMail
225
+ - --main
226
+ - README
227
+ require_paths:
228
+ - lib
229
+ - ext/tmailscanner
230
+ required_ruby_version: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - ">="
233
+ - !ruby/object:Gem::Version
234
+ version: "0"
235
+ version:
236
+ required_rubygems_version: !ruby/object:Gem::Requirement
237
+ requirements:
238
+ - - ">="
239
+ - !ruby/object:Gem::Version
240
+ version: "0"
241
+ version:
242
+ requirements: []
243
+
244
+ rubyforge_project: tmail
245
+ rubygems_version: 1.3.5
246
+ signing_key:
247
+ specification_version: 2
248
+ summary: Ruby Mail Handler
249
+ test_files:
250
+ - test/extctrl.rb
251
+ - test/fixtures
252
+ - test/fixtures/mailbox
253
+ - test/fixtures/mailbox_without_any_from_or_sender
254
+ - test/fixtures/mailbox_without_from
255
+ - test/fixtures/mailbox_without_return_path
256
+ - test/fixtures/raw_attack_email_with_zero_length_whitespace
257
+ - test/fixtures/raw_base64_decoded_string
258
+ - test/fixtures/raw_base64_email
259
+ - test/fixtures/raw_base64_encoded_string
260
+ - test/fixtures/raw_email
261
+ - test/fixtures/raw_email10
262
+ - test/fixtures/raw_email11
263
+ - test/fixtures/raw_email12
264
+ - test/fixtures/raw_email13
265
+ - test/fixtures/raw_email2
266
+ - test/fixtures/raw_email3
267
+ - test/fixtures/raw_email4
268
+ - test/fixtures/raw_email5
269
+ - test/fixtures/raw_email6
270
+ - test/fixtures/raw_email7
271
+ - test/fixtures/raw_email8
272
+ - test/fixtures/raw_email9
273
+ - test/fixtures/raw_email_multiple_from
274
+ - test/fixtures/raw_email_quoted_with_0d0a
275
+ - test/fixtures/raw_email_reply
276
+ - test/fixtures/raw_email_simple
277
+ - test/fixtures/raw_email_with_bad_date
278
+ - test/fixtures/raw_email_with_illegal_boundary
279
+ - test/fixtures/raw_email_with_mimepart_without_content_type
280
+ - test/fixtures/raw_email_with_multipart_mixed_quoted_boundary
281
+ - test/fixtures/raw_email_with_nested_attachment
282
+ - test/fixtures/raw_email_with_partially_quoted_subject
283
+ - test/fixtures/raw_email_with_quoted_illegal_boundary
284
+ - test/kcode.rb
285
+ - test/temp_test_one.rb
286
+ - test/test_address.rb
287
+ - test/test_attachments.rb
288
+ - test/test_base64.rb
289
+ - test/test_encode.rb
290
+ - test/test_header.rb
291
+ - test/test_helper.rb
292
+ - test/test_mail.rb
293
+ - test/test_mbox.rb
294
+ - test/test_port.rb
295
+ - test/test_quote.rb
296
+ - test/test_scanner.rb
297
+ - test/test_utils.rb