You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@apache.org> on 2005/07/29 10:33:51 UTC

Re: svn commit: r225800 - in /cocoon: blocks/mail/trunk/java/org/apache/cocoon/mail/transformation/SendMailTransformer.java trunk/status.xml

sylvain@apache.org wrote:

> +    <action dev="SW" type="fix" fixes-bug="35618" due-to="Philippe Gassmann" due-to-email="phil@anyware-tech.com">
> +      Mail block: Allow any of the Cocoon-provided protocols to be used for attachments in SendMailTransformer.
> +      This means that "cocoon:" URLs are no more rewritten as external http requests.
> +    </action>

I think now I remember why an external http request was used. It was not
possible to include non xml attachments, as the Cocoon protocol did not
use the serializer specified in the sitemap but always the xml serializer.
So, adding a Cocoon generated PDF as an attachment was not possible.
Using an external request of course worked.

I think, if this is now possible (looking at the source seems to say
yes, but I haven't tested), then we don't need the external http
requests anymore. In this case, sorry for the noise!

Carsten
-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Re: svn commit: r225800 - in /cocoon: blocks/mail/trunk/java/org/apache/cocoon/mail/transformation/SendMailTransformer.java trunk/status.xml

Posted by Sylvain Wallez <sy...@apache.org>.
Carsten Ziegeler wrote:

>sylvain@apache.org wrote:
>
>  
>
>>+    <action dev="SW" type="fix" fixes-bug="35618" due-to="Philippe Gassmann" due-to-email="phil@anyware-tech.com">
>>+      Mail block: Allow any of the Cocoon-provided protocols to be used for attachments in SendMailTransformer.
>>+      This means that "cocoon:" URLs are no more rewritten as external http requests.
>>+    </action>
>>    
>>
>
>I think now I remember why an external http request was used. It was not
>possible to include non xml attachments, as the Cocoon protocol did not
>use the serializer specified in the sitemap but always the xml serializer.
>So, adding a Cocoon generated PDF as an attachment was not possible.
>Using an external request of course worked.
>  
>

Ah ok, I see.

>I think, if this is now possible (looking at the source seems to say
>yes, but I haven't tested),
>

I use it a lot, so I can tell you it does work :-)

>then we don't need the external http
>requests anymore. In this case, sorry for the noise!
>  
>

No problem!

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com
Apache Software Foundation Member     Research & Technology Director