diff options
author | francis <francis> | 2008-07-28 13:24:10 +0000 |
---|---|---|
committer | francis <francis> | 2008-07-28 13:24:10 +0000 |
commit | 02ebba5c73136a40f41c1e6ae685d556363aca36 (patch) | |
tree | f178927f3b2f320ecb7bff72064a3d06d2514771 | |
parent | b4f77f8b0e979b16b3d0d32312aadfc895703273 (diff) |
Make it clear it is Microsoft's :)
-rw-r--r-- | app/models/incoming_message.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 450ea0416..abbf6971e 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.124 2008-07-23 23:27:53 francis Exp $ +# $Id: incoming_message.rb,v 1.125 2008-07-28 13:24:10 francis Exp $ # TODO # Move some of the (e.g. quoting) functions here into rblib, as they feel @@ -699,7 +699,8 @@ class IncomingMessage < ActiveRecord::Base text += child.read() + "\n\n" end elsif attachment.content_type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' - # just pull out the main XML file, and strip it of text + # This is Microsoft's XML office document format. + # Just pull out the main XML file, and strip it of text. xml = '' IO.popen("/usr/bin/unzip -qq -c " + tempfile.path + " word/document.xml", "r") do |child| xml += child.read() + "\n\n" |