logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Sendmail::Milter - compatibility interface for Sendmail::PMilter

Description

       This is a compatibility interface which emulates the "standard" Sendmail::Milter API.

Exports

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

       (Note that "Sendmail::PMilter" itself does not export these symbols by default.)

perl v5.38.2                                       2024-03-17                              Sendmail::Milter(3pm)

Functions

       The following functions are available in this module.  Unlike "Sendmail::PMilter", 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[, CONFIG])
       Sendmail::Milter::auto_setconn(NAME[, CONFIG])
       Sendmail::Milter::main([MAXCHILDREN[, MAXREQ]])
       Sendmail::Milter::register(NAME, CALLBACKS[, FLAGS])
       Sendmail::Milter::setconn(DESC)

       One extension function is provided by this implementation.

       Sendmail::Milter::get_milter()
           Returns  the  "Sendmail::PMilter"  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.

Name

       Sendmail::Milter - compatibility interface for Sendmail::PMilter

Synopsis

           use Sendmail::Milter;

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

See Also