aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-02-27 14:17:16 +1100
committerHenare Degan <henare.degan@gmail.com>2013-02-27 14:17:16 +1100
commitf07444d80961fcd3e7bb9555f5ed4a4e0b65b5db (patch)
tree518417e41c3758d2e0e50f537cb617694e94f3a4 /app/models/info_request.rb
parent65247a15ab8d876d7fd60ccf6ef91e2487c166e5 (diff)
Remove Tmail and use the Mail gem under Ruby 1.8.7 as well
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index b66c388c4..913d053bf 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -405,14 +405,6 @@ public
# A new incoming email to this request
def receive(email, raw_email_data, override_stop_new_responses = false, rejected_reason = "")
- # Just adding a bit of extra error checking just to save a lot of deep chasing of
- # strangeness.
- # TODO: Remove this when we don't use the TMail backend anymore for anything
- if (MailHandler.backend == "TMail" && !email.kind_of?(TMail::Mail)) ||
- (MailHandler.backend == "Mail" && !email.kind_of?(Mail::Message))
- raise "Wrong kind of mail object passed in receive"
- end
-
if !override_stop_new_responses
allow = nil
reason = nil