diff options
author | francis <francis> | 2009-07-16 16:36:01 +0000 |
---|---|---|
committer | francis <francis> | 2009-07-16 16:36:01 +0000 |
commit | 78692e3be74dbd7d2373859b2c0f9c80f2d61563 (patch) | |
tree | ad9597e7a86ce158be8eb7aee2f889cfdfdd2d0b | |
parent | 46ca79a72ea5204ea653cdf87bf5c1c200d7b5b9 (diff) |
Comment.
-rw-r--r-- | app/models/incoming_message.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 39990e1d1..5405ef180 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.208 2009-07-16 16:33:37 francis Exp $ +# $Id: incoming_message.rb,v 1.209 2009-07-16 16:36:01 francis Exp $ # TODO # Move some of the (e.g. quoting) functions here into rblib, as they feel @@ -1020,6 +1020,9 @@ class IncomingMessage < ActiveRecord::Base begin body = entry.get_input_stream.read rescue + # move to next attachment silently if there were problems + # XXX really should reduce this to specific exceptions? + # e.g. password protected next end calc_mime = filename_to_mimetype(filename) |