Mercurial Hosting > nabble
view src/fschmidt/util/mail/nomail/Pop3ServerImpl.java @ 69:4bc1fc540265 default tip
update luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 05 Oct 2025 20:45:39 -0600 |
parents | 00520880ad02 |
children |
line wrap: on
line source
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) {} }