Fix for missing Date: field header in PitBoss emails

zanzares

Chieftain
Joined
Aug 10, 2007
Messages
2
I noticed that PitBoss doesn't add a date field to the email header, which causes quite a number of problems.

First, many email providers will flag emails missing the date field as spam or bulk.

Second, in some webmail clients the date will be marked unknown, or in desktop clients like Thunderbird, the date the email is downloaded from the server will be used, rather than the true time it was sent.

The fix was quite simple, 3 lines in PbMain.py. It uses GMT, so no need to worry about time zones or daylight savings time. As long as the server clock and timezone are correct, the time it stamps the emails with will be as well.

Attached are versions for Vanilla Civ and BtS. The Vanilla one SHOULD work for Warlords, but I have not confirmed that as I don't have Warlords installed.

Addendum: Due to Civ's annoying insistence that every single file be identical between host and client, this WILL cause a file mismatch warning and mark all players as **MOD*. Which while highly aggravating, it is less aggravating than emails going out without a date stamp. At least for me anyway.
 

Attachments

Back
Top Bottom