diff options
author | francis <francis> | 2008-10-28 14:56:56 +0000 |
---|---|---|
committer | francis <francis> | 2008-10-28 14:56:56 +0000 |
commit | 55ad36f858ee9d39afa5ffddfa80504bad07b249 (patch) | |
tree | b42b0a199c48452542e5d4861c4648004d6be571 | |
parent | 238cb2c36671e573aff373e919c9427ffa80e4c3 (diff) |
And a note.
-rw-r--r-- | app/models/incoming_message.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 6a73131d3..ff2df09a3 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -19,7 +19,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: incoming_message.rb,v 1.158 2008-10-28 14:49:38 francis Exp $ +# $Id: incoming_message.rb,v 1.159 2008-10-28 14:56:56 francis Exp $ # TODO # Move some of the (e.g. quoting) functions here into rblib, as they feel @@ -686,6 +686,8 @@ class IncomingMessage < ActiveRecord::Base # RFC822 message and it is text, if so add headers. # XXX should probably use hunting algorithm to find main text part, rather than # just expect it to be first. This will do for now though. + # Example request that needs this: + # http://www.whatdotheyknow.com/request/2923/response/7013/attach/2/Cycle%20Path%20Bank.txt if leaf.within_rfc822_attachment == leaf && leaf.content_type == 'text/plain' attachment.body = leaf.within_rfc822_attachment.port.to_s end |