Modifier and Type | Method and Description |
---|---|
void |
addheader(String name,
String value)
Add a header to the current message, replacing if exists.
|
void |
addrcpt(String rcpt)
Add a recipient for the current message.
|
void |
chgheader(String name,
int index,
String value)
Change or delete a message header.
|
void |
delrcpt(String rcpt)
Removes the named recipient from the current message's envelope.
|
void |
finish(IMilterStatus status)
Set the resulting EOM status.
|
void |
insheader(String name,
String value)
Insert a header to the current message, without replacing.
|
void |
progress()
Notify the MTA that an operation is still in progress.
|
void |
replacebody(ByteBuffer bodyp)
Replaces the body of the current message.
|
void addheader(String name, String value) throws IOException
name
- The header name.value
- The header value.IOException
- if a connection error occurs.void chgheader(String name, int index, String value) throws IOException
name
- the header name.index
- header index value (1-based). A index value of 1 will modify the first occurrence of a header named
name
. If index
is greater than the number of times name
appears, a new copy of
name
will be added.value
- the new value of the given header. value == null
indicates that the header should be
deleted.IOException
- if a connection error occurs.void insheader(String name, String value) throws IOException
name
- The header name.value
- The header value.IOException
- if a connection error occurs.void addrcpt(String rcpt) throws IOException
rcpt
- the new recipient's address.IOException
- if a connection error occurs.void delrcpt(String rcpt) throws IOException
rcpt
- the recipient address to be removed.IOException
- if a connection error occurs.void replacebody(ByteBuffer bodyp) throws IOException
bodyp
- a buffer containing the new body data. Body data should be in CR/LF form.IOException
- if a connection error occurs.void progress() throws IOException
IOException
- if a connection error occurs.void finish(IMilterStatus status) throws IOException
status
- send the following status code (optional).IOException
- if a connection error occurs.Copyright © 2016. All rights reserved.