Mark a message as read when we receive an email reply to it
This commit is contained in:
parent
8568ffc56c
commit
300639dfa3
1 changed files with 2 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue