Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon Content Filter > Content Filter and Timestamp Variable

 [F] Alt-N Discussion Groups  / MDaemon Discussion Groups  / MDaemon Content Filter  /

Content Filter and Timestamp Variable

[Dawley, Del]
Del Dawley
Newbie
Newbie
Posts: 8
Del Dawley - 08:56am, Sep 21 2021

Various devices send out email alerts on our network and I would like MDaemon to add a timestamp to either the message header or body.

Is there a way to add a timestamp when the content filter processes the message?

Thanks
Del

  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Arron Caruth - Sep 21, 2021 9:59 am (#1 Total: 1)  

Guest User  

Photo of Author
Posts: 1
Technically the messages are already time stamped.

The Date header is created by the sending client and should include the date/time the message was sent. 
Date: Sun, 19 Sep 2021 15:46:50 +0200
each server that processes the message should add a Received header that also includes the date/time the message was processed by the server.

Received: from sg.mydomain.com (sg.mydomain.com [12.12.12.12]) by mail1.mydomain.int (65.99.242.68) (MDaemon PRO v21.0.3) 
	with ESMTPS id md5003000778813.msg; Sun, 19 Sep 2021 08:49:10 -0500
MDaemon also includes date/time stamps in the X-MDAV-Processed, X-Spam-Processed, and X-MDArrival-Date headers.

You can also add a date/time stamp using the content filter. Here is a rule that will add a custom header called X-MyDate with the current date/time and it will also add the date/time to the top of the body of the message.

[Rule030]
RuleName=New Rule #30
Enable=Yes
ThisRuleCondition=All
ProcessQueue=BOTH
Condition01=FROM|contains|AND|arron@encrypt.ssllock.com|
Action01=add header|"X-MyDate","$CURRENTTIME$"
Action02=add warning|"$CURRENTTIME$"

There are lots of other options with the content filter too, if you'd like something different, let us know and we will try to help create a rule that does what you are looking for.
--
Arron Caruth
Vice President of Product Development
o: 817-601-3222    e: Arron.Caruth@mdaemon.com

MDaemon Technologies
Simple Secure Email

Visit us on www.mdaemon.com | Facebook | LinkedIn | YouTube
Sent using the MDaemon Email Server

On Tue, 21 Sep 2021 08:56:30 -0500, "lists-md-content-filter@mdaemon.com (Del Dawley)" <lists-md-content-filter@mdaemon.com> wrote:
Various devices send out email alerts on our network and I would like MDaemon to add a timestamp to either the message header or body.

Is there a way to add a timestamp?

Thanks
Del


View/reply at Content Filter and Timestamp Variable
--MD-CFILTER---------------------------------------------------------
This list is for questions and discussions about MDAEMON's Content 
Filter. To unsubscribe from this mailing list send an email to 
md-cfilter-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!------------------------------------------------

---------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user 
support and discussion.  MDaemon staff members may participate in the 
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical 
support please use the form here:
http://www.mdaemon.com/Support/RequestSupport/
---------------------------------------------------------------------

--MD-CFILTER---------------------------------------------------------
This list is for questions and discussions about MDAEMON's Content
Filter. To unsubscribe from this mailing list send an email to
md-cfilter-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!------------------------------------------------

---------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user
support and discussion.  MDaemon staff members may participate in the
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical
support please use the form here:
http://www.mdaemon.com/Support/RequestSupport/
---------------------------------------------------------------------



  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



 Content:

Read New | Search

 Guest:

Email to Admin



You are visiting as a Guest user.