aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/incoming_message.rb
Commit message (Collapse)AuthorAgeLines
* Support regular expressions in CensorRules; also support 'global' ↵Seb Bacon2012-07-13-16/+0
| | | | CensorRules that aren't attached to a User or Request or Public Body (but don't expose this in the admin UI). Fixes #33
* API: we can add a response to a requestRobin Houston2012-06-06-1/+1
|
* Merge branch 'develop' of github.com:sebbacon/alaveteli into developDavid Cabo2012-05-28-37/+41
|\
| * Further annotation correctionsSeb Bacon2012-05-24-20/+21
| |
| * Re-annotate modelsSeb Bacon2012-05-24-21/+21
| |
| * Merge from wombleton:feature/440_sparkly_admin_cssSeb Bacon2012-05-23-4/+8
| | | | | | | | | | | | | | Includes a couple of additional fixes: * Remember to HTML-quote things that could come from users * Fix form post action for editing users
| * Remove trailing whitespace (to make a cleaner forthcoming merge with ↵Seb Bacon2012-05-15-31/+31
| | | | | | | | wombleton:feature/440_sparkly_admin_css)
| * Don't set attachment size explicitly -- can result in race condition which ↵Seb Bacon2012-05-02-1/+0
| | | | | | | | incorrectly sets size to 0K, and is set when the attachment body is created anyway.
* | I18n missing descriptions when editing out email addressesDavid Cabo2012-05-28-3/+3
| |
* | I18n missing string in model for quoted sectionsDavid Cabo2012-05-28-2/+2
|/
* Specify attachment orderingRobin Houston2012-02-03-1/+1
| | | | | | | | | | | | | | | So it turns out that issue #408 is a real and potentially nasty bug. The code was assuming that attachments are returned in the order they were created, which is a) not guaranteed to be the case, and b) sometimes actually not the case, hence the occasional test failures. This trivial patch corrects the issue by sorting attachments by id. The effect of this is to return them in the order they were added to the database, since all were added using the same sequence in a single database session. Fixes #408.
* Remove trailing whitespaceRobin Houston2012-02-03-2/+2
|
* Fail fasterRobin Houston2012-01-29-0/+3
| | | | | | Better error reporting when an incoming message has no raw_email. This is useful if you make a mistake when creating new test data, to pick an example application completely at random (not).
* Force the 'C' locale for elinksRobin Houston2012-01-17-2/+2
| | | | | The behaviour of elinks is locale-dependent. This patch forces LANG=C which makes the behaviour consistent across platforms.
* Comment typoRobin Houston2012-01-17-1/+1
|
* Explicitly specify little-endian UCS-2Robin Houston2012-01-17-2/+2
| | | | | because for some reason iconv is assuming big-endian on my MacBook Pro (OS X 10.7.2) unless told explicitly, and this causes test failure.
* Use AlaveteliExternalCommand for pdf recompressionRobin Houston2012-01-17-7/+3
|
* Replace all `which command` callsRobin Houston2012-01-17-12/+8
| | | | | | | | | | The trouble with `which command` is twofold: - It spawns a whole shell just to find out the path to a binary, every time; - The results are environment-dependent, since they depend on $PATH. It would be better to specify the search path in the configuration file where everything else is specified rather than in the environment. This commit replaces it with the new mechanism from AlaveteliExternalCommand.
* Typo whoopsRobin Houston2012-01-17-1/+1
|
* Call uudecode via AlaveteliExternalCommandRobin Houston2012-01-17-3/+1
| | | | | | So do not rely on a hard-coded path. Also change the order of arguments and use /dev/stdout rather than -, so it works with the Mac/BSD version of uudecode as well as the Linux version.
* Changes to attempt to ensure we always get a consistent state for an ↵Seb Bacon2012-01-12-14/+16
| | | | incoming message's attachments. May fix #339.
* Ensure model schema documentation is up to date.Seb Bacon2012-01-09-6/+12
|
* Ensure attachments have been parsed before generating cached extractsSeb Bacon2012-01-05-0/+1
|
* Correctly test for auto-submitted headers. Fixes #316.Seb Bacon2012-01-05-2/+2
|
* Display internationalized emails correctly (specifically, RFC2047 headers, ↵Seb Bacon2012-01-04-47/+44
| | | | and HTML emails with encoding in a meta-tag). Fixes #281
* Remove class file that was made redundant in ↵Seb Bacon2012-01-04-269/+0
| | | | 79fd89c5aec01ea035d57c5a71213202dafc778c
* Ensure we always censor safe_mail_from; and mention new only-parse-once ↵Seb Bacon2011-12-21-12/+12
| | | | feature in CHANGES.md
* Ensure we only parse emails when needed by referring to a new last_parsed ↵Seb Bacon2011-12-21-49/+29
| | | | field on incoming_messages. Currently mails are always parsed just-in-time, but could be parsed as a queue in the future.
* Further improvements to attachment cachingSeb Bacon2011-12-13-38/+48
|
* WIP on caching attachmentsSeb Bacon2011-12-12-90/+174
|
* fix calls to which commandJames McKinney2011-10-11-9/+9
|
* Use flexible binary paths for external commandsJames McKinney2011-10-11-6/+6
|
* Improve signature folding regexp. Fixes issue #253.Seb Bacon2011-10-11-12/+4
|
* Merge branch 'wdtk' into developRobin Houston2011-09-19-1/+1
|\
| * Extend the detection of DNR addressesRobin Houston2011-09-08-1/+1
| | | | | | | | | | | | | | Extend the detection of do-not-reply addresses to detect <do_not_reply@> <do-not-reply@>, etc. Example: http://www.whatdotheyknow.com/request/the_number_of_complaints_for_ace#incoming-207024
* | Provide ability to download zip file containing complete request. Closes #11Seb Bacon2011-09-13-37/+8
| |
* | Improve detection of autoresponse emails, so we can discourage users from ↵Seb Bacon2011-09-09-1/+6
|/ | | | replying to them. Fixes #137 (partially)
* Add test for generation of HTML versions of attachments. As a side-effect, ↵Seb Bacon2011-08-17-2/+2
| | | | make some of the HTML more valid. Prerequisite for addressing issue #108.
* Force elinks to assume UTF8 character set for its input (used when making ↵Seb Bacon2011-08-12-1/+1
| | | | plain text versions of HTML email)
* Remove more whatdotheyknow references. Closes #113 (I think).Seb Bacon2011-08-12-1/+2
|
* I18n'd hardcoded WhatDoTheyKnow strings, mostly in mails. Use named variable ↵David Cabo2011-08-11-3/+5
| | | | substitution in gettext strings.
* Apply censor rules even when pdftk refuses to compress. Also provide for ↵Seb Bacon2011-08-10-1/+13
| | | | alternative to pdftk for compression. Closes #123.
* Fix dependency problem when deleting incoming messages. Closes #115Seb Bacon2011-08-08-2/+1
|
* 1) You can’t call an instance method from a class method (d’oh)Robin Houston2011-07-14-2/+2
| | | | | | 2) The test coverage is less good than I imagined. XXXX need test for zip file attachments
* Continue processing if we encounter a corrupt zip fileRobin Houston2011-07-13-21/+31
|
* Google Docs Viewer can now handle .pptx and .xlsx files.Robin Houston2011-07-04-50/+39
| | | | Closes #68.
* Calling a class method from an instance method needs to be done explicitlyRobin Houston2011-06-22-1/+1
|
* Run wvText through the external_command wrapper, tooRobin Houston2011-06-21-1/+1
|
* 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).
* - Refactor models/incoming_message.rb to get rid of the hideousRobin Houston2011-06-21-190/+92
| | | | | | | global variables and methods. Move the MIME type stuff into lib/alaveteli_file_types.rb. - Correct the spelling of the word extensions (not extentions).