jmurray
12 years agoChampion
Differentiating between types of things in Email Text Subjects for Subscription Digest
I would like my subject lines in notifications emails to be more specific and say "Updated Topic" for updated topics or ideas, "New Topic" for new threads to a forum you're subscribed to, and "New Idea" for a subscription to an Ideas Exchange.
I'm not sure how to identify a new thread from an updated thread or how to identify an idea from a regular forum topic. Is this possible? If so, how?
To check if a topic is new or updated, you can compare the two:
$message.postDate
$message.lastEditDate
If they are the same, the topic is new, otherwise it's updated.
To check if a thread is an 'idea' or a 'forum', use:
$thread.discussionStyle
Hope that helps!