Net::Plesk::Method::mail_remove - Perl extension for Plesk XML Remote API mail removal


Net-Plesk documentation Contained in the Net-Plesk distribution.

Index


Code Index:

NAME

Top

Net::Plesk::Method::mail_remove - Perl extension for Plesk XML Remote API mail removal

SYNOPSIS

Top

  use Net::Plesk::Method::mail_remove

  my $p =
    new Net::Plesk::Method::mail_remove ( $domainID, $mailbox );

  $request = $p->endcode;

DESCRIPTION

Top

This module implements an interface to construct a request for a mailbox removal using SWSOFT's Plesk.

METHODS

Top

init args ...

Initializes a Plesk mail_remove object. The domainID and mailbox options are required.

BUGS

Top

  Creepy crawlies.

SEE ALSO

Top

SWSOFT Plesk Remote API documentation (1.4.0.0 or later)

AUTHOR

Top

Jeff Finucane <jeff@cmh.net>

COPYRIGHT AND LICENSE

Top


Net-Plesk documentation Contained in the Net-Plesk distribution.
package Net::Plesk::Method::mail_remove;

use strict;

use vars qw( $VERSION @ISA $AUTOLOAD $DEBUG );

@ISA = qw( Net::Plesk::Method );
$VERSION = '0.01';

$DEBUG = 0;

sub init {
  my ($self, $domainid, $mailbox ) = @_;
  $$self = join ( "\n", (
	            '<mail>',
	            '<remove>',
	            '<filter>',
	            '<domain_id>',
	            $self->encode($domainid),
	            '</domain_id>',
	            '<name>',
	            $self->encode($mailbox),
	            '</name>',
	            '</filter>',
	            '</remove>',
	            '</mail>',
	          ));
}

1;