wpsharks / comment-mail

A WordPress plugin enabling email subscriptions for comments.
http://comment-mail.com
GNU General Public License v3.0
8 stars 3 forks source link

Question: editing a comment #262

Closed IvanRF closed 8 years ago

IvanRF commented 8 years ago

What happens to notifications in the Mail Queue when I edit a new comment? is the comment content read just before sending the notifications or when they are queue?

It's just a doubt I have, if after I edit a comment the pending notifications will have the updated comment or the old one.

raamdev commented 8 years ago

A quick review of the codebase tells me that queued entires contain everything that will be sent for that notification (including the body of the message), so it looks like editing a comment after a notification for it has been queued will not send the updated comment, but rather whatever content that comment contained when the notification was queued.

@jaswsinc Can you confirm this? This sounds like a good info for a KB Article.

jaswrks commented 8 years ago

Comment Mail sends what is in the DB at the time the notification is sent via email. So if you edit a comment before it is sent (even if it was already queued), the user receives the updated comment content and not what was originally written.

IvanRF commented 8 years ago

@jaswsinc that's what I wanted, thanks!