Mercurial Hosting > nabble
diff src/fschmidt/util/mail/nomail/Pop3ServerImpl.java @ 68:00520880ad02
add fschmidt source
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 05 Oct 2025 17:24:15 -0600 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/fschmidt/util/mail/nomail/Pop3ServerImpl.java Sun Oct 05 17:24:15 2025 -0600 @@ -0,0 +1,30 @@ +package fschmidt.util.mail.nomail; + +import java.util.NoSuchElementException; +import fschmidt.util.mail.Mail; +import fschmidt.util.mail.Pop3Server; +import fschmidt.util.mail.MailIterator; + + +final class Pop3ServerImpl implements Pop3Server { + + public MailIterator getMail() { + return new MailIterator(){ + public boolean hasNext() { + return false; + } + public Mail next() throws NoSuchElementException { + throw new NoSuchElementException(); + } + public void close() {} + }; + } + + public void setLeaveOnServer(boolean b) {} + public void setMailLimit(int maxMailCount) {} + public String getUsername() { + throw new UnsupportedOperationException(); + } + public void useSsl() {} + public void setDebug(boolean b) {} +}