]> git.openstreetmap.org Git - rails.git/blobdiff - script/deliver-message
Treat all newly entered blocks of text as Markdown
[rails.git] / script / deliver-message
index 669e54a667fef1459b1e9c206d76c8affc4333f7..6dffea96cbff9633dcc023f9f8a6cc7937c18c2a 100755 (executable)
@@ -18,6 +18,8 @@ end
 
 exit 0 unless recipient[3] == digest[0,6]
 
 
 exit 0 unless recipient[3] == digest[0,6]
 
+message.update_attribute(:message_read, true) if message
+
 mail = Mail.new(STDIN.readlines.join)
 
 if mail.multipart?
 mail = Mail.new(STDIN.readlines.join)
 
 if mail.multipart?