NAME

App::FonBot::Plugin::Email - FonBot plugin for receiving commands and sending messages through emails

SYNOPSIS

use App::FonBot::Plugin::Email;
App::FonBot::Plugin::Email->init;
...
App::FonBot::Plugin::Email->fini;

DESCRIPTION

This FonBot plugin provides email receiving/sending features to fonbotd. Emails are read from Maildir/ and are sent through sendmail.

CONFIGURATION VARIABLES

These are the App::FonBot::Plugin::Config configuration variables used in this module

$batch_delay_seconds

When receiving an email send request, App::FonBot::Plugin::Email waits this many seconds for further email send requests to the same email address. The timer is reset for each email send request. When the timer expires, all pending send requests are batched and sent as one email.

$email_from

From: header of all emails sent by this plugin.

$email_subject

Subject: header of all emails sent by this plugin.

AUTHOR

Marius Gavrilescu marius@ieval.ro

COPYRIGHT AND LICENSE

Copyright 2013 Marius Gavrilescu

This file is part of fonbotd.

fonbotd is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

fonbotd is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with fonbotd. If not, see <http://www.gnu.org/licenses/>