import javax.mail.search.*; static L listMailsFrom(Folder f, S sender) ctex { f.open(f.READ_ONLY); SearchTerm term = new FromTerm(new InternetAddress(sender)); ret asList(f.search(term)); }