com.sendmail.jilter

Interface JilterEOMActions

public interface JilterEOMActions

Contains the actions available during eom processing.
Method Summary
voidaddheader(String headerf, String headerv)
Add a header to the current message.
voidaddrcpt(String rcpt)
Add a recipient for the current message.
voidchgheader(String headerf, int hdridx, String headerv)
Change or delete a message header.
voiddelrcpt(String rcpt)
Removes the named recipient from the current message's envelope.
voidfinish(JilterStatus status)
Set the resulting EOM status.
voidprogress()
Notify the MTA that an operation is still in progress.
voidreplacebody(ByteBuffer bodyp)
Replaces the body of the current message.

Method Detail

addheader

public void addheader(String headerf, String headerv)
Add a header to the current message.

Parameters: headerf the header name. headerv the header value.

addrcpt

public void addrcpt(String rcpt)
Add a recipient for the current message.

Parameters: rcpt the new recipient's address.

chgheader

public void chgheader(String headerf, int hdridx, String headerv)
Change or delete a message header.

Parameters: headerf the header name. hdridx header index value (1-based). A hdridx value of 1 will modify the first occurrence of a header named headerf. If hdridx is greater than the number of times headerf appears, a new copy of headerf will be added. headerv the new value of the given header. headerv == null indicates that the header should be deleted.

delrcpt

public void delrcpt(String rcpt)
Removes the named recipient from the current message's envelope.

Parameters: rcpt the recipient address to be removed.

finish

public void finish(JilterStatus status)
Set the resulting EOM status. Note: Calling the method essentially invalidates this object. The result of any subsequent calls to methods on this object is undefined.

Parameters: status the resulting status of EOM processing.

progress

public void progress()
Notify the MTA that an operation is still in progress.

replacebody

public void replacebody(ByteBuffer bodyp)
Replaces the body of the current message. If called more than once, subsequent calls result in data being appended to the new body.

Parameters: bodyp a buffer containing the new body data. Body data should be in CR/LF form.

Copyright B) 2001-2004, Sendmail, Inc. All Rights Reserved.