synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] Commented: (SYNAPSE-446) Multipart/mixed mail message not forwarded to proxy
Date Mon, 15 Sep 2008 17:43:44 GMT


Andreas Veithen commented on SYNAPSE-446:

I think the problem is totally unrelated to the content type of the message. The real explanation
can be seen from the following lines in the logs:

MailTransportSender Setting From header to from OutTransportInfo
MailTransportSender Setting To header to from transport headers
MailTransportSender Setting Subject header to 'WSO2ESB - The subject of the mail - without
an attachment !' from transport headers

To determine the recipient of the message, MailTransportSender gives precedence to the transport
headers and only if there are no transport headers it will check the OutTransportInfo (which
contains the address you specify as target of the proxy service). Why does the message context
contain transport headers? Because the message initially came in as a mail (BTW, that's why
you see a difference between mail and HTTP). Instead of sending the message to,
the transport sends the message to the original recipient, i.e.

Why does the sender give precedence to the transport headers to determine the recipient? I
don't know. Note that for the From and CC addresses, it's the other way round: the sender
firsts looks at OutTransportInfo. Maybe somebody else knows why this was implemented in this

As a workaround you can try to clear the transport headers before sending the message out.

> Multipart/mixed mail message not forwarded to proxy
> ---------------------------------------------------
>                 Key: SYNAPSE-446
>                 URL:
>             Project: Synapse
>          Issue Type: Bug
>            Reporter: Stefan Lecho
>         Attachments: log.txt

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message