svn commit: r564680 - /activemq/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailMessage.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r564680 - /activemq/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailMessage.java

jstrachan-2
Author: jstrachan
Date: Fri Aug 10 09:58:08 2007
New Revision: 564680

URL: http://svn.apache.org/viewvc?view=rev&rev=564680
Log:
added a test case and bug fix for CAMEL-98

Modified:
    activemq/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailMessage.java

Modified: activemq/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailMessage.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailMessage.java?view=diff&rev=564680&r1=564679&r2=564680
==============================================================================
--- activemq/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailMessage.java (original)
+++ activemq/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailMessage.java Fri Aug 10 09:58:08 2007
@@ -126,4 +126,12 @@
             }
         }
     }
+
+    public void copyFrom(org.apache.camel.Message that) {
+        super.copyFrom(that);
+        if (that instanceof MailMessage) {
+            MailMessage mailMessage = (MailMessage) that;
+            this.mailMessage = mailMessage.mailMessage;
+        }
+    }
 }