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

ASF GitHub Bot commented on JAMES-2303:
---------------------------------------

Github user nstdio commented on a diff in the pull request:

    https://github.com/apache/james-project/pull/131#discussion_r205415290
  
    --- Diff: 
server/data/data-jdbc/src/main/java/org/apache/james/mailrepository/jdbc/JDBCMailRepository.java
 ---
    @@ -542,12 +544,18 @@ protected void internalStore(Mail mc) throws 
IOException, MessagingException {
                         insertMessage.setString(6, recipients.toString());
                         insertMessage.setString(7, mc.getRemoteHost());
                         insertMessage.setString(8, mc.getRemoteAddr());
    -                    insertMessage.setTimestamp(9, new 
java.sql.Timestamp(mc.getLastUpdated().getTime()));
    +                    if 
(mc.getPerRecipientSpecificHeaders().getHeadersByRecipient().isEmpty()) {
    --- End diff --
    
    As I recall, no it can't. Field is initialized in the ctor.


> JDBC Mail repository do not persist Per recipient headers
> ---------------------------------------------------------
>
>                 Key: JAMES-2303
>                 URL: https://issues.apache.org/jira/browse/JAMES-2303
>             Project: James Server
>          Issue Type: Bug
>          Components: JDBC, MailStore & MailRepository
>    Affects Versions: 3.0.0, master, 3.0.1
>            Reporter: Tellier Benoit
>            Priority: Major
>
> Per recipient headers are not persisted by JDBC Mail repository.
> See related tests



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to