Scroll to navigation

Sympa::List(3Sympa) sympa 6.2.58 Sympa::List(3Sympa)

NAME

Sympa::List - Mailing list

DESCRIPTION

Sympa::List represents the mailing list on Sympa.

Methods

Constructor. Creates a new object which will be used for a list and eventually loads the list if a name is given. Returns a List object.

Parameters

FIXME @todo doc

Adds a new admin user to the list. May overwrite existing entries.
FIXME @todo doc
Adds a new user to the list. May overwrite existing entries.
Instance method. FIXME @todo doc

Note: Since Sympa 6.1.18, this returns an array under array context.

Delete the indicated admin user with the predefined role from the list. ROLE may be 'owner' or 'editor'.
Delete the indicated users from the list.
Deletes a member's picture file.
Dump user information in user store into file "$role.dump" under list directory. ROLE may be 'member', 'owner' or 'editor'.
Returns the type of a pictures according to the user.
Instance method. FIXME @todo doc
Find pictures URL
Instance method. Gets users of the list with one of following roles.
"actual_editor"
Editors belonging to the list. If there are no such users, owners of the list.
"editor"
Editors belonging to the list.
"owner"
Owners of the list.
"privileged_owner"
Owners whose "profile" attribute is "privileged".
"receptive_editor"
Editors belonging to the list and whose reception mode is "mail". If there are no such users, owners whose reception mode is "mail".
"receptive_owner"
Owners whose reception mode is "mail".

Optional filter may be:

[email => $email]
Limit result to the user with their e-mail $email.

Returns:

In array context, returns (possiblly empty or single-item) array of users. In scalar context, returns reference to it. In case of database error, returns empty array or undefined value.

Instance method. Gets an array of emails of list admins with role "receptive_editor", "actual_editor", "receptive_owner" or "owner".
Instance method. FIXME @todo doc
Instance method. FIXME @todo doc
Return the VERP address of the list for the user WHO.

FIXME: VERP addresses have the name of originating robot, not mail host.

Instance method. FIXME @todo doc
Instance method. FIXME @todo doc
Instance method. FIXME @todo doc
Returns the cookie for a list, if available.
Instance method. FIXME @todo doc
Returns a default option of the list for subscription.
Returns a hash to the first user on the list.
Return the list ID, different from the list address (uses the robot name)
Instance method. List of lists including specified list and hosted by a whole site.

Parameter:

$role
Role of included users. 'member', 'owner' or 'editor'.

Returns:

Arrayref of <Sympa::List> instances. Return "undef" on failure.

Returns a subscriber of the list.
Returns the maximum allowed size for a message.
Instance method. Gets users of the list with one of following roles.
"member"
Members of the list, either subscribed or included.
"unconcealed_member"
Members whose "visibility" property is not "conceal".

Returns:

In array context, returns (possiblly empty or single-item) array of users. In scalar context, returns reference to it. In case of database error, returns empty array or undefined value.

Instance method. Returns the number of messages sent to the list. FIXME
Instance method. Loop for all subsequent bouncing users. FIXME
Instance method. Returns the date epoch for next delivery planned for a list.

Note: As of 6.2a.41, returns "undef" if parameter is not set or invalid. Previously it returned current time.

Returns a hash to the next users, until we reach the end of the list.
instance method. Returns the list parameter value. the parameter is simple (name) or composed (name"."minor) the value is a scalar or a ref on an array of scalar (for parameter digest : only for days).
Instance method. FIXME
Instance method. FIXME @todo doc
Returns an array with the Reply-To values.
instance method. TBD.
Returns array of the statistics.
Returns the number of subscribers to the list.
Instance method. Gets total number of bouncing subscribers.
Instance method. Checks if a list has data sources.
Instance method. FIXME @todo doc
Instance method. Update the exclusion table. FIXME @todo doc
Instance method. Returns true if $user has $role ("privileged_owner", "owner", "actual_editor" or "editor") on the list.
Returns true is the list is configured to keep archives of its messages.
Returns true is the list is configured to keep archives of its messages, i.e. process_archive parameter is set to "on".
Instance method. Checks for a topic if it is available in the list (look for each list parameter "msg_topic.name").
Instance method. Is a reception mode in the parameter reception of the available_user_options section?
Instance method. Does the list support digest mode?
Returns true value if the list is included in another list(s).
Returns true if the indicated user is member of the list.
Instance method. FIXME @todo doc
Returns true if the list is moderated. FIXME this may not be useful.
Instance method. Checks for the list parameter msg_topic_tagging if it is set to 'required'.
Instance method. Tests if some msg_topic are defined.
Instance method. Is the list web archived?

FIXME: Broken. Use scenario or is_archiving_enabled().

Loads the indicated list into the object.
Instance method. Loads all data sources. FIXME: Used only in wwsympa.fcgi.
Instance method. May the indicated user edit the indicated list parameter or not? FIXME @todo doc
Instance method. FIXME @todo doc
Instance method. FIXME @todo doc
Import user information into user store from file "$role.dump" under list directory. ROLE may be 'member', 'owner' or 'editor'.
Saves the indicated list object to the disk files.
Instance method. FIXME @todo doc
Instance method. FIXME @todo doc
Instance method. FIXME @todo doc
Instance method. FIXME @todo doc
Instance method. FIXME @todo doc
Function. FIXME This should be a instance method. FIXME @todo doc
Instance method. FIXME would be obsoleted. FIXME @todo doc
Instance method. FIXME @todo doc
Sets the new values given in the hash for the admin user.
Instance method. Sets the new values given in the pairs for the user.
Updates the stats, argument is number of bytes, returns list fo the updated values. Returns zeroes if failed.

Functions

Function. List of lists hosted by a family, a robot or whole site.
$that
Robot, Sympa::Family object or site (default).
Hash including options passed to Sympa::List->new() (see load()) and any of following pairs:
"'filter' => [ KEYS => VALS, ... ]"
Filter with list profiles. When any of items specified by KEYS (separated by "|") have any of values specified by VALS, condition by that pair is satisfied. KEYS prefixed by "!" mean negated condition. Only lists satisfying all conditions of query are returned. Currently available keys and values are:
'creation' => TIME
'creation<' => TIME
'creation>' => TIME
Creation date is equal to, earlier than or later than the date (UNIX time).
'member' => EMAIL
'owner' => EMAIL
'editor' => EMAIL
Specified user is a subscriber, owner or editor of the list.
'name' => STRING
'name%' => STRING
'%name%' => STRING
Exact, prefixed or substring match against list name, case-insensitive.
'status' => "STATUS|..."
Status of list. One of 'open', 'closed', 'pending', 'error_config' and 'family_closed'.
'subject' => STRING
'subject%' => STRING
'%subject%' => STRING
Exact, prefixed or substring match against list subject, case-insensitive (case folding is Unicode-aware).
'topics' => "TOPIC|..."
Exact match against any of list topics. 'others' or 'topicsless' means no topics.
'update' => TIME
'update<' => TIME
'update>' => TIME
Date of last update is equal to, earlier than or later than the date (UNIX time).
"'limit' => NUMBER "
Limit the number of results. 0 means no limit (default). Note that this option may be applied prior to 'order' option.
"'order' => [ KEY, ... ]"
Subordinate sort key(s). The results are sorted primarily by robot names then by other key(s). Keys prefixed by "-" mean descendent ordering. Available keys are:
'creation'
Creation date.
'name'
List name, case-insensitive. It is the default.
'total'
Estimated number of subscribers.
'update'
Date of last update.

Returns a ref to an array of List objects.

Function. List of robots hosted by Sympa.
Function. Get a list of lists where EMAIL assumes this ROLE (owner, editor or member) of function to any list in ROBOT.

Obsoleted methods

DEPRECATED. Use add_list_admin().
DEPRECATED. Use is_admin().
DEPRECATED. Returns true if the indicated file exists.
DEPRECATED. Returns the list of available files, if any.
DEPRECATED. Archives the Mail::Internet message given as argument.
DEPRECATED. Send the indicated archive file to the user, if it exists.
Instance method. Obsoleted.
OBSOLETED. Use get_admins().
DEPRECATED. Returns a hash with the information regarding the indicated user.
Instance method. Gets last date of distribution message .
OBSOLETED. Use "get_address" in Sympa.

Return the list email address of type TYPE: posting address (default), "owner", "editor" or (non-VERP) "return_path".

Return an admin user of the list with predefined role

OBSOLETED. Use get_admins().

OBSOLETED. Use get_id().
OBSOLETED. Use get_admins().
Deprecated. Returns the value for a flag : sig or sub.
Note: This method was obsoleted.

Chcks is USER may do the ACTION for the list. ACTION can be one of following : send, review, index, getm add, del, reconfirm, purge.

DEPRECATED. No longer used.
DEPRECATED. Print the list information to the given file descriptor, or the currently selected descriptor.
Deprecated on 6.2.23b.

Saves updates the statistics file on disk.

This method was DEPRECATED.

Send a Sympa::Message object to the editor (for approval).

Sends a message to the list editor to ask them for moderation (in moderation context : editor or editorkey). The message to moderate is set in moderation spool with name containing a key (reference send to editor for moderation). In context of msg_topic defined the editor must tag it for the moderation (on Web interface).

Parameters:

$message
Sympa::Message instance - the message to moderate.
$method
'md5' - for "editorkey", 'smtp' - for "editor".

Returns:

The moderation key for naming message waiting for moderation in moderation spool, or "undef".

This method was DEPRECATED.

Sends an authentication request for a sent message to distribute. The message for distribution is copied in the auth spool in order to wait for confirmation by its sender. This message is named with a key. In context of msg_topic defined, the sender must tag it for the confirmation

Parameter:

$message
Sympa::Message instance.

Returns:

The key for naming message waiting for confirmation (or tagging) in auth spool, or "undef".

Attributes

FIXME @todo doc

SEE ALSO

Sympa.

HISTORY

List module was renamed to Sympa::List module on Sympa 6.2.

2020-12-30 6.2.58