aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-02-23 23:20:43 +0000
committerFrancis Irving <francis@mysociety.org>2010-02-23 23:20:43 +0000
commita901c6a4794e7a17bdc4a12627a015b069def295 (patch)
tree501bcf30b9de7787ce9a9f4092e72ce7b2fdb718
parentc396924e0fcdff8d8701a3b9de71750f87120e27 (diff)
Comment on when text/html needed
-rw-r--r--app/models/incoming_message.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index 121294fdb..c05a14762 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -896,7 +896,8 @@ class IncomingMessage < ActiveRecord::Base
# Find first part which is text/plain or text/html
# (We have to include HTML, as increasingly there are mail clients that
# include no text alternative for the main part, and we don't want to
- # instead use the first text attachment)
+ # instead use the first text attachment
+ # e.g. http://www.whatdotheyknow.com/request/list_of_public_authorties)
leaves.each do |p|
if p.content_type == 'text/plain' or p.content_type == 'text/html'
return p