Mark a message as read when we receive an email reply to it
authorTom Hughes <tom@compton.nu>
Fri, 16 Mar 2012 15:17:50 +0000 (15:17 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 16 Mar 2012 15:17:50 +0000 (15:17 +0000)
script/deliver-message

index 669e54a..7382f25 100755 (executable)
@@ -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]