NAME

App::MonM::Channel::File - MonM file channel

VERSION

Version 1.00

SYNOPSIS

<Channel MyFile>

    Type    File
    Enable  on

    # Real To Email address
    To      testuser@localhost

    # Schedule
    #At Sun-Sat[00:00-23:59]

    # MIME options
    #Encoding 8bit
    #    8bit, quoted-printable, 7bit, base64
    #ContentType text/plain
    #Charset utf-8

    # Output File Options
    #Dir      /path/to/my/messages
    #File     [DATETIME]-[ID].[EXT]

</Channel>

DESCRIPTION

This module provides a method that writes the content of the message to an external file

sendmsg

For internal use only!

CONFIGURATION DIRECTIVES

The basic Channel configuration options (directives) detailed describes in "CONFIGURATION DIRECTIVES" in App::MonM::Channel

Dir, Directory
Dir    /tmp

Defines path to save the message files

Default: your temp directory

File, Filemask
File    [DATETIME]-[ID].[EXT]

Defines special mask of the message's filename

Default: "[DATETIME]-[ID].[EXT]"

Available variables:

[ID] -- Internal ID of the message
[TO] -- The real "to" field of message
[RCPT], [RECIPIENT] -- Recipient (name, account, id, number and etc.)
[EXT] -- file extension (default: msg)
[TIME] -- Current time (in unix time format)
[DATETIME] -- date and time in short-format (YYYMMDDHHMMSS)
[DATE] -- Date in short-format (YYYMMDD)
From

Sender address (Email)

To

Recipient address (Email) or name

Type
Type    File

Required directive!

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

About common directives see "CONFIGURATION DIRECTIVES" in App::MonM::Channel

HISTORY

See Changes file

DEPENDENCIES

Compress::Raw::Zlib

TO DO

See TODO file

SEE ALSO

Compress::Raw::Zlib

AUTHOR

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

COPYRIGHT

Copyright (C) 1998-2022 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/