Perry Gilfillan - 2005-10-09

Logged In: YES
user_id=793485

It's posible most people will not see the lack of a Date:
header if their inbound MTP is set to add a Date header. I
have just made this change myself.

Here is my best effort to add the Date: header, I poked and
prodded, and just generally persevered, and it seems to do
the job.

Share and Enjoy!

--- daemonshield.orig 2005-10-09 12:15:56.000000000 -0500
+++ daemonshield 2005-10-09 12:31:58.000000000 -0500
@@ -339,8 +339,10 @@
# Mails report
if self.mailenable == "true":
subject = "Blocked
IP on " + socket.gethostname() + ': ' + blockline.split('\t')[0]
+ timestamp =
time.asctime(time.localtime())
message = "To: " +
','.join(self.mailto) + '\n' + \
"From: " +
self.mailfrom + '\n' + \
+ "Date: " +
timestamp + '\n' + \
"Subject: "
+ subject + '\n' + \
"Dropped IP:
" + \

'\n\n'.join(blockline.split('\t'))