[TYPO3-core] RFC #17314: Bug: Swift_RfcComplianceException: 'Address set in PathHeader does not comply with addr-spec of RFC 2822.'

Ernesto Baschny [cron IT] ernst at cron-it.de
Thu Jan 27 12:21:32 CET 2011


Hi,

This is a SVN patch request.

Type: Bugfix

BT reference: http://bugs.typo3.org/view.php?id=17314

Branches: trunk, TYPO3_4-5 (first one!)

Problem:
If $TYPO3_CONF_VARS['SYS']['forceReturnPath'] is set to "true" and you
use a Form-Mail, you get an exception (regardless of how you fill out
the form). This does not happen if you set
$TYPO3_CONF_VARS['SYS']['forceReturnPath']=0.

Solution:
Remove checking this option and setting a wrong Return-Path ("1"), as it
is already marked as *deprecated* since 4.5.0. SwiftMail does it
automatically depending on the transport.

How to test:
Set in your localconf.php:

  $TYPO3_CONF_VARS['SYS']['forceReturnPath']=1;

Send an email through a FORM element => Exception!

Attached patch solves it. It also removes a superfluous "X-Mailer",
which is already added in the mail engine, so it was being added twice.

Cheers,
Ernesto


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 17314.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110127/6c55f4e8/attachment.asc>


More information about the TYPO3-team-core mailing list