To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=73312
Issue #|73312
Summary|Email merge via external smtp: missing data informatio
|n
Component|Word processor
Version|OOo 2.1
Platform|All
URL|
OS/Version|Linux
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|printing
Assigned to|mru
Reported by|flabrosse
------- Additional comments from [EMAIL PROTECTED] Tue Jan 9 08:39:00 -0800
2007 -------
When mailmerging from oo writer to produce emails, I get a reply back from the
smtp server that says that the date field is missing. Looking at
mailmerge.py, this is indeed the case.
I added a few lines in the file to include the info and that fixed the
problem. Here's a diff between the original and modified files:
# diff -c mailmerge.py.org mailmerge.py
*** mailmerge.py.org Tue Jan 9 13:54:03 2007
--- mailmerge.py Tue Jan 9 13:55:58 2007
***************
*** 36,41 ****
--- 36,45 ----
from email.Message import Message
from email import Encoders
from email.MIMEMultipart import MIMEMultipart
+ # ffl
+ from email.Utils import formatdate
+ from time import time
+ # /ffl
import sys, smtplib, imaplib, poplib
***************
*** 151,156 ****
--- 155,163 ----
if xMailMessage.ReplyToAddress != '':
msg['Reply-To'] = xMailMessage.ReplyToAddress
msg['X-Mailer'] = "OpenOffice.org 2.0 via Caolan's mailmerge
component"
+ # ffl
+ msg['Date'] = formatdate(time(),True)
+ # /ffl
for attachment in attachments:
content = attachment.Data
Hope this helps.
Fred
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]