LuxSci

Change the Subject! Modify inbound email message subject lines with dynamic and static content using Custom Email Filters

Published: July 27th, 2011

All LuxSci email hosting customers can create unlimited “Custom Email Filters” to take various actions (like delete, save to a folder, forward, save to WebAide, etc.) on certain inbound email messages if they match specified criteria (such as being from a certain person, contain certain content, etc.).

Now, these customers can create Custom Email Filters that dynamically alter or replace the “Subject” of an inbound email message.  The new Subject can be composed of static text as well as dynamic content.

How Does it Work?

When creating the Custom Email Filter, customers enter the “New Subject” for the matching messages.  This “New Subject” consists of static text and well as optional “place holders”.  The place holders will be replaced with dynamic content when the message is processed.

For example:

SPAM: {{Subject}}

Results in pre-pending the subject with “SPAM:

{{Timestamp}} - {{From_Name}} - Important Message!

Would replace the subject with content including the timestamp in GMT and the name of the message sender.  The original subject would not show up at all!

{{Hour}}:{{Minute}} - {{Subject}}

Would prefix the subject with the 2-digit hour and minute of when the message was processed by the filter, in the preferred timezone of the recipient.

Additionally, customers can have the original message subject copied to another header, “X-Old-Subject“, so that it can be referred to later by other filters and/or by the recipient.

What Place Holders are Supported?

Currently, the following place holders can be used in the new message subjects:

{{Day}} 2-digit day in user’s preferred timezone at the time the message was processed.
{{From}} Complete contents of the “From” mail header (i.e. email address and name, as is)
{{From_Email}} Email address extracted out of the From email header. The from name and any other data is omitted.
{{From_Name}} Complete contents of the “Name” part of the mail header. If no “name” is specified, then the from email address will be used instead.
{{Hour}} 2-digit hour in user’s preferred timezone at the time the message was processed.
{{Minute}} 2-digit minute in user’s preferred timezone at the time the message was processed.
{{Month}} 2-digit month in user’s preferred timezone at the time the message was processed.
{{Month_Name}} Name of the month (i.e. “January”) in user’s preferred timezone at the time the message was processed.
{{Second}} 2-digit second in user’s preferred timezone at the time the message was processed.
{{Subject}} The original message subject.
{{Timestamp}} 14-digit timestamp in GMT at the time the message was processed. I.e. “20110122120501” for January 22nd, 2011 at 12:05:01 in GMT.
{{UID}} User’s Unique User ID number on the system.
{{Year}} 4-digit year in user’s preferred timezone at the time the message was processed.

Leave a Comment


You must be connected or logged in to post a comment. This is to reduce spam comments.

If you have not previously commented, you can connect using existing social media account, or register with a new username and password.