aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/raw_email_spec.rb
Commit message (Collapse)AuthorAgeLines
* Handle unparsed email contents as binary.Louise Crow2015-05-26-9/+38
| | | | | | | | | | | I think I was wrong in a83b379fd2d676172855825d0592937b234371e2 in assuming that all email gets properly encoded for transfer. Looking at the mail gem load method https://github.com/mikel/mail/blob/b159e0a542962fdd5e292a48cfffa560d7cf412e/lib/mail/mail.rb#L175a, it reads raw email content from a file in binary mode. So this commit makes both reading and writing the raw_email a binary mode operation and adds a data_as_text method for displaying the data in the admin interface that coerces it to valid utf-8.
* Cleanup spec.Louise Crow2015-05-22-13/+14
| | | | Move setup to spec - not in common with other specs.
* Remove obsolete testLouise Crow2015-05-22-19/+4
| | | | | We don't write the data for a raw email to the database anymore. It's written to a file.
* Rename XXX comments with TODO:Gareth Rees2014-06-10-1/+1
| | | | Picks these up in `rake notes` and adds semantic meaning
* Re-annotate models with database fieldsLouise Crow2013-09-16-0/+7
|
* Store raw_emails in the filesystem, not in the database. They don't need to ↵Seb Bacon2011-07-22-0/+4
| | | | | | be in the database (we never write to them, for example), and they bloat it unecessarily, making backups etc difficult. NOTE: this migration could take a *very* long time.
* Replace STDERR.puts by $stderr.puts elsewhere, which is potentially more ↵Robin Houston2011-06-21-2/+2
| | | | flexible (because STDERR is always the system standard error file descriptor, whereas $stderr can be replaced by some other ruby object to handle error output).
* Make path work in Ruby 1.9Francis Irving2010-09-15-1/+1
|
* Remove test that doesn't seem to matter, and should be fixed in coreFrancis Irving2009-12-22-8/+12
| | | | Rails
* Comment what bug this is testing.Francis Irving2009-12-07-0/+3
|
* Test for PostgreSQL slash escaping bugFrancis Irving2009-12-01-0/+25
http://blog.aradine.com/2009/09/rubys-marshal-and-activerecord-and.html https://rails.lighthouseapp.com/projects/8994/tickets/1063-binary-data-broken-with-postgresql-adapter