public class ReceiverBuilder
extends java.lang.Object
Constructor and Description |
---|
ReceiverBuilder(ReceiveMailSession session) |
Modifier and Type | Method and Description |
---|---|
ReceiverBuilder |
envelopeOnly()
Receives only envelopes.
|
ReceiverBuilder |
filter(EmailFilter emailFilter)
Define applied filters.
|
ReceiverBuilder |
fromFolder(java.lang.String fromFolder)
Sets the working folder
|
ReceivedEmail[] |
get()
Receives the emails as specified by the builder.
|
ReceiverBuilder |
mark(javax.mail.Flags.Flag flagToSet)
Marks message with given flag.
|
ReceiverBuilder |
markDeleted()
Deletes messages upon receiving.
|
ReceiverBuilder |
markSeen()
Marks messages as seen after receiving them.
|
ReceiverBuilder |
moveToFolder(java.lang.String targetFolder)
Defines target folder where message will be moved.
|
ReceiverBuilder |
unmark(javax.mail.Flags.Flag flagToUnset)
Unmarks a message with given flag.
|
public ReceiverBuilder(ReceiveMailSession session)
public ReceiverBuilder filter(EmailFilter emailFilter)
public ReceiverBuilder markSeen()
public ReceiverBuilder mark(javax.mail.Flags.Flag flagToSet)
public ReceiverBuilder unmark(javax.mail.Flags.Flag flagToUnset)
public ReceiverBuilder markDeleted()
public ReceiverBuilder fromFolder(java.lang.String fromFolder)
public ReceiverBuilder moveToFolder(java.lang.String targetFolder)
public ReceiverBuilder envelopeOnly()
public ReceivedEmail[] get()
Copyright © 2003-present Jodd Team