X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1340fca8f17e4e3cce211e6eafed18cde7f57386..aa4205482a4af317ec26fc686793b57f02a6864a:/script/deliver-message diff --git a/script/deliver-message b/script/deliver-message index 669e54a66..6dffea96c 100755 --- a/script/deliver-message +++ b/script/deliver-message @@ -18,6 +18,8 @@ end 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?