aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeLines
* Merge remote-tracking branch 'mysociety/develop' into rails_xssMatthew Landauer2013-01-15-9/+710
|\
| * If we're not going to run the commonlib tests (and I think that's correct - ↵Louise Crow2012-12-18-2/+0
| | | | | | | | they belong in commonlib and should only be run when commonlib is changed), then don't load them. Allows us not to include the rspec gem in production.
| * Include Rake::DSL module manually to avoid deprecation warnings as perLouise Crow2012-12-18-0/+3
| | | | | | | | https://github.com/dchelimsky/rspec-rails/commit/be52a9841dde0292c7bc7ecfe39e7214b4db1cab
| * Patch the parameter hash used in Mail to handle nil values.Louise Crow2012-12-06-0/+19
| |
| * Convert url in comment to spec.Louise Crow2012-12-06-0/+1
| | | | | | | | | | | | Conflicts: lib/mail_handler/backends/tmail_backend.rb
| * Explicitly require the mail gem when using it as a backend.Louise Crow2012-12-06-0/+1
| |
| * Add functions for basic mail handling to the mail backend of mail handler.Louise Crow2012-12-06-0/+199
| |
| * Remove url in comment - has been converted to spec.Louise Crow2012-12-06-2/+0
| |
| * Convert example URL to spec.Louise Crow2012-12-06-3/+1
| |
| * Rename _get_attachment_text_internal_one_file to ↵Louise Crow2012-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 Crow2012-12-06-2/+2
| |
| * Move methods for getting the text out of attachments to the mail handler module.Louise Crow2012-12-06-0/+101
| |
| * Patch the Message initialize method so that it doesn't strip the initial ↵Louise Crow2012-12-06-0/+39
| | | | | | | | input - trailing spaces can be meaningful.
| * Convert address to string in the case where there's just an address.Louise Crow2012-12-05-1/+1
| |
| * Standardise on part as a param name, not mail_part.Louise Crow2012-12-05-4/+4
| |
| * Read and write to the file in binary mode during a TNEF conversion operation.Louise Crow2012-12-05-2/+2
| |
| * Remove redundant references to MailHandlerLouise Crow2012-12-05-3/+3
| |
| * Move mail-specific stuff to mail handler.Louise Crow2012-12-05-1/+46
| |
| * Add a wrapper method for get_attachment_leaves.Louise Crow2012-12-05-0/+8
| |
| * Fix typo.Louise Crow2012-12-05-1/+1
| |
| * Remove redundant references to MailHandler.Louise Crow2012-12-05-11/+11
| |
| * Move the getting of attachment leaves to the mail handler.Louise Crow2012-12-05-0/+88
| |
| * Move part counting to the mail handler.Louise Crow2012-12-05-0/+48
| |
| * Move counters to mail object.Louise Crow2012-12-05-0/+4
| |
| * Move content type normalization to mail handler.Louise Crow2012-12-05-0/+24
| |
| * Move the action mailer dependency to the mail handler so that it's only ↵Louise Crow2012-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 Crow2012-12-04-0/+16
| | | | | | | | header strings from a mail.
| * Add some comments documenting the option params for the run method, pass in ↵Louise Crow2012-12-04-2/+12
| | | | | | | | the binary_output flag if set.
| * Add specs for getting name, email and formatted address - make them pass ↵Louise Crow2012-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 Crow2012-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 Crow2012-12-04-0/+13
| | | | | | | | the mail handler.
| * Get name and address specs to pass under Ruby 1.9Louise Crow2012-12-03-5/+26
| |
| * Add some comments.Louise Crow2012-12-03-0/+3
| |
| * Move the specifics of getting a From: name from a mail to the mail handler.Louise Crow2012-12-03-0/+9
| |
| * Delegate getting the from address of an incoming mail to the mail handler.Louise Crow2012-12-03-0/+25
| |
| * Add method for getting the body of a mail part to mail handling modules.Louise Crow2012-11-29-0/+8
| |
| * Add a configuration option to specify that you don't want the default locale ↵Louise Crow2012-11-28-0/+1
| | | | | | | | to appear in URLs generated by the application.
* | Removed reserved keys in gettext_interpolation because they were unused and ↵Matthew Landauer2013-01-15-4/+1
| | | | | | | | untested
* | There's no way that gettext_interpolate would work when not passed a hash - ↵Matthew Landauer2013-01-15-25/+15
| | | | | | | | untested and unused. So removing.
* | Remove escaping of code in gettext_interpolation because it's not used and ↵Matthew Landauer2013-01-15-5/+3
| | | | | | | | not tested
* | Fix translations with interpolations to correctly handle safe_htmlMatthew Landauer2013-01-15-3/+11
| |
* | Added comment about the syntax of the interpolations in the translationsMatthew Landauer2013-01-15-0/+4
| |
* | Revert "Assume the result of doing any translation is html_safe"Matthew Landauer2013-01-14-3/+1
| | | | | | | | This reverts commit 493e8e7ec43351952e2d7876afaede0cdb5d3644.
* | Make use_spans_for_errors monkey patch output html safe stringMatthew Landauer2013-01-03-1/+1
| |
* | Assume the result of doing any translation is html_safeMatthew Landauer2013-01-02-1/+3
| |
* | Bring tag monkeypatch up to date with latest rails 2.3Matthew Landauer2013-01-02-2/+1
|/
* Bugfix - need to convert to string in the just email address case.Louise Crow2012-11-15-1/+1
|
* Wrap address parsing in a address_from_string method in the mail handler.Louise Crow2012-11-15-0/+9
|
* Move address_from_name_and_email to mail handler.Louise Crow2012-11-15-18/+26
|
* Move _get_file_part_name to mail handler.Louise Crow2012-11-15-0/+17
|