#161 — Incomplete Email

State Resolved
Version: 1.1
Area Functionality
Issue type Bug
Severity Medium
Submitted by Bob Barter
Submitted on Dec 31, 2007
Responsible Maurits van Rees
Target release: 1.1
Email sent to Tracker Manager contains only one character: "C"

From bob.barter@sbcglobal.net Mon Dec 31 15:24:29 2007
X-UIDL: e/>!!d!B!!Hpd"!fWg"!
Return-Path: <bob.barter@sbcglobal.net>
Received: from banyantrees.org (banyantrees.org [])
    by banyantrees.org (8.13.1/8.13.1) with ESMTP id lBVLOT5l018679
    for <bob@banyantrees.org>; Mon, 31 Dec 2007 15:24:29 -0600
From: bob.barter@sbcglobal.net
Date: Mon, 31 Dec 2007 13:24:29 -0800
X-Mailer: Zope/SecureMailHost
Message-Id: <20071231212429.30152.57261.banyantrees.org@banyantrees.org>
Status: RO


Other messages, such as resetting password, come across just fine.

python 2.4.4, linux2, Zope 2.10.4-final, Plone-3.0.2, SecureMailHost 1.1, Poi 1.1
Added by Bob Barter on Dec 31, 2007 10:53 PM
Target release: 1.1None
Responsible manager: maurits(UNASSIGNED)
Sorry, forgot to add:
DataGridField 1.6-beta-2
AddRemoveWidget 1.0 beta 3 svn/unreleased

did not install intelligenttext since using Plone 3.0.2
No migration -- first time installation
did not iunstall ploneSoftwareCenter
Added by Bob Barter on Jan 01, 2008 12:04 AM
OK, on my system:

Poi/content/PoiTracker.py lines 471, 472:

        if fromName is not None:
            fromAddress = "%s <%s>" % (fromName, fromAddress)

causes a problem. I suspect that the fromName, fromAddress combination is not being formatted correctly.

I'm not very knowledgeable about mail systems, but I think there should, at least, be quotes around the name -- as in:
"plone.org Administrator" <admin@plone.org>

Added by Maurits van Rees on Jan 02, 2008 09:35 AM
Responsible manager: (UNASSIGNED)maurits
Hello Bob,

Quotes around the name of an email address are not needed, at least in most cases. When I set Maurits van Rees as name of the user that is tracker manager, I get emails just fine. It might be that in some cases it *is* needed, for example when there are accented characters in the name. Just a guess. I will look later today if I can fix it by adding quotes in a good spot. Are there "strange" characters in the name of the manager? Or maybe there is no name at all, just an email address?

I must say though: since the email *does* arrive, there may be a different problem. No idea what that would be then. So you if you have more ideas, let me know. But like I said, I will try some things later.
Added by Maurits van Rees on Jan 02, 2008 10:37 PM
Issue state: unconfirmedresolved
Target release: None1.1
Ah, I can reproduce this. At the point you quoted, where fromName is added to fromAddress, you can get unicode. So we need to encode it then. Same for the addressed where the email is sent to. Fixed in r56389 on trunk and in r56390 in branches/11. Can you check if that helps for you?

Note that when you have non-ascii characters in the name of an email address, you can get ugly (but working) email headers. At least when I add some accented characters to the email_from_name of the Plone Site, I get this in the From-header: "SitXX AdministratXXr...". Could be fixed the same way as we do for a subject by mime-encoding it. But that is very tricky, as it is not very well possible to properly limit the size of the From field to one line. So I skipped that.
Added by Bob Barter on Jan 03, 2008 04:16 AM
Hi Maurits,
It will be a couple of days until I can work on this, but wanted to let you know that I appreciate your help. To answer one of your questions: no I don't think there were any special characters in the name, but it sounds like you found the problem. I'll get back in a couple of days.

No responses can be added.