From 300639dfa352d93fbbead68075f5edb29b1b5de7 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 16 Mar 2012 15:17:50 +0000 Subject: [PATCH] Mark a message as read when we receive an email reply to it --- script/deliver-message | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/deliver-message b/script/deliver-message index 669e54a66..7382f251a 100755 --- a/script/deliver-message +++ b/script/deliver-message @@ -14,6 +14,8 @@ else digest = message.digest from = message.recipient to = message.sender + + message.update_attribute(:message_read, true) end exit 0 unless recipient[3] == digest[0,6] -- 2.39.5