Sympa documentation licensed under GPL
Sympa::Alarm - Spool on memory for listmaster notification
use Sympa::Alarm;
my $alarm = Sympa::Alarm->instance;
$alarm->store($message, $rcpt, $operation);
$alarm->flush();
$alarm->flush(purge => 1);
Sympa::Alarm implements on-memory spool for listmaster notification.
instance ( )
Constructor. Creates a singleton instance of Sympa::Alarm object.
Returns:
A new Sympa::Alarm instance, or undef for failure.
store ( $message, $rcpt, operation => $operation )
Instance method. Stores a message of a operation to spool.
Parameters:
$message
Sympa::Message object to be stored.
$rcpt
Arrayref or scalar. Recipient of notification.
operation => $operation
A string specifies tag of the message.
Returns:
True value if succeed, otherwise undef
.
flush ( [ purge => $purge ] )
Instance method. Sends compiled messages in spool.
If true value is given as optional argument, all messages in spool will be sent.
The instance of Sympa::Alarm has following attribute.
{use_bulk}
If set to be true, messages to be sent will be stored into spool instead of being stored to sendmail.
Default is false.
Feature to compile notification to listmaster in group appeared on Sympa 6.2.
Sympa::Alarm appeared on Sympa 6.2.
The content of this page is automatically generated from the source distribution of Sympa. For details about this document see original source file.
Theme originally designed by orderedlist