Page 1 of 1

Add Date Header if None Exists

Posted: 2009-07-24 14:44
by PeterK2003
I get a decent amount of mail(mostly SPAM but some legit stuff) that has no date header. This causes me grief when sorting by date in both Thunderbird and Roundcube. Could a feature be implemented that if a message lacks the date field the server adds one with the date and time that the message was received by the server? Or is there a better way to handle this?

Thanks,
~Peter

Re: Add Date Header if None Exists

Posted: 2009-07-24 16:26
by mattg
Pretty easily done with a script.

see this for an example - http://www.hmailserver.com/forum/viewto ... te+#p48185

Re: Add Date Header if None Exists

Posted: 2009-07-24 16:48
by PeterK2003
if that works that would satisfy my needs but it would sorta be nice if it was just a check box in admin console.

Thanks!

Re: Add Date Header if None Exists

Posted: 2009-07-25 10:32
by Keba
PeterK2003 wrote:I get a decent amount of mail(mostly SPAM but some legit stuff) that has no date header. This causes me grief when sorting by date in both Thunderbird and Roundcube. Could a feature be implemented that if a message lacks the date field the server adds one with the date and time that the message was received by the server? Or is there a better way to handle this?

Thanks,
~Peter
Greylisting is your friend.

Any moronic spammer script that forgets to put in a date header will also fail greylisting.

I've yet to see any spam through without a date header. My average statistics over the last few months are:
3% legit email
96% rejected spam
1% spam that gets through the various checks
0% legit email rejected
greylisting enabled
catchall enabled
several domains targeted for random address spam

Re: Add Date Header if None Exists

Posted: 2009-07-25 13:40
by PeterK2003
nearly 100% of my spam is caught but I do have some legit messages that don't have date header.

The script trick posted above seems to work so i am satisfied with that.