Permalink
Browse files

Changed version of TMail to 1.2.6

  • Loading branch information...
1 parent 564ace6 commit 696ec1f97911c1f0c33bcedac5d74e8f7bfa322b @mikel mikel committed Feb 6, 2010
Showing with 9,670 additions and 1,577 deletions.
  1. +0 −46 actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/attachments.rb
  2. +0 −1,478 actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/parser.rb
  3. +1 −0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail.rb
  4. +3 −0 actionmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/.cvsignore
  5. +18 −0 actionmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/Makefile
  6. +4 −38 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/address.rb
  7. +65 −0 actionmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/attachments.rb
  8. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/base64.rb
  9. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/compat.rb
  10. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/config.rb
  11. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/core_extensions.rb
  12. +9 −0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/encode.rb
  13. +4 −2 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/header.rb
  14. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/index.rb
  15. +33 −1 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/interface.rb
  16. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/loader.rb
  17. +1 −1 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/mail.rb
  18. +3 −2 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/mailbox.rb
  19. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/main.rb
  20. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/mbox.rb
  21. +3 −1 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/net.rb
  22. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/obsolete.rb
  23. +1,060 −0 actionmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/parser.rb
  24. +416 −0 actionmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/parser.y
  25. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/port.rb
  26. +38 −1 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/quoting.rb
  27. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/require_arch.rb
  28. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/scanner.rb
  29. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/scanner_r.rb
  30. 0 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/stringio.rb
  31. +28 −4 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/utils.rb
  32. +504 −0 actionmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/COPYING
  33. +12 −0 actionmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/README
  34. +67 −0 actionmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet.rb
  35. +927 −0 actionmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/big5freq.rb
  36. +42 −0 ...nmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/big5prober.rb
  37. +237 −0 ...r/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/chardistribution.rb
  38. +112 −0 ...lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/charsetgroupprober.rb
  39. +75 −0 ...iler/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/charsetprober.rb
  40. +64 −0 ...lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/codingstatemachine.rb
  41. +42 −0 ...onmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/constants.rb
  42. +90 −0 ...onmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/escprober.rb
  43. +244 −0 actionmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/escsm.rb
  44. +88 −0 ...mailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/eucjpprober.rb
  45. +596 −0 ...onmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/euckrfreq.rb
  46. +42 −0 ...mailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/euckrprober.rb
  47. +430 −0 ...onmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/euctwfreq.rb
  48. +42 −0 ...mailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/euctwprober.rb
  49. +474 −0 ...nmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312freq.rb
  50. +42 −0 ...ailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312prober.rb
  51. +289 −0 ...ailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/hebrewprober.rb
  52. +570 −0 actionmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/jisfreq.rb
  53. +229 −0 actionmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/jpcntx.rb
  54. +229 −0 ...lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/langbulgarianmodel.rb
  55. +330 −0 .../lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/langcyrillicmodel.rb
  56. +227 −0 ...ler/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/langgreekmodel.rb
  57. +202 −0 ...er/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/langhebrewmodel.rb
  58. +226 −0 ...lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/langhungarianmodel.rb
  59. +201 −0 ...iler/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/langthaimodel.rb
  60. +147 −0 ...ailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/latin1prober.rb
  61. +89 −0 ...er/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/mbcharsetprober.rb
  62. +47 −0 ...er/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/mbcsgroupprober.rb
  63. +542 −0 actionmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/mbcssm.rb
  64. +124 −0 ...er/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/sbcharsetprober.rb
  65. +58 −0 ...er/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/sbcsgroupprober.rb
  66. +88 −0 ...nmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/sjisprober.rb
  67. +166 −0 .../lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/universaldetector.rb
  68. +87 −0 ...nmailer/lib/action_mailer/vendor/tmail-1.2.6/tmail/vendor/rchardet-1.3/lib/rchardet/utf8prober.rb
  69. +1 −1 actionmailer/lib/action_mailer/vendor/{tmail-1.2.3 → tmail-1.2.6}/tmail/version.rb
  70. +2 −2 actionmailer/lib/action_mailer/vendor/tmail.rb
@@ -1,46 +0,0 @@
-=begin rdoc
-
-= Attachment handling file
-
-=end
-
-require 'stringio'
-
-module TMail
- class Attachment < StringIO
- attr_accessor :original_filename, :content_type
- end
-
- class Mail
- def has_attachments?
- multipart? && parts.any? { |part| attachment?(part) }
- end
-
- def attachment?(part)
- part.disposition_is_attachment? || part.content_type_is_text?
- end
-
- def attachments
- if multipart?
- parts.collect { |part|
- if part.multipart?
- part.attachments
- elsif attachment?(part)
- content = part.body # unquoted automatically by TMail#body
- file_name = (part['content-location'] &&
- part['content-location'].body) ||
- part.sub_header("content-type", "name") ||
- part.sub_header("content-disposition", "filename")
-
- next if file_name.blank? || content.blank?
-
- attachment = Attachment.new(content)
- attachment.original_filename = file_name.strip
- attachment.content_type = part.content_type
- attachment
- end
- }.flatten.compact
- end
- end
- end
-end
Oops, something went wrong.

0 comments on commit 696ec1f

Please sign in to comment.