aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* 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
| |
* | Fix syntax of example email. The number of expected attachments was based on ↵Louise Crow2012-12-04-4/+3
| | | | | | | | the specific handling of a bad end boundary in tmail.
* | Add spec for handling an RFC822 attachment.Louise Crow2012-12-04-0/+165
| | | | | | | | | | | | Conflicts: spec/models/incoming_message_spec.rb
* | 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 option to load_file_fixture to specify that the file contents should ↵Louise Crow2012-12-04-4/+8
| | | | | | | | just be loaded as binary.
* | Add spec for the adding of headers to plain text bodies in attachments.Louise Crow2012-12-04-0/+63
|/
* Rewrite and move spec so that it tests the mail handler method.Louise Crow2012-12-04-5/+7
|
* Removing obsolete comment - doesn't apply to this spec.Louise Crow2012-12-04-3/+0
|
* Add specs for getting name, email and formatted address - make them pass ↵Louise Crow2012-12-04-1/+51
| | | | with the mail backend.
* Add a method for setting the from address on a plain email fixture.Louise Crow2012-12-04-6/+8
|
* Rewrite spec to reflect delegation of low-level mail methods to mail ↵Louise Crow2012-12-04-29/+17
| | | | handler, use mail handler methods.
* Add methods for finding out if there is an empty return path on a mail and ↵Louise Crow2012-12-04-0/+52
| | | | getting the auto-submitted field.
* Remove duplicate method that was masking what seems to be intended to be the ↵Louise Crow2012-12-04-30/+1
| | | | real valid_to_reply_to? method - which accesses cached values. Replacing the _calculate_valid_to_reply_to logic with the code that will have actually been running.
* Remove obsolete comment.Louise Crow2012-12-04-5/+0
|
* Remove redundant method.Louise Crow2012-12-04-5/+1
|
* Move method for getting the to, cc and envelope-to addresses of a mail to ↵Louise Crow2012-12-04-15/+56
| | | | the mail handler.
* Get name and address specs to pass under Ruby 1.9Louise Crow2012-12-03-5/+26
|
* Add specs for the mail handler getting the from name and from address from ↵Louise Crow2012-12-03-0/+56
| | | | an email.
* Use get_part_body in spec.Louise Crow2012-12-03-1/+1
|
* 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-4/+10
|