DOKK / manpages / debian 12 / sympa / Sympa::Spool::Moderation.3sympa.en
Sympa::Spool::Moderation(3Sympa) sympa 6.2.70 Sympa::Spool::Moderation(3Sympa)

Sympa::Spool::Moderation - Spool for held messages waiting for moderation

  use Sympa::Spool::Moderation;
  my $spool = Sympa::Spool::Moderation->new;
  my $modkey = $spool->store($message);
  my $spool =
      Sympa::Spool::Moderation->new(context => $list, authkey => $modkey);
  my ($message, $handle) = $spool->next;
  $spool->remove($handle, action => 'distribute');
  $spool->remove($handle);

Sympa::Spool::Moderation implements the spool for held messages waiting for moderation.

See also "Public methods" in Sympa::Spool.

If the pairs describing metadatas are specified, contents returned by next() are filtered by them.
Does nothing.
If action is specified, rename message file to add it as extension, instead of removing message file. Otherwise, removes message file.
Returns number of messages in the spool except which have extension.
If storing succeeded, returns moderation key.

Instance method. TBD.

Parameters:

$metadata
Hashref or message containing metadata. At least "context" and "authkey" are required.

Returns:

None.

Instance method. Caches HTML view of message.

Parameters:

$message
Message to be stored.
$modkey
Moderation key.

Returns:

None.

See also "Marshaling and unmarshaling metadata" in Sympa::Spool.

This class particularly gives following metadata:

{authkey}
Moderation key generated automatically when the message is stored into spool.
{validated}
Keeps a string representing extension, if message has been renamed using remove() with option.

Following site configuration parameters in sympa.conf will be referred.

Directory path of moderation spool.
Root directory path of directories where HTML view of messages are cached.

sympa_msg(8), wwsympa(8), Sympa::Message, Sympa::Spool.

Sympa::Spool::Moderation appeared on Sympa 6.2.8.

2023-01-26 6.2.70