aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/raw_email.rb
Commit message (Collapse)AuthorAgeLines
* Rename Configuration class to avoid conflict with ActiveSupport::ConfigurableHenare Degan2013-03-03-1/+1
|
* Remove deprecated constants - #589Henare Degan2013-02-20-1/+1
|
* Don't read the saved mail in binary mode.Louise Crow2012-11-08-2/+2
| | | | | | | | | | The first reason for doing this is that atomic_write doesn't write in binary mode, and I think we should be symmetrical in reading and writing. The second reason is that I don't think a received email is really binary data in its raw form. I think it will be ascii with non ascii parts converted to ascii using content-transfer-encodings (http://en.wikipedia.org/wiki/MIME). This matters in Ruby 1.9 because we have a default internal and external encoding (http://blog.grayproductions.net/articles/ruby_19s_three_default_encodings). UTF-8 seems like a good initial default to set. If we retrieve this data from a file as binary data, we have a problem treating it as text, as we can't convert from binary to text in Ruby 1.9. Given that this is ascii data, I think we can safely treat it as UTF-8 (which should be a superset of ascii), until we convert it into a mail object, which should interpret the mime encodings correctly.
* Remove svn tags that are out of date as we are now using gitMatthew Landauer2012-10-09-2/+0
|
* Extract configuration with defaults into one moduleMatthew Landauer2012-09-25-2/+1
|
* Fail less bafflinglyRobin Houston2012-06-06-1/+9
| | | | | | Fail in a less baffling way if the raw email is associated with an incoming message or an info request that has not yet been saved to the database.
* Remove obsolete commentRobin Houston2012-06-06-5/+0
| | | | That comment makes precisely no sense whatever, any more.
* Further annotation correctionsSeb Bacon2012-05-24-1/+1
|
* Remove trailing whitespace (to make a cleaner forthcoming merge with ↵Seb Bacon2012-05-15-2/+2
| | | | wombleton:feature/440_sparkly_admin_css)
* use Rails.root, not RAILS_ROOTJames McKinney2012-04-02-1/+1
|
* Remove references to removed database columnsRobin Houston2012-01-24-24/+2
| | | | | Remove the references to raw_emails.data_text and data_binary, which have not existed since the summer.
* Use an atomic write when storing email data.Seb Bacon2012-01-19-1/+1
|
* Ensure model schema documentation is up to date.Seb Bacon2012-01-09-4/+3
|
* Fix dependency problem when deleting incoming messages. Closes #115Seb Bacon2011-08-08-2/+0
|
* Fix broken check for test environmentRobin Houston2011-08-01-1/+1
| | | | | | | The condition that was supposed to check for the "test" environment was accidentally imposing the test environment. Closes #102.
* To make tests pass with RawEmails on the filesystem, instead of hacky ↵Seb Bacon2011-07-29-3/+7
| | | | dependency on existence of text_binary field in raw_emails model, rewrite tests (and their fixtures) to explicitly load data from FS when raw_emails are used.
* drop strange, stray commentSeb Bacon2011-07-22-1/+0
|
* Store raw_emails in the filesystem, not in the database. They don't need to ↵Seb Bacon2011-07-22-2/+35
| | | | | | 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.
* Annotate models.Francis Irving2010-10-09-1/+1
|
* Update model annotations.Francis Irving2010-09-15-1/+1
|
* Update model annotations.Francis Irving2010-07-27-1/+1
|
* Add specific draft attribute.Francis Irving2010-07-15-1/+1
|
* Update model annotations.Francis Irving2010-07-15-3/+4
|
* Migrate to using a binary database field for storing raw emails, rather than ↵Francis Irving2009-10-30-0/+25
| | | | | | text. Does it gradually, so existing column is left alone to speed things up.
* Update model field comments.francis2009-09-17-2/+2
|
* Annotate models update.francis2009-06-26-2/+2
|
* Add charity registration number to database & edit form for public bodytony2009-04-13-2/+2
|
* Update models and schema for new tabletony2009-03-09-2/+2
|
* Option to ban users.francis2009-03-09-2/+2
|
* Add publication scheme for public bodies. (New database column and admintony2009-03-04-2/+2
| | | | interface only; public display can come later.)
* Check that we get exim log lines OK.francis2009-02-09-2/+2
| | | | Annotate models.
* Annotate models.francis2009-01-26-2/+2
|
* Strip attributes.francis2008-12-02-1/+3
|
* Update model annotations.francis2008-10-28-3/+3
|
* Annotate models.francis2008-09-22-1/+10
|
* Fix up test code, and some bugs relating to splitting out raw_email data.francis2008-09-22-0/+13