Skip to content

Commit f551424

Browse files
authored
Create Mark an Email High Importance
1 parent 7ca1618 commit f551424

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// In Email client, agents don't have a way to mark an email high importance. This is an alternate method using which when the agent add an exclamation '!' ot the start of the email subject, email will be sent as High Importance Email
2+
3+
(function executeRule(current, previous /*null when async*/) {
4+
if (current.subject.startsWith('!'))
5+
{
6+
current.importance = "high";
7+
current.subject = current.subject.substring(1);
8+
}
9+
})(current, previous);

0 commit comments

Comments
 (0)