You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Rui Alberto L. Gonçalves" <ru...@ptinovacao.pt> on 2003/12/12 16:31:21 UTC

SendMailTransformer BUG?

Hi all,
I'm having problems using SendMailTransfomer if the input
document to the transformer has more then one sendmail element.
Ex:
...
<email:sendmail>
...
</email:sendmail>

<email:sendmail>
...
</email:sendmail>
...
the first email is sent correctly, the second email
is sent  2x with the attached duplicated also!

If a third sendmail element is added to the input document the
third email is sent 3x with 3 attached files!!

Bug or am i missing something??! Thanks for any help!

Rui






-- 
Rui Alberto L. Gonçalves <ru...@ptinovacao.pt>
PT Inovação


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: SendMailTransformer BUG?

Posted by Jorg Heymans <jh...@domek.be>.
just logon to nagoya.apache.org/bugzilla , get an account and write a 
message with [PATCH] in the summary.

Rui Alberto L. Gonçalves wrote:

> It was a bug. It's fixed now...
> 
> patch
> =====
> 333c333,335
> <            // No need to do anything here
> ---
> 
>>          //Clean from possible previous usage
>>          this.toAddresses.clear();
>>          this.attachments.clear();
> 
> 
> could someone add this changes or explain how to do that??
> Thanks!!
> Rui
> 
> 
> On Fri, 2003-12-12 at 15:31, Rui Alberto L. Gonçalves wrote:
> 
>>Hi all,
>>I'm having problems using SendMailTransfomer if the input
>>document to the transformer has more then one sendmail element.
>>Ex:
>>...
>><email:sendmail>
>>...
>></email:sendmail>
>>
>><email:sendmail>
>>...
>></email:sendmail>
>>...
>>the first email is sent correctly, the second email
>>is sent  2x with the attached duplicated also!
>>
>>If a third sendmail element is added to the input document the
>>third email is sent 3x with 3 attached files!!
>>
>>Bug or am i missing something??! Thanks for any help!
>>
>>Rui
>>
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: SendMailTransformer BUG?

Posted by "Rui Alberto L. Gonçalves" <ru...@ptinovacao.pt>.
It was a bug. It's fixed now...

patch
=====
333c333,335
<            // No need to do anything here
---
>           //Clean from possible previous usage
>           this.toAddresses.clear();
>           this.attachments.clear();

could someone add this changes or explain how to do that??
Thanks!!
Rui


On Fri, 2003-12-12 at 15:31, Rui Alberto L. Gonçalves wrote:
> Hi all,
> I'm having problems using SendMailTransfomer if the input
> document to the transformer has more then one sendmail element.
> Ex:
> ...
> <email:sendmail>
> ...
> </email:sendmail>
> 
> <email:sendmail>
> ...
> </email:sendmail>
> ...
> the first email is sent correctly, the second email
> is sent  2x with the attached duplicated also!
> 
> If a third sendmail element is added to the input document the
> third email is sent 3x with 3 attached files!!
> 
> Bug or am i missing something??! Thanks for any help!
> 
> Rui
> 
> 
> 
-- 
Rui Alberto L. Gonçalves <ru...@ptinovacao.pt>
PT Inovação


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org