cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/mail/java/org/apache/cocoon/mail/transformation SendMailTransformer.java
Date Sat, 06 Mar 2004 05:09:57 GMT
joerg       2004/03/05 21:09:57

  Modified:    src/blocks/mail/java/org/apache/cocoon/mail/transformation
                        SendMailTransformer.java
  Log:
     <action dev="JH" type="fix" fixes-bug="25483" due-to="Rui Alberto L. Gonçalves" due-to-email="rui-l-goncalves@ptinovacao.pt">
       Avoid accumulating of addresses and attachements in SendMailTransformer,
       when sending multiple mails, i.e. multiple sendmail elements at once.
     </action>
  
  Revision  Changes    Path
  1.10      +4 -2      cocoon-2.1/src/blocks/mail/java/org/apache/cocoon/mail/transformation/SendMailTransformer.java
  
  Index: SendMailTransformer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/mail/java/org/apache/cocoon/mail/transformation/SendMailTransformer.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SendMailTransformer.java	5 Mar 2004 13:02:00 -0000	1.9
  +++ SendMailTransformer.java	6 Mar 2004 05:09:57 -0000	1.10
  @@ -295,7 +295,9 @@
           }
   
           if (name.equals(ELEMENT_SENDMAIL) == true) {
  -            // No need to do anything here
  +            // Clean from possible previous usage
  +            this.toAddresses.clear();
  +            this.attachments.clear();
           } else if (name.equals(ELEMENT_SMTPHOST) == true) {
               this.startTextRecording();
               this.mode = MODE_SMTPHOST;
  
  
  

Mime
View raw message