diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/request_mailer.rb | 9 | ||||
-rw-r--r-- | app/models/user_info_request_sent_alert.rb | 3 |
2 files changed, 7 insertions, 5 deletions
diff --git a/app/models/request_mailer.rb b/app/models/request_mailer.rb index d1770df3f..c5f5ab2b5 100644 --- a/app/models/request_mailer.rb +++ b/app/models/request_mailer.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: request_mailer.rb,v 1.85 2009-09-08 23:48:29 francis Exp $ +# $Id: request_mailer.rb,v 1.86 2009-10-03 02:22:18 francis Exp $ class RequestMailer < ApplicationMailer @@ -173,7 +173,7 @@ class RequestMailer < ApplicationMailer headers 'Return-Path' => blackhole_email, 'Reply-To' => @from, # not much we can do if the user's email is broken 'Auto-Submitted' => 'auto-generated' # http://tools.ietf.org/html/rfc3834 @recipients = info_request.user.name_and_email - @subject = "Was the response you got the other day any good?" + @subject = "Was the response you got to your FOI request any good?" @body = { :incoming_message => incoming_message, :info_request => info_request, :url => url } end @@ -286,10 +286,11 @@ class RequestMailer < ApplicationMailer end # Send email alerts for new responses which haven't been classified. Goes - # out 3 days after last update of event, then after 7. + # out 3 days after last update of event, then after 7, then after 24. def self.alert_new_response_reminders self.alert_new_response_reminders_internal(3, 'new_response_reminder_1') - self.alert_new_response_reminders_internal(7, 'new_response_reminder_2') + self.alert_new_response_reminders_internal(10, 'new_response_reminder_2') + self.alert_new_response_reminders_internal(24, 'new_response_reminder_3') end def self.alert_new_response_reminders_internal(days_since, type_code) #STDERR.puts "alert_new_response_reminders_internal days:" + days_since.to_s + " type: " + type_code diff --git a/app/models/user_info_request_sent_alert.rb b/app/models/user_info_request_sent_alert.rb index 0f40aaa20..309466792 100644 --- a/app/models/user_info_request_sent_alert.rb +++ b/app/models/user_info_request_sent_alert.rb @@ -17,7 +17,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: user_info_request_sent_alert.rb,v 1.33 2009-09-17 21:10:05 francis Exp $ +# $Id: user_info_request_sent_alert.rb,v 1.34 2009-10-03 02:22:18 francis Exp $ class UserInfoRequestSentAlert < ActiveRecord::Base belongs_to :user @@ -27,6 +27,7 @@ class UserInfoRequestSentAlert < ActiveRecord::Base 'overdue_1', # tell user that info request has become overdue 'new_response_reminder_1', # reminder user to classify the recent response 'new_response_reminder_2', # repeat reminder user to classify the recent response + 'new_response_reminder_3', # repeat reminder user to classify the recent response 'not_clarified_1', # reminder that user has to explain part of the request 'comment_1', # tell user that info request has a new comment ] |