NAME

App::MonM::Notifier::Channel::Command - monotifier command channel

VERSION

Version 1.01

SYNOPSIS

<Channel MyCommand>
    Type    Command

    # Real To and From
    To      testuser
    From    root

    # Options
    #Encoding base64

    <Headers>
        X-Foo foo
        X-Bar bar
    </Headers>

    Command "grep MIME > t.msg"

</Channel>

DESCRIPTION

This module provides command method that send the content of the message to an external program

DIRECTIVES

Command

Defines full path to external program

Default: none

From

Sender address or name

To

Recipient address or name

Type

Defines type of channel. MUST BE set to "Command" value

About other options (base) see "DIRECTIVES" in App::MonM::Notifier::Channel

METHODS

process

For internal use only!

EXAMPLE

Script example:

#!/usr/bin/perl -w
use strict;
use utf8;

my @in;
while(<>) {
  chomp;
  push @in, $_;
}

print join "\n", @in;

HISTORY

See Changes file

TO DO

See TODO file

SEE ALSO

App::MonM::Notifier, App::MonM::Notifier::Channel

AUTHOR

Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>

COPYRIGHT

Copyright (C) 1998-2019 D&D Corporation. All Rights Reserved

LICENSE

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

See LICENSE file and https://dev.perl.org/licenses/