Search in sources :

Example 1 with ZSendMessageResponse

use of com.zimbra.client.ZMailbox.ZSendMessageResponse in project zm-mailbox by Zimbra.

the class TestSearchConv method setupConversation.

private static void setupConversation() throws Exception {
    ZOutgoingMessage msg;
    ZOutgoingMessage reply;
    msg = TestUtil.getOutgoingMessage(REMOTE_USER_NAME, subject, "far over the misty mountains cold", null);
    ZSendMessageResponse resp = mbox.sendMessage(msg, null, false);
    TestUtil.waitForMessage(remote_mbox, "in:inbox misty");
    String remoteMsgId = TestUtil.getMessage(remote_mbox, subject).getId();
    reply = TestUtil.getOutgoingMessage(USER_NAME, subject, "to dungeons deep and caverns old", null);
    reply.setOriginalMessageId(remoteMsgId);
    reply.setReplyType("r");
    remote_mbox.sendMessage(reply, null, false);
    TestUtil.waitForMessage(mbox, "in:inbox dungeons");
    reply = TestUtil.getOutgoingMessage(USER_NAME, subject, "we must away ere break of day", null);
    reply.setOriginalMessageId(remoteMsgId);
    reply.setReplyType("r");
    remote_mbox.sendMessage(reply, null, false);
    TestUtil.waitForMessage(mbox, "in:inbox must");
    reply = TestUtil.getOutgoingMessage(USER_NAME, subject, "to seek the pale enchanted gold", null);
    reply.setOriginalMessageId(remoteMsgId);
    reply.setReplyType("r");
    remote_mbox.sendMessage(reply, null, false);
    TestUtil.waitForMessage(mbox, "in:inbox enchanted");
    convId = mbox.getMessageById(resp.getId()).getConversationId();
}
Also used : ZOutgoingMessage(com.zimbra.client.ZMailbox.ZOutgoingMessage) ZSendMessageResponse(com.zimbra.client.ZMailbox.ZSendMessageResponse)

Aggregations

ZOutgoingMessage (com.zimbra.client.ZMailbox.ZOutgoingMessage)1 ZSendMessageResponse (com.zimbra.client.ZMailbox.ZSendMessageResponse)1