使用swift邮件程序(php)向gforge电子邮件网关发送邮件,在行尾添加等号(=)

时间:2011-03-21 06:34:21

标签: php smtp swiftmailer quoted-printable gforge

现在,gForge还有另外一个问题。

我的内联网中有一个表单可以在我们的gforge系统中创建新的跟踪器。我们使用Kohana和Swift Mailer发送smtp电子邮件。

这就是我得到的(我将邮件作为密件发送给自己):

Received: from 192.168.150.250 (192.168.150.250) by local
 (192.168.50.10) with Microsoft SMTP Server id 15.1.280.1; Wed, 16 Mar 2011
 08:51:40 +0100
Message-ID: <1300261898.4d80d7e6@192.168.150.250>
Date: Wed, 16 Mar 2011 08:51:38 +0100
Subject: Test_Issue Jieha (tracker-17)
From: <test@website.de>
To: <gforge-gateway@gforge.local>
BCC: <test@website.de>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Return-Path: test@website.de
X-MS-Exchange-Organization-AuthSource: local
X-MS-Exchange-Organization-AuthAs: Anonymous
MIME-Version: 1.0

priority:4
assignees: wollmannc
stardate: 03/16/2011
end date: 03/17/2011
Von user:
Name: Christian
email: meine@email.de

Bemerkung:
mein bemerkungstext
testinput: mein input

所以一切看起来都很好。但是Gforge告诉我:

Received: from local (192.168.200.19) by
 local (192.168.50.10) with Microsoft SMTP Server id
 15.1.280.1; Wed, 16 Mar 2011 08:51:42 +0100
Received: from gforge.local (centos5 [127.0.0.1])    by
 gforge.local (Postfix) with ESMTP id 5DBDED48174    for
 <test@website.de>; Wed, 16 Mar 2011 08:51:42 +0100 (CET)
Received: (from nobody@localhost)    by gforge.local
 (8.13.8/8.13.8/Submit) id p2G7pgvZ004723;    Wed, 16 Mar 2011 08:51:42 +0100
Date: Wed, 16 Mar 2011 08:51:42 +0100
From: <noreply@gforge.local>
Message-ID: <201103160751.p2GgvZ004723@gforge.local>
X-Authentication-Warning: gforge.local: nobody set sender to "GForge" <noreply@gforge.local> using -f
To: <test@website.de>
Reply-To: GForge <noreply@gforge.local>
Subject: =?utf-8?B?RmVobyIGJlaWgQmVhcmJlaXRlbiBkZXIgRW1haWw=?=
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Return-Path: noreply@gforge.local
X-MS-Exchange-Organization-AuthSource: local
X-MS-Exchange-Organization-AuthAs: Anonymous
MIME-Version: 1.0

Ihre Email konnte nicht verarbeitet werden.
Die Anwendung sagte:

* Start Datum ist Erforderlich
* Schlieungs Datum ist Erforderlich
* Close Date must be > Open Date


Ihre Nachricht war:

priority:4
assignees: wollmannc
stardate: 03/16/2011
end d=
ate: 03/17/2011
Von user:
Name: Christian
email: meine@em=
ail.de

Bemerkung:
mein bemerkungstext
testinput: mei=
n input

它告诉“无法处理电子邮件。应用程序说:需要开始日期,需要关闭日期”。

请注意某些行末尾的等号。我认为这是“引用可打印”的最大行长度,还是smtp也限制了行?但为什么我通过BCC获得正确的邮件?那应该和gforge得到的邮件一样,对吧?! Gforge是否对传入的邮件做了些什么?

我很困惑:-(我希望你能帮忙。

2 个答案:

答案 0 :(得分:0)

看起来你可能会点击this bug in GForge来阻止发送quoted-printable的邮件被正确解析。

你最好的选择是告诉Swift不使用quoted-printable,但我不知道该怎么做。 (我实际上想在自己使用Swift时这样做...)

答案 1 :(得分:0)

GForge家伙。 FWIW,从GForge 6.3开始,您可以创建自定义电子邮件地址,以便直接向特定项目和跟踪器提交新的跟踪器项目。不再向主题行添加特殊信息。

我们还对电子邮件的后端处理进行了改进,使其与各种电子邮件客户端和交换机的怪癖更加兼容。