logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Sympa::Spool::Auth - Spool for held requests waiting for moderation

Configuration Parameters

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

       queuesubscribe
           Directory path of held request spool.

           Note: Named such by historical reason.

Description

       Sympa::Spool::Auth implements the spool for held requests waiting for moderation.

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

       new ( [ context => $that ], [ action => $action ], [ keyauth => $id ], [ email => $email ])
           Context may be either instance of Sympa::List or Sympa::Family, or robot.

       next ( [ no_lock => 1 ] )
           If the pairs describing metadatas are specified, contents returned by next() are filtered by them.

           Order of items returned by next() is controlled by time of submission.

       quarantine ( )
           Does nothing.

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

       This class particularly gives following metadata:

       {action}
           Action requested.  'add' etc.

       {date}
           Unix time when the request was submitted.

       {email}
           E-mail of user who submitted the request, or target e-mail of the request.

       {keyauth}
           Authentication key generated automatically when the request is stored to spool.

History

       Sympa::Spool::Request appeared on Sympa 6.2.10.  It was renamed to Sympa::Spool::Auth on Sympa 6.2.13.

6.2.76                                             2025-02-12                         Sympa::Spool::Auth(3Sympa)

Name

       Sympa::Spool::Auth - Spool for held requests waiting for moderation

See Also

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

Synopsis

         use Sympa::Spool::Auth;

         my $spool = Sympa::Spool::Auth->new;
         my $request = Sympa::Request->new(...);
         $spool->store($request);

         my $spool = Sympa::Spool::Auth->new(
             context => $list, action => 'add');
         my $size = $spool->size;

         my $spool = Sympa::Spool::Auth->new(
             context => $list, keyauth => $id, action => 'add');
         my ($request, $handle) = $spool->next;

         $spool->remove($handle);

return

See Also