File capisuite-0.4.5-date.diff of Package capisuite
Index: capisuite-0.4.5/scripts/cs_helpers.pyin
===================================================================
--- capisuite-0.4.5.orig/scripts/cs_helpers.pyin
+++ capisuite-0.4.5/scripts/cs_helpers.pyin
@@ -166,11 +166,12 @@ def uniqueName(directory,basename,suffix
# @param text a string containing the text of the first part of the mail
# @param attachment name of the file to send as attachment
def sendMIMEMail(mail_from,mail_to,mail_subject,mail_type,text,attachment):
- import email.MIMEBase,email.MIMEText,email.MIMEAudio,email.Encoders,encodings.ascii,smtplib,popen2,capisuite
+ import email.MIMEBase,email.MIMEText,email.MIMEAudio,email.Encoders,encodings.ascii,smtplib,popen2,capisuite,datetime
msg = email.MIMEBase.MIMEBase("multipart","mixed")
msg['Subject']=mail_subject
msg['From']=mail_from
msg['To']=mail_to
+ msg['Date']=datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S +0000")
msg.preamble = 'This is a Multipart-MIME-message. Please use a capable mailer.\n'
msg.epilogue = '' # To guarantee the message ends with a newline