Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

sendmail::milter::DataAccess Class Reference

#include <Milter.hh>

Inheritance diagram for sendmail::milter::DataAccess:

Inheritance graph
[legend]
Collaboration diagram for sendmail::milter::DataAccess:

Collaboration graph
[legend]
List of all members.

Public Methods

 DataAccess ()
 DataAccess (SMFICTX *context)
virtual ~DataAccess ()
virtual const char * getMacroValue (const char *macroName)
virtual void setReplyCode (const char *rCode, const char *xCode=NULL, const char *message=NULL)

Detailed Description

This class contains all methods available to Callbacks for accessing Sendmail data.


Constructor & Destructor Documentation

sendmail::milter::DataAccess::DataAccess  
 

sendmail::milter::DataAccess::DataAccess SMFICTX   context
 

sendmail::milter::DataAccess::~DataAccess   [virtual]
 


Member Function Documentation

const char * sendmail::milter::DataAccess::getMacroValue const char *    macroName [virtual]
 

Returns the value of a macro or NULL if the macro is not defined or accessible.

Parameters:
macroName  the macro name, e.g. "{mail_host}".

void sendmail::milter::DataAccess::setReplyCode const char *    rCode,
const char *    xCode = NULL,
const char *    message = NULL
[virtual]
 

Sets the SMTP error reply code for this connection.

Parameters:
rCode  The three-digit (RFC 821) SMTP reply code, as a null-terminated string. rcode cannot be NULL, and must be a valid reply code.
xCode  The extended (RFC 2034) reply code. If xcode is NULL, no extended code is used. Otherwise, xcode must conform to RFC 2034. Default is NULL.
message  The text part of the SMTP reply. If message is NULL, an empty message is used. Default is NULL.


The documentation for this class was generated from the following files:
Generated on Wed Jun 19 21:21:44 2002 for libmilter++ by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002