You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Ulrich Heidfeld (JIRA)" <ji...@apache.org> on 2019/03/29 14:45:00 UTC

[jira] [Commented] (OFBIZ-10879) updateCommEventAfterEmail: Restore original sendTo/sendCc/sendBcc recipients from mail subject for general redirected mails

    [ https://issues.apache.org/jira/browse/OFBIZ-10879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16805045#comment-16805045 ] 

Ulrich Heidfeld commented on OFBIZ-10879:
-----------------------------------------

Hi, this patch cuts subject string in three parts (To, Cc, Bcc). Each part will be respectively put in string (To in toString, Cc in ccString, Bcc in bccString) to prevent an error. 

> updateCommEventAfterEmail: Restore original sendTo/sendCc/sendBcc recipients from mail subject for general redirected mails
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-10879
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10879
>             Project: OFBiz
>          Issue Type: Bug
>            Reporter: Ulrich Heidfeld
>            Assignee: Ulrich Heidfeld
>            Priority: Minor
>         Attachments: OFBIZ-10879.patch
>
>
> "updateCommEventAfterEmail" method in CommunicationEventServices.java could generate  wrong result. If general.properties value "mail.notifications.redirectTo" is used, it is possible that the subject string has more than 255 character. 
> Now:
> {code:java}
> Original subject [To: <sendTo>, Cc: <sendCc>, Bcc: <sendBcc>]
> {code}
> Solution:
> {code:java}
> Original subject [RedirectedTo: recipient@example.com]
> {code}
> In this way we have fixed this in one of our OFBiz forks. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)