[ 
https://issues.apache.org/jira/browse/JAMES-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Taro App updated JAMES-2253:
----------------------------
    Attachment: AddFooter.patch

Attached is the patch to fix the issue by modifying AddFooter.java.
This approach may be the same way which is discussed in JAMES-1910 & JAMES-443,
but I wonder if this is the right approach.

Maybe it's better to make a modification to MimeMessageCopyOnWriteProxy.java.

I'm also concerned if other similar mailets which modify contents have the same 
issue with multipart mail, because the issue here is essentially that 
MimeBodyPart.setContent(String) is not effective unless you call 
MimePart.setContent(Multipart) on its ancestor.

> addFooter mailet doesn't work for multipart mail
> ------------------------------------------------
>
>                 Key: JAMES-2253
>                 URL: https://issues.apache.org/jira/browse/JAMES-2253
>             Project: James Server
>          Issue Type: Bug
>    Affects Versions: 3.0.0-beta5
>            Reporter: Taro App
>         Attachments: AddFooter.patch
>
>
> The addFooter mailet doesn't work for multipart mail, though It works for 
> text mail. (Tested with 3.0.1.)
> The addFooterTest ends successfully but the mailet doesn't work on the real 
> James server.
> The addFooterTest uses javax.mail.internet.MimeMessage, but the real mailet 
> uses org.apache.james.server.core.MimeMessageCopyOnWriteProxy which extends 
> MimeMessage.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to