Skip to content

mxm, IT's mad science

Sections
Personal tools
You are here: Home » Products » Open Source » mxm Workgroups for Plone » Group Mail Feature has formatting problems
Downloads
You can download mxm products here.

Due to it's technical and international nature, this section is in english.

Max M Has a blog too.

og er glad for mad

 

Comment

Above in this comment thread: mxm Workgroups for Plone

Group Mail Feature has formatting problems

Posted by Anonymous User at 2004-09-22 05:34 PM
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 by Anonymous User at 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 by Anonymous User at 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.

Posted by maxm at 2004-09-23 11:01 AM
I am working on it.