summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dialup/capisuite/files/capisuite-0.5.0-date-header.patch')
-rw-r--r--net-dialup/capisuite/files/capisuite-0.5.0-date-header.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/net-dialup/capisuite/files/capisuite-0.5.0-date-header.patch b/net-dialup/capisuite/files/capisuite-0.5.0-date-header.patch
new file mode 100644
index 0000000..060f576
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite-0.5.0-date-header.patch
@@ -0,0 +1,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)
+
+