Package org.apache.james.mailbox.store

Examples of org.apache.james.mailbox.store.SimpleHeader


    @Before
    public void setUp() throws Exception {
        index = new LuceneMessageSearchIndex<Long>(new RAMDirectory());
        List<org.apache.james.mailbox.store.SimpleHeader> headersSubject = new ArrayList<org.apache.james.mailbox.store.SimpleHeader>();
        headersSubject.add(new SimpleHeader("Subject", 1, "test"));
      
        List<org.apache.james.mailbox.store.SimpleHeader> headersTest = new ArrayList<org.apache.james.mailbox.store.SimpleHeader>();
        headersSubject.add(new SimpleHeader("Test", 1, "test"));
       
        List<org.apache.james.mailbox.store.SimpleHeader> headersTestSubject = new ArrayList<org.apache.james.mailbox.store.SimpleHeader>();
        headersTestSubject.add(new SimpleHeader("Test", 1, "test"));
        headersTestSubject.add(new SimpleHeader("Subject", 2, "test2"));

        SimpleMailboxMembership m = new SimpleMailboxMembership(mailbox.getMailboxId(),1, new Date(), 200, new Flags(Flag.ANSWERED), "My Body".getBytes(), headersSubject);
        index.add(null, mailbox, m);
       
        SimpleMailboxMembership m2 = new SimpleMailboxMembership(mailbox2.getMailboxId(),1, new Date(), 20, new Flags(Flag.ANSWERED), "My Body".getBytes(), headersSubject);
View Full Code Here

TOP

Related Classes of org.apache.james.mailbox.store.SimpleHeader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.