1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--- scripts/helpers.pyin.orig 2013-08-17 19:30:48.000000000 +0200
+++ scripts/helpers.pyin 2013-08-17 19:35:42.000000000 +0200
@@ -10,7 +10,7 @@
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-import os, commands
+import os, commands, time
from capisuite.config import *
from capisuite.voice import sayNumber, getAudio
@@ -114,6 +114,7 @@
msg['Subject']=mail_subject
msg['From']=mail_from
msg['To']=mail_to
+ msg['Date']=time.strftime('%a, %d %b %Y %H:%M:%S %z')
msg.preamble = 'This is a Multipart-MIME-message. Please use a capable mailer.\n'
msg.epilogue = '' # To guarantee the message ends with a newline
@@ -206,6 +207,7 @@
msg['Subject'] = mail_subject
msg['From'] = mail_from
msg['To'] = mail_to
+ msg['Date'] = time.strftime('%a, %d %b %Y %H:%M:%S %z')
return __sendmail(mail_from, mail_to, msg)
|