Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Only set original_charset when a charset has been defined for the mail part. ↵ | Louise Crow | 2013-05-16 | -3/+8 |
| | | | | Fixes #942. | |||
* | Make efforts to ensure that we're usually dealing with UTF-8 strings | Mark Longair | 2013-05-16 | -1/+5 |
| | | | | | | | | | One of these changes is to make sure that the Mail backend, like the TMail backend it replaces, will return text parts encoded in UTF-8 if possible. The other change is to ensure that when text attachments are reloaded from disk, we attempt to convert them to UTF-8. | |||
* | Ignore common TNEF attachment parsing errors | Mark Longair | 2013-05-16 | -5/+13 |
| | | | | | | | This also introduces a custom error class so that we don't accidentally catch other problems. Fixes #920 | |||
* | Remove an unnecessary use of 'which' in backticks | Mark Longair | 2013-05-16 | -1/+1 |
| | | | | | | | | | | | | | | | | | | The use of backticks in `which tnef` means that which(1) is invoked under /bin/sh, and returns the first executable matching 'tnef' in the default PATH for /bin/sh. In this usage, however, Popen also uses /bin/sh to execute the command, which would run that same executable if just a bare 'tnef' were used. In summary, I can't see any reason for the convolution of: IO.popen("#{`which tnef`.chomp} -K -C #{dir}", "wb") do |f| ... over just: IO.popen("tnef -K -C #{dir}", "wb") do |f| ... so switch to the latter. | |||
* | Rails security update | Matthew Landauer | 2013-03-19 | -67/+0 |
| | | | | | The rails upgrade also forces a mail gem upgrade. To make things work again we need to remove part of the monkeypatched backporting of encoding fixes. | |||
* | Backport Mail's encoding code from 2.5 for Ruby 1.9 | Henare Degan | 2013-03-07 | -0/+45 |
| | | | | Decoding messages in Ruby 1.9 was screwing up but not dying like 1.8. Backporting this fixes the problem. | |||
* | Revert "Update this to match the older version of the mail gem we're using" | Henare Degan | 2013-03-03 | -1/+2 |
| | | | | This reverts commit b9a2d996408c1ef703aa78311f8c2a0f6e0d7afc. | |||
* | Backport Mail 2.5's to_yaml to prevent an exception with Ruby 1.8 | Henare Degan | 2013-03-02 | -0/+22 |
| | ||||
* | Backport newer Mail code to fix decoding problems. #850 | Henare Degan | 2013-03-02 | -0/+38 |
| | ||||
* | Remove Tmail and use the Mail gem under Ruby 1.8.7 as well | Henare Degan | 2013-02-27 | -437/+4 |
| | ||||
* | Our older version of Mail returns a different class so cast it to a String | Henare Degan | 2013-02-21 | -1/+1 |
| | ||||
* | We're using an older version of Mail that returns a different class | Henare Degan | 2013-02-21 | -3/+3 |
| | ||||
* | Update this to match the older version of the mail gem we're using | Henare Degan | 2013-02-10 | -3/+2 |
| | ||||
* | Calling TMail::Mail#base64_decode does not modify the mail object so doesn't ↵ | Matthew Landauer | 2013-01-28 | -8/+5 |
| | | | | do anything as used here | |||
* | Patch the parameter hash used in Mail to handle nil values. | Louise Crow | 2012-12-06 | -0/+19 |
| | ||||
* | Convert url in comment to spec. | Louise Crow | 2012-12-06 | -0/+1 |
| | | | | | | Conflicts: lib/mail_handler/backends/tmail_backend.rb | |||
* | Explicitly require the mail gem when using it as a backend. | Louise Crow | 2012-12-06 | -0/+1 |
| | ||||
* | Add functions for basic mail handling to the mail backend of mail handler. | Louise Crow | 2012-12-06 | -0/+199 |
| | ||||
* | Remove url in comment - has been converted to spec. | Louise Crow | 2012-12-06 | -2/+0 |
| | ||||
* | Convert example URL to spec. | Louise Crow | 2012-12-06 | -3/+1 |
| | ||||
* | Rename _get_attachment_text_internal_one_file to ↵ | Louise Crow | 2012-12-06 | -2/+2 |
| | | | | get_attachment_text_one_file as it is now an externally-accessed method of the mail handler module. | |||
* | No real need for this to be an internal function. | Louise Crow | 2012-12-06 | -2/+2 |
| | ||||
* | Move methods for getting the text out of attachments to the mail handler module. | Louise Crow | 2012-12-06 | -0/+101 |
| | ||||
* | Patch the Message initialize method so that it doesn't strip the initial ↵ | Louise Crow | 2012-12-06 | -0/+39 |
| | | | | input - trailing spaces can be meaningful. | |||
* | Convert address to string in the case where there's just an address. | Louise Crow | 2012-12-05 | -1/+1 |
| | ||||
* | Standardise on part as a param name, not mail_part. | Louise Crow | 2012-12-05 | -4/+4 |
| | ||||
* | Read and write to the file in binary mode during a TNEF conversion operation. | Louise Crow | 2012-12-05 | -2/+2 |
| | ||||
* | Remove redundant references to MailHandler | Louise Crow | 2012-12-05 | -3/+3 |
| | ||||
* | Move mail-specific stuff to mail handler. | Louise Crow | 2012-12-05 | -1/+46 |
| | ||||
* | Add a wrapper method for get_attachment_leaves. | Louise Crow | 2012-12-05 | -0/+8 |
| | ||||
* | Fix typo. | Louise Crow | 2012-12-05 | -1/+1 |
| | ||||
* | Remove redundant references to MailHandler. | Louise Crow | 2012-12-05 | -11/+11 |
| | ||||
* | Move the getting of attachment leaves to the mail handler. | Louise Crow | 2012-12-05 | -0/+88 |
| | ||||
* | Move part counting to the mail handler. | Louise Crow | 2012-12-05 | -0/+48 |
| | ||||
* | Move counters to mail object. | Louise Crow | 2012-12-05 | -0/+4 |
| | ||||
* | Move content type normalization to mail handler. | Louise Crow | 2012-12-05 | -0/+24 |
| | ||||
* | Move the action mailer dependency to the mail handler so that it's only ↵ | Louise Crow | 2012-12-04 | -0/+1 |
| | | | | active in Ruby 1.8. Use mail handler methods in handle-mail-replies. | |||
* | Adding methods for getting the content type of a mail part, and getting ↵ | Louise Crow | 2012-12-04 | -0/+16 |
| | | | | header strings from a mail. | |||
* | Add specs for getting name, email and formatted address - make them pass ↵ | Louise Crow | 2012-12-04 | -1/+1 |
| | | | | with the mail backend. | |||
* | Add methods for finding out if there is an empty return path on a mail and ↵ | Louise Crow | 2012-12-04 | -0/+20 |
| | | | | getting the auto-submitted field. | |||
* | Move method for getting the to, cc and envelope-to addresses of a mail to ↵ | Louise Crow | 2012-12-04 | -0/+13 |
| | | | | the mail handler. | |||
* | Get name and address specs to pass under Ruby 1.9 | Louise Crow | 2012-12-03 | -5/+26 |
| | ||||
* | Add some comments. | Louise Crow | 2012-12-03 | -0/+3 |
| | ||||
* | Move the specifics of getting a From: name from a mail to the mail handler. | Louise Crow | 2012-12-03 | -0/+9 |
| | ||||
* | Delegate getting the from address of an incoming mail to the mail handler. | Louise Crow | 2012-12-03 | -0/+25 |
| | ||||
* | Add method for getting the body of a mail part to mail handling modules. | Louise Crow | 2012-11-29 | -0/+8 |
| | ||||
* | Bugfix - need to convert to string in the just email address case. | Louise Crow | 2012-11-15 | -1/+1 |
| | ||||
* | Wrap address parsing in a address_from_string method in the mail handler. | Louise Crow | 2012-11-15 | -0/+9 |
| | ||||
* | Move address_from_name_and_email to mail handler. | Louise Crow | 2012-11-15 | -18/+26 |
| | ||||
* | Move _get_file_part_name to mail handler. | Louise Crow | 2012-11-15 | -0/+17 |
| |