public interface MailMatcher
| 限定符和类型 | 方法和说明 |
|---|---|
default boolean |
matchAttachmentFileName(String fileName)
匹配附件文件名。
|
default boolean |
matchBodyContent(String content)
匹配邮件内容。
|
default boolean |
matchFrom(String from)
匹配发件人。
|
default boolean |
matchSentDate(org.joda.time.DateTime sentDateTime)
匹配发送时间。
|
default boolean |
matchSubject(String subject)
匹配邮件主题。
|
default int |
messageEnd()
指定消息结束索引(included)(1-based)。
|
default int |
messageStart()
指定消息开始索引(1-based)。
|
default boolean matchSubject(String subject)
subject - 邮件主题。default boolean matchFrom(String from)
from - 发件人邮箱。default boolean matchSentDate(org.joda.time.DateTime sentDateTime)
sentDateTime - 发送时间default boolean matchBodyContent(String content)
content - 邮件内容。default boolean matchAttachmentFileName(String fileName)
fileName - 附件文件名default int messageStart()
default int messageEnd()
Copyright © 2018. All rights reserved.