SYNOPSIS

    use Sendmail::Milter;

    Sendmail::Milter::auto_setconn(NAME);
    Sendmail::Milter::register(NAME, { CALLBACKS }, FLAGS);
    Sendmail::Milter::main();

DESCRIPTION

This is a compatibility interface which emulates the \*(L"standard\*(R" Sendmail::Milter \s-1API\s0.

FUNCTIONS

The following functions are available in this module. Unlike \*(C`Sendmail::PMilter\*(C', this interface involves a single, global instance of milter data, so these functions are called without an object reference.

For each function, see the description of its object-based counterpart in Sendmail::PMilter.

Sendmail::Milter::auto_getconn(NAME[, \s-1CONFIG\s0])
Sendmail::Milter::auto_setconn(NAME[, \s-1CONFIG\s0])
Sendmail::Milter::main([MAXCHILDREN[, \s-1MAXREQ\s0]])
Sendmail::Milter::register(\s-1NAME\s0, CALLBACKS[, \s-1FLAGS\s0])
Sendmail::Milter::setconn(\s-1DESC\s0)

One extension function is provided by this implementation.

Sendmail::Milter::get_milter()

Returns the \*(C`Sendmail::PMilter\*(C' instance underlying this emulation layer. This allows mostly-unmodified milter scripts to set PMilter extensions (such as dispatcher and sendmail.cf values). It is recommended, however, that new code use the object instance methods described in Sendmail::PMilter.

EXPORTS

In order to preserve compatibility with the standard \*(C`Sendmail::Milter\*(C' interface, all SMFI* constants described in Sendmail::PMilter are exported into the caller's namespace by default.

(Note that \*(C`Sendmail::PMilter\*(C' itself does not export these symbols by default.)