aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Merge branch 'feature/rework-mail-handling' into developLouise Crow2012-12-06-386/+1331
|\
| * Add specs for attachment attributes.Louise Crow2012-12-06-0/+20
| |
| * Add alternative sanitization for Ruby 1.9Louise Crow2012-12-06-23/+57
| |
| * Test on Ruby 1.9.3 in Travis.Louise Crow2012-12-06-0/+1
| |
| * 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-1/+40
| | | | | | | | | | | | 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
| |
| * Add a spec for some basic consistency in content types, url part numbers, ↵Louise Crow2012-12-06-0/+80
| | | | | | | | filenames, and within rfc822 subjects.
| * 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/+461
| |
| * Stub the close method on the object we're passing to the zip file extraction ↵Louise Crow2012-12-06-1/+3
| | | | | | | | function.
| * Update comments to reflect the fact that text is coming from an foi ↵Louise Crow2012-12-06-3/+4
| | | | | | | | attachment model, and hasn't necessarily been handled by TMail.
| * Reformat for line length.Louise Crow2012-12-06-1/+3
| |
| * Rename _get_attachment_text_internal_one_file to ↵Louise Crow2012-12-06-9/+9
| | | | | | | | 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-125/+127
| |
| * Only make a tempfile etc if we're actually going to use it. Keep the body ↵Louise Crow2012-12-06-20/+30
| | | | | | | | | | | | | | | | call outside the Chdir block - sometimes getting the body may involve opening files too. Conflicts: app/models/foi_attachment.rb
| * Standard indent.Louise Crow2012-12-06-4/+4
| |
| * 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
| |
| * Write to the temp file in binary mode - we may be writing binary content, ↵Louise Crow2012-12-05-0/+1
| | | | | | | | such as a PDF file.
| * Use the character set of the attachment to encode the string that we're ↵Louise Crow2012-12-05-0/+17
| | | | | | | | pulling out of the file before converting it to our default encoding.
| * Remove redundant references to MailHandlerLouise Crow2012-12-05-3/+3
| |
| * Move mail-specific stuff to mail handler.Louise Crow2012-12-05-47/+47
| |
| * Separate mail-specific stuff from creation/update of model instances.Louise Crow2012-12-05-8/+12
| |
| * Add a wrapper method for get_attachment_leaves.Louise Crow2012-12-05-4/+9
| |
| * 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-90/+89
| |
| * Pass around mail object explicitly when getting attachment leaves.Louise Crow2012-12-05-8/+8
| |
| * Move part counting to the mail handler.Louise Crow2012-12-05-53/+55
| |
| * Pass explicit references to the mail when counting parts.Louise Crow2012-12-05-13/+13
| |
| * Move counters to mail object.Louise Crow2012-12-05-5/+9
| |
| * Move content type normalization to mail handler.Louise Crow2012-12-05-27/+26
| |
| * Now that the underlying methods handle the case where there is no from field ↵Louise Crow2012-12-05-2/+2
| | | | | | | | content by returning nil, I don't think we need to rescue a NoMethodError - this would have originally been returned by calling spec on from_addrs[0] when it was nil.
| * Use the binary_output option to have the strings returned by ↵Louise Crow2012-12-05-8/+17
| | | | | | | | AlaveteliExternalCommand be transcoded using the default internal and external encodings in Ruby 1.9.
| * Use mail handler to get the content type of each email part.Louise Crow2012-12-05-1/+1
|/
* Try without sudo, without custom bundler version.Louise Crow2012-12-04-1/+0
|
* Don't use sudo to install gems in Travis.Louise Crow2012-12-04-4/+4
|
* Use the pre-release 1.3 version of bundler in order to get our bugfix.Louise Crow2012-12-04-0/+1
|
* Move the action mailer dependency to the mail handler so that it's only ↵Louise Crow2012-12-04-19/+23
| | | | active in Ruby 1.8. Use mail handler methods in handle-mail-replies.
* Still fiddling with rake versions to try and get Travis to build the project ↵Louise Crow2012-12-04-2/+2
| | | | without hitting the bundler bug. Fix rake at 0.9.2.2 in the Gemfile.
* Try specifying a specific version of rake via packages to overcome bundler ↵Louise Crow2012-12-04-1/+1
| | | | bug in installing rake and then rake-dependent gems.
* Actually, standardize on a slightly newer version of rake - 0.8.7 causes ↵Louise Crow2012-12-04-4/+4
| | | | deprecation warnings.
* Adding methods for getting the content type of a mail part, and getting ↵Louise Crow2012-12-04-0/+70
| | | | header strings from a mail.
* Merge branch 'develop' of ssh://git.mysociety.org/data/git/public/alaveteli ↵Louise Crow2012-12-04-0/+0
|\ | | | | | | | | | | | | into develop Conflicts: spec/models/incoming_message_spec.rb
| * Add spec for the adding of headers to plain text bodies in attachments.Louise Crow2012-12-04-0/+63
| |