You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Benoit Tellier (Jira)" <se...@james.apache.org> on 2021/04/23 01:49:00 UTC

[jira] [Commented] (JAMES-3569) RecipientRewriteTable sometimes drops attributes from emails

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

Benoit Tellier commented on JAMES-3569:
---------------------------------------

Hi Jean,

Thanks for spotting the issue.

I remember this piece of code, but I really wonder why this mail copy is needed in the first place. Given RRTs being one of the first steps of the RRT processor, follow up matchers/mailets would be able to do the split themselves. Which we know is not buggy and would prevent us from writting "yet another" copy this email piece of code.

Furthermore not re-submitting the part of the email to the queue would result in performance gains (less IOs with the queue involved).

As such I wonder if the fix could not be "just do not care and just do a simple recipient rewritte without copy". Thoughts about it?

> RecipientRewriteTable sometimes drops attributes from emails
> ------------------------------------------------------------
>
>                 Key: JAMES-3569
>                 URL: https://issues.apache.org/jira/browse/JAMES-3569
>             Project: James Server
>          Issue Type: Bug
>          Components: SMTPServer
>    Affects Versions: 3.6.0
>            Reporter: Jean Helou
>            Priority: Major
>
> When a mail has a recipient with a mapping to a remote email address, RecipientRewriteTable creates a new mail and copies over a few fields.
> Unfortunately it doesn't copy all the fields and in particular it drops the mail attributes that have been computed by the pipeline up to this point.  For recipients which are rewritten to a local address there is no information loss.  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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