com.sendmail.jilter
Interface JilterEOMActions


public interface JilterEOMActions

Contains the actions available during eom processing.


Method Summary
 void addheader(String headerf, String headerv)
          Add a header to the current message.
 void addrcpt(String rcpt)
          Add a recipient for the current message.
 void chgheader(String headerf, int hdridx, String headerv)
          Change or delete a message header.
 void delrcpt(String rcpt)
          Removes the named recipient from the current message's envelope.
 void finish(JilterStatus status)
          Set the resulting EOM status.
 void progress()
          Notify the MTA that an operation is still in progress.
 void replacebody(ByteBuffer bodyp)
          Replaces the body of the current message.
 

Method Detail

addheader

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

Parameters:
headerf - the header name.
headerv - the header value.
Throws:
IOException

chgheader

void chgheader(String headerf,
               int hdridx,
               String headerv)
               throws IOException
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.
Throws:
IOException

addrcpt

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

Parameters:
rcpt - the new recipient's address.
Throws:
IOException

delrcpt

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

Parameters:
rcpt - the recipient address to be removed.
Throws:
IOException

replacebody

void replacebody(ByteBuffer bodyp)
                 throws IOException
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.
Throws:
IOException

progress

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

Throws:
IOException

finish

void finish(JilterStatus status)
            throws IOException
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.
Throws:
IOException


Copyright © 2004-2006 Sendmail, Inc.. All Rights Reserved.