// User #1
/////////////
user1.addToInbox("Leave it be", "Even though you love your inbox clean").from(senderEmail);
user1.addFolderToInbox("child of Inbox")
.add("To the child of inbox", "here is the body of the email in the child of Inbox");
RequiredFolder inboxJr = user1.addFolderToInbox("Inbox Jr");
inboxJr.add("books", "Inbox Jr is getting lonely over here");
inboxJr.add("For Inbox Jr", "some sort of body here");
user1.addDraft(senderEmail, "A draft", "with something I'll never tell you");
user1.addSentItem(senderEmail, "A message to semone else", "you can tell, because of the to field");
user1.addSentItem(ignoredEmail, "To whom", "is this email going").bcc(senderEmail);
user1.addToDeletedItems("Whoops", "This is going in the trash");
user1.addFolder(DistinguishedFolderIdNameType.DELETEDITEMS, "Deleted folder")
.add("Uh oh", "this is going in the recycling bin, which we're throwing out");
RequiredFolder topper = user1.addFolderToRoot("Topper");
topper.add("Hey hey Bobby McGee", "Makes me think of that Janis Joplin song").to(ignoredEmail).cc(email1);
RequiredFolder middler = topper.addFolder("Middler");
middler.add("Move it", "Away this should go into middler, placed neatly there for all to see");
middler.add("Another middler email", "that has a super boring body");
middler.add("Yet another in the middler folder", "oh so many emails");
RequiredFolder middlerJr = middler.addFolder("Middler Jr");
middlerJr.add("organize away to MJ", "this will be moved to middler Jr");
RequiredFolder middlerIII = middlerJr.addFolder("Middler II").addFolder("Middler III");
middlerIII.add("Forward this on to Middler III", "where it shall be left");
RequiredFolder msChild = middlerIII.addFolder("Middler IV").addFolder("Ms child");
msChild.add("Ms child", "is way nicer than MJ");
msChild.add("Super nesting", "The child of Ms child is so deep");
RequiredFolder syncFolderItems = user1.addFolderToRoot("Page SyncFolderItems");
// Page SyncFolderItems (29)
for (int i = 0; i < 29; i++)
{
syncFolderItems.add("Page SyncFolderItems" + (i + 1), "Page SyncFolderItems #" + (i + 1));
}
RequiredFolder getItems = user1.addFolderToRoot("Page GetItems");
// Page GetItems (11)
for (int i = 0; i < 11; i++)
{
getItems.add("Page GetItems" + (i + 1), "Page GetItems #" + (i + 1));
}
/////////////
// User #2
/////////////
user2.addToInbox("Dear Alex", "Leave this bad boy in your inbox");
user2.addFolderToInbox("Rebecca")
.add("About Rebecca", "She did something");
user2.addFolderToRoot("Eduardo")
.add("Concerning Eduardo", "Something happened to him");
/////////////
// User #3
/////////////
user3.addToInbox("Dear Mary", "Don't rearrange this email");
user3.addFolderToInbox("Anthony")
.add("About Anthony", "He did something");
user3.addFolderToRoot("Barbara")
.add("Concerning Barbara", "Something happened to her");
runForEmails(emailTable1);
user1.nextRun();
user2.nextRun();
user3.nextRun();
user1.addToInbox("An email after the first one", "A new email");
middlerJr.add("A new email in the middler Jr", "The body for this new email");
RequiredFolder newFolder = middlerJr.addFolder("New folder");
newFolder.add("this new email is in a new folder", "and it has a new body");
user2.addToInbox("A new email for User #2", "Hey user #2, what's up");
runForEmails(emailTable2);