NAME
    Mail::Delivery::Base - delivery system base class

SYNOPSIS
DESCRIPTION
METHODS
  new()
    constructor.

SOCKET HANDLING
  set_socket($socket)
  get_socket()
  is_socket_connected($socket)
    $socket has peer or not by "getpeername()".

       XXX sub $socket->connected { getpeername($self);}
       XXX IO::Socket of old perl have no such method.

  open()
    dummy.

  close()
    close BSD socket

LOG FUNCTION
  log($buf)
    log interface (info level).

  logerror($buf)
    log interface (error level).

  get_log_function()
    get log function (defined for compatibility).

  set_log_function($fp)
    set log function (defined for compatibility).

  get_log_info_function()
    get log function.

  set_log_info_function($fp)
    set log function.

  get_log_error_function()
    get log function.

  set_log_error_function($fp)
    set log function.

  get_log_debug_function()
    get log function.

  set_log_debug_function($fp)
    set log function.

  set_address_validate_function($fp)
    set address validate function.

  get_address_validate_function()
    get address validate function.

SMTP TRANSACTION LOG
  smtplog($buf)
    smtp transaction log.

  get_smtp_log_function()
    get smtp log function.

  set_smtp_log_function($fp)
    set smtp log function.

  get_smtp_log_handle()
    get smtp log handle.

  set_smtp_log_handle($fp)
    set smtp log handle.

ERROR MESSAGE HANDLING
  set_error($msg)
    set the error message.

  get_error()
    get the error message.

  clear_error().
    clear the error message.

COMPATIBLE ERROR MESSAGE HANDLING
  error()
    same as get_error().

  errstr()
    same as get_error().

SMTP TRANSACTION
  set_status_code($value)
    save "($value)" as status code.

  get_status_code()
    get the latest status code.

METHODS TO HANDLE POSITION at IO MAP
  set_target_map($map)
    save the current "map" name where "map" is a name usable at
    "recipient_maps"

  get_target_map()
    return the current "map" where "map" is a name usable at
    "recipient_maps"

  set_map_status($map, $status)
    save $status for $map IO. For example, $status is 'not done'.

  get_map_status($map)
    get the current $status for $map IO.

  set_mta_status($mta, $status)
    save $status for $mta.

  get_mta_status($mta)
    get the current $status for $mta.

  set_map_position($map, $position)
    save the $position for $map IO.

  get_map_position($map)
    get the current $position for $map IO.

  rollback_map_position()
    stop the IO for the current $map. This method rolls back the operation
    state to the time when the current IO for $map begins.

  clear_mapinfo()
    clear information around the latest map operation.

CODING STYLE
    See "http://www.fml.org/software/FNF/" on fml coding style guide.

AUTHOR
    Ken'ichi Fukamachi

COPYRIGHT
    Copyright (C) 2006 Ken'ichi Fukamachi

    All rights reserved. This program is free software; you can redistribute
    it and/or modify it under the same terms as Perl itself.

HISTORY
    Mail::Delivery::Base appeared in fml8 mailing list driver package. See
    "http://www.fml.org/" for more details.

