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 "Norman Maurer (JIRA)" <se...@james.apache.org> on 2011/02/17 12:43:24 UTC

[jira] Updated: (JAMES-1199) appendMessages(Message[]) does skip the first header

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

Norman Maurer updated JAMES-1199:
---------------------------------

    Summary: appendMessages(Message[]) does skip the first header  (was: appendMessages(Message[]) does not save the from address)

Better reflect the real problem

> appendMessages(Message[]) does skip the first header
> ----------------------------------------------------
>
>                 Key: JAMES-1199
>                 URL: https://issues.apache.org/jira/browse/JAMES-1199
>             Project: JAMES Server
>          Issue Type: Bug
>            Reporter: Jeff Huff
>            Assignee: Norman Maurer
>
> Creating a new empty message in a Drafts folder stopped saving the from address when calling appendMessages(Message[]).
>             InternetAddress addr = new InternetAddress ("jhuff@localhost", "Jeff Huff");
>             Message message = new MimeMessage(session);
>             message.setFrom (addr);
>             message.setFlag (Flags.Flag.DRAFT, true);
>             message.setText ("");
>             message.saveChanges ();
>             messageUID = drafts.getUIDNext ();
>             drafts.appendMessages (new Message[] { message });
>             System.out.println("MessageUID=" + messageUID);
> Yet if you add a call to setSentDate(new Date()); on a MimeMessage right after setFrom, it will set the From address.  I have tried calling other methods to get it to refresh the headers, but nothing else seems to cause the from address to stick when added to the folder.
> This was working in M2.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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