String sender = senders[senderIdx++];
if (senderIdx == senders.length) {
senderIdx = 0;
}
String email = emails[emailIdx++];
if (emailIdx == emails.length) {
emailIdx = 0;
}
String subject = subjects[subjectIdx++];
if (subjectIdx == subjects.length) {
subjectIdx = 0;
}
String body = "";
for (int i = 0; i < FRAGMENTS_PER_EMAIL; ++i) {
body += fragments[fragmentIdx++];
if (fragmentIdx == fragments.length) {
fragmentIdx = 0;
}
}
return new MailItem(sender, email, subject, body);