The group mail feature, that allows you to send email to your defined group, has some rather bad formatting problems in the mail output. For instance I sent a message, structured as follows:
Message Body Paragraph 1
Message Body Paragraph 2
Signature
which was received as email rearranged by MXMWorkgroups as follows.
Message Body Paragraph 1
Recipient List
Message Body Paragraph 2 (no paragraph break) Signature
All paragraphs run together (the email does not seem to recognize line breaks).
-- harlow pinson
hpinson@indepthl.com
re: email formatting
Posted byAnonymous Userat
2004-09-22 06:22 PM
This might be helpful. From Workgroup.py:
# some problems were reported with sending eg. danish
# characters this fixes that, if the site encoding is in
# 'iso-8859-1' or 'utf-8'. I have not tried other
# encodings, so I just let those pass unhindered and hope
# that nobody has any trouble :-s
My character coding is whatever the zope default is (I have not changed it). I'm assuming ANSI and am not sure how that relates to iso-8859-1. I am sure I am not using utf-8.
Hope that helps.
-- Harlow Pinson
hpinson@indepthl.com
re: mail formatting
Posted byAnonymous Userat
2004-09-23 12:36 AM
My very niave solution:
in Workgroups.py find the code:
if site_encoding.lower() in ['iso-8859-1', 'utf-8']:
body = unicode(body, site_encoding).encode('iso-8859-1')
Add this line:
body = body.replace("\n","<br>")
Seems to resolve the problem, but what if html view is turned off in your mailer? Weird.
I know it has issues with the group mail feature and character encodings.
Message Body Paragraph 1
Message Body Paragraph 2
Signature
which was received as email rearranged by MXMWorkgroups as follows.
Message Body Paragraph 1
Recipient List
Message Body Paragraph 2 (no paragraph break) Signature
All paragraphs run together (the email does not seem to recognize line breaks).
-- harlow pinson
hpinson@indepthl.com
# some problems were reported with sending eg. danish
# characters this fixes that, if the site encoding is in
# 'iso-8859-1' or 'utf-8'. I have not tried other
# encodings, so I just let those pass unhindered and hope
# that nobody has any trouble :-s
My character coding is whatever the zope default is (I have not changed it). I'm assuming ANSI and am not sure how that relates to iso-8859-1. I am sure I am not using utf-8.
Hope that helps.
-- Harlow Pinson
hpinson@indepthl.com
in Workgroups.py find the code:
if site_encoding.lower() in ['iso-8859-1', 'utf-8']:
body = unicode(body, site_encoding).encode('iso-8859-1')
Add this line:
body = body.replace("\n","<br>")
Seems to resolve the problem, but what if html view is turned off in your mailer? Weird.