Sympa::List(3Sympa)

✨ Sympa::List(3Sympa) ✨ β€” the mailing list page, but make it cute

okay so bestie, gather round, because this is the manual page for Sympa::List from sympa 6.2.80, and it's literally the whole entire vibe of what a mailing list is inside Sympa. no cap. πŸ’…


🌸 NAME 🌸

Sympa::List β€” Mailing list. that's it, that's the name, she's simple, she's iconic, she's a mailing list. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so Sympa::List represents the mailing list on Sympa. like, that's the whole job. she's the object that is the list. periodt.


✨ Methods ✨

πŸ’– new( $name, [ $domain [ {options...} ] ] )

Constructor. she creates a brand new object that's gonna be used for a list, and eventually (iykyk) loads the list if a name is given. returns a List object. slay.

Parameters

FIXME @todo doc β€” yeah bestie they left this one blank, we're all just vibing with the mystery here. πŸ™ˆ


πŸ’– add_list_admin ( $role, $user, ..., [ replace => 1 ], [ stash => $arrayref ] )

Instance method. adds new admin user(s) to the list. If replace => 1 is specified, may overwrite existing entries. TBD. (we love an unfinished thought, honestly.) πŸŽ€


πŸ’– add_list_header ( $message, $field_type )

FIXME @todo doc β€” again, blank, we move. πŸ¦‹


πŸ’– add_list_member ( $user, ..., [ stash => $arrayref ] )

Instance method. adds new user(s) to the list. TBD.


πŸ’– available_reception_mode ( )

Instance method. FIXME @todo doc

Note: Since Sympa 6.1.18, this returns an array under array context. yes bestie, array context, she's giving scalar-vs-list energy. πŸ”₯

πŸ’– delete_list_admin ( $role, \@emails, [ stash => \@stash ] )

Delete the indicated admin user with the predefined role from the list. $role may be 'owner' or 'editor'. bye bestie, you're out. πŸ‘‹


πŸ’– delete_list_member ( \@emails, [ exclude => 1 ], [ operation => $operation ], [ stash => \@stash ] )

Delete the indicated users from the list.

Options:

  • \@emails β€” The emails to be deleted.
  • exclude => 1 β€” TBD.
  • operation => $operation β€” Case of deleting: 'auto_del' (bounce management), 'signoff' (manual signoff) or 'del' (deleted by admin).
  • stash => \@stash β€” TBD.

πŸ’– delete_list_member_picture ( $email )

Deletes a member's picture file. poof. gone. no more pic. πŸ“Έ


πŸ’– destroy_multiton ( )

Instance method. Destroy multiton instance. FIXME β€” okay she's a little chaotic but we support her.


πŸ’– dump_users ( ROLE )

Dump user information in user store into file $role.dump under list directory. ROLE may be 'member', 'owner' or 'editor'. we love a data dump bestie. πŸ’Ύ


πŸ’– find_picture_filenames ( $email )

Returns the type of a pictures according to the user. (yes, "a pictures", we didn't write it, we're just reporting it, iconic grammar moment. πŸ’€)


πŸ’– find_picture_paths ( )

Instance method. FIXME @todo doc


πŸ’– find_picture_url ( $email )

Find pictures URL. she's hunting for the URL bestie. πŸ”


πŸ’– get_admins ( $role, [ filter => \@filters ] )

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 (possibly 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. 😭 (db errors rly do be like that.)


πŸ’– get_admins_email ( $role )

Instance method. Gets an array of emails of list admins with role "receptive_editor", "actual_editor", "receptive_owner" or "owner". the whole roster, bestie. πŸ“§


πŸ’– get_archive_dir ( )

Instance method. FIXME @todo doc


πŸ’– get_available_msg_topic ( )

Instance method. FIXME @todo doc


πŸ’– get_bounce_address ( WHO, [ OPTS, ... ] )

Return the VERP address of the list for the user WHO. bounce bounce bounce. πŸ€

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

πŸ’– get_bounce_dir ( )

Instance method. FIXME @todo doc


πŸ’– get_cert ( )

Instance method. FIXME @todo doc


πŸ’– get_config_changes ( )

Instance method. FIXME @todo doc


Returns the cookie for a list, if available. if not available, no cookie for you. πŸͺ


πŸ’– get_current_admins ( ... )

Instance method. FIXME @todo doc


πŸ’– get_default_user_options ()

Returns a default option of the list for subscription. the default default, we love a baseline. ✨


πŸ’– get_first_list_member ()

Returns a hash to the first user on the list. first in line bestie, main character energy. 🌟


πŸ’– get_id ( )

Return the list ID, different from the list address (uses the robot name). she's not like other girls (literally, she uses the robot name). πŸ’…


πŸ’– get_including_lists ( $role )

Instance method. List of lists including specified list and hosted by a whole site. lists within lists, it's giving inception fr fr. πŸŒ€

Parameter:

  • $role β€” Role of included users. 'member', 'owner' or 'editor'.

Returns:

Arrayref of <Sympa::List> instances. Return "undef" on failure. πŸ˜”


πŸ’– get_list_member ( USER )

Returns a subscriber of the list. one subscriber, hand-picked. 🫢


πŸ’– get_max_size ()

Returns the maximum allowed size for a message. big messages need not apply. πŸ“


πŸ’– get_members ( $role, [ offset => $offset ], [ order => $order ], [ limit => $limit ] )

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".

Optional parameters:

  • limit => $limit
  • offset => $offset
  • order => $order β€” TBD.

Returns:

In array context, returns (possibly 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. same deal as before bestie, we've been here. πŸ’–


πŸ’– get_msg_count ( )

Instance method. Returns the number of messages sent to the list. FIXME


πŸ’– get_first_bouncing_list_member ( )

Instance method. Get first bouncing user. FIXME


πŸ’– get_next_bouncing_list_member ( )

Instance method. Loop for all subsequent bouncing users. FIXME β€” she's looping bestie, let her loop. πŸ”


πŸ’– get_next_delivery_date ( )

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. so if you're on old Sympa and confused, that's why, bestie. ⏰

πŸ’– get_next_list_member ()

Returns a hash to the next users, until we reach the end of the list. keep going keep going keep going, until we hit the end. πŸƒβ€β™€οΈ


πŸ’– get_param_value ( $param, [ $as_arrayref ] )

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). lowkey a mouthful but she's precise, respect. πŸŽ€


πŸ’– get_picture_path ( )

Instance method. FIXME


πŸ’– get_recipients_per_mode ( )

Instance method. FIXME @todo doc


πŸ’– get_reply_to ()

Returns an array with the Reply-To values. reply to whom bestie?? the array knows. πŸ“¬


πŸ’– get_resembling_members ( $role, $searchkey )

instance method. TBD.


πŸ’– get_stats ( )

Returns array of the statistics. numbers, so many numbers, we love data. πŸ“Š


πŸ’– get_total ( [ 'nocache' ] )

Returns the number of subscribers to the list. and if you pass that 'nocache' bestie, she's going straight to the source, no caching, no shortcuts. πŸ”₯


πŸ’– get_total_bouncing ( )

Instance method. Gets total number of bouncing subscribers.


πŸ’– has_data_sources ( )

Instance method. Checks if a list has data sources.


πŸ’– has_included_users ( $role )

Instance method. FIXME @todo doc


πŸ’– insert_delete_exclusion ( $email, "insert"|"delete" )

Instance method. Update the exclusion table. FIXME @todo doc


πŸ’– is_admin ( $role, $user )

Instance method. Returns true if $user has $role ("privileged_owner", "owner", "actual_editor" or "editor") on the list. are you on the admin squad bestie? πŸ‘‘


πŸ’– is_archived ()

Returns true is the list is configured to keep archives of its messages. (yes it says "is", the manpage is quirky, we stan.) πŸ—„οΈ


πŸ’– is_archiving_enabled ( )

Returns true is the list is configured to keep archives of its messages, i.e. process_archive parameter is set to "on". same quirk, same love.


πŸ’– is_available_msg_topic ( $topic )

Instance method. Checks for a topic if it is available in the list (look for each list parameter "msg_topic.name").


πŸ’– is_available_reception_mode ( $mode )

Instance method. Is a reception mode in the parameter reception of the available_user_options section? πŸ¦‹


πŸ’– is_subscription_allowed ( )

Instance method. Is it allowed to add or remove subscribers of the list? Added on Sympa 6.2.67b.1. new-ish queen. ✨


πŸ’– is_digest ( )

Instance method. Does the list support digest mode?


πŸ’– is_included ( )

Returns true value if the list is included in another list(s). she's a guest star in someone else's list. 🌟


πŸ’– is_list_member ( USER )

Returns true if the indicated user is member of the list.


πŸ’– is_moderated ()

Returns true if the list is moderated. FIXME this may not be useful. (bestie even the docs are like "idk"] 😭)


πŸ’– is_msg_topic_tagging_required ( )

Instance method. Checks for the list parameter msg_topic_tagging if it is set to 'required'. no tag, no post, rules are rules. πŸŽ€


πŸ’– is_there_msg_topic ( )

Instance method. Tests if some msg_topic are defined.


πŸ’– is_web_archived ( )

Instance method. Is the list web archived?

FIXME: Broken. Use scenario or is_archiving_enabled(). bestie she's broken, do NOT use her, we said what we said. πŸ’€

πŸ’– load ( )

Loads the indicated list into the object. loading... loading... okay she's loaded. πŸ”„


πŸ’– load_data_sources_list ( $robot )

Instance method. Loads all data sources. FIXME: Used only in wwsympa.fcgi.


πŸ’– may_edit ( $param, $who, [ options, ... ] )

Instance method. May the indicated user edit the indicated list parameter or not? FIXME @todo doc


πŸ’– parse_list_member_bounce ( $user )

Instance method. FIXME @todo doc


πŸ’– restore_suspended_subscription ( $email )

Instance method. FIXME @todo doc


πŸ’– restore_users ( ROLE )

Import user information into user store from file $role.dump under list directory. ROLE may be 'member', 'owner' or 'editor'. the come back era. πŸ’–


πŸ’– save_config ( LIST )

Saves the indicated list object to the disk files. save her, she's precious. πŸ’Ύ


πŸ’– search_list_among_robots ( $listname )

Instance method. FIXME @todo doc


πŸ’– select_list_members_for_topic ( $topic, \@emails )

Instance method. FIXME @todo doc


πŸ’– send_notify_to_owner ( $operation, $params )

Instance method. FIXME @todo doc


πŸ’– send_probe_to_user ( $type, $who )

Instance method. FIXME @todo doc


πŸ’– set_status_error_config ( $msg, parameters, ... )

Instance method. FIXME @todo doc


πŸ’– suspend_subscription ( $email, $list, $data, $robot )

Function. FIXME This should be a instance method. FIXME @todo doc β€” two whole FIXMEs on one line bestie, she's going through it. 😭


πŸ’– sync_include ( $role, options... )

Instance method. FIXME would be obsoleted. FIXME @todo doc


πŸ’– update_config_changes ( )

Instance method. FIXME @todo doc


πŸ’– update_list_admin ( USER, ROLE, HASHPTR )

Sets the new values given in the hash for the admin user.


πŸ’– update_list_member ( $email, key => value, ... )

Instance method. Sets the new values given in the pairs for the user.


πŸ’– update_stats ( count, [ sent, bytes, sent_by_bytes ] )

Updates the stats, argument is number of bytes, returns list fo the updated values. Returns zeroes if failed. ("list fo" β€” not us, the manpage said it, we're just being faithful bestie, don't @ us.) πŸ“ˆ

✨ Functions ✨

🌸 get_lists ( [ $that, [ options, ... ] ] )

Bestie, this is a function. It gives you the list of lists hosted by a family, a robot, or the whole entire site. Iconic.

  • $that β€” a Robot, a Sympa::Family object, or site. That's the default, so if you pass nothing it's giving "whole site" energy.
  • options, ... β€” a hash holding the options that get handed off to Sympa::List->new() (go read load() for those) plus any of these lil pairs:
    • 'filter' => [ KEYS => VALS, ... ] β€” filter it by list profiles. Here's the vibe: when any of the items named by KEYS (separated by |) has any of the values named by VALS, that pair's condition is satisfied, periodt. KEYS with a ! in front mean negated condition. Only lists that satisfy all the conditions in the query come back to you. rn the keys and values you can use are:
      • 'creation' => TIME, 'creation<' => TIME, 'creation>' => TIME β€” creation date is equal to, earlier than, or later than that date (UNIX time).
      • 'member' => EMAIL, 'owner' => EMAIL, 'editor' => EMAIL β€” that user is a subscriber, an owner, or an editor of the list.
      • 'name' => STRING, 'name%' => STRING, '%name%' => STRING β€” exact, prefixed, or substring match against the list name, and it's case-insensitive.
      • 'status' => "STATUS|..." β€” the status of the list. One of 'open', 'closed', 'pending', 'error_config' and 'family_closed'.
      • 'subject' => STRING, 'subject%' => STRING, '%subject%' => STRING β€” exact, prefixed, or substring match against the list subject, case-insensitive (and the case folding is Unicode-aware, so it knows things ✨).
      • 'topics' => "TOPIC|..." β€” exact match against any of the list topics. 'others' or 'topicsless' means no topics at all.
      • 'update' => TIME, 'update<' => TIME, 'update>' => TIME β€” date of last update is equal to, earlier than, or later than that date (UNIX time).
    • 'limit' => NUMBER β€” cap how many results you get. 0 means no limit, and that's the default. Heads up tho: this option may be applied before the 'order' option.
    • 'order' => [ KEY, ... ] β€” subordinate sort key(s). Results get sorted primarily by robot names, then by the other key(s). Keys prefixed by - mean descendant ordering. The keys available are:
      • 'creation' β€” creation date.
      • 'name' β€” list name, case-insensitive. This one's the default, iykyk.
      • 'total' β€” estimated number of subscribers.
      • 'update' β€” date of last update.

Returns a ref to an array of List objects. 🫢


πŸ’– get_robots ( )

Function. List of robots hosted by Sympa. Cute, short, does what it says. ✨


πŸ¦‹ get_which ( EMAIL, ROBOT, ROLE )

Function. Get a list of lists where EMAIL assumes this ROLE β€” owner, editor or member β€” of function to any list in ROBOT.


πŸ’€ Obsoleted methods πŸ’€

okay so this whole section is the "we don't do that anymore" hall of fame. Read it and weep, but mostly read it so you don't use these.

  • add_admin_user ( USER, ROLE, HASHPTR ) β€” DEPRECATED. Use add_list_admin().
  • am_i ( ROLE, USER ) β€” DEPRECATED. Use is_admin().
  • archive_exist ( FILE ) β€” DEPRECATED. Returns true if the indicated file exists.
  • archive_ls () β€” DEPRECATED. Returns the list of available files, if any.
  • archive_msg ( MSG ) β€” DEPRECATED. Archives the Mail::Internet message given as argument.
  • archive_send ( WHO, FILE ) β€” DEPRECATED. Send the indicated archive file to the user, if it exists.
  • get_db_field_type ( ... ) β€” Instance method. Obsoleted.
  • get_first_list_admin ( ROLE ) β€” OBSOLETED. Use get_admins().
  • get_global_user ( USER ) β€” DEPRECATED. Returns a hash with the information regarding the indicated user.
  • get_latest_distribution_date ( ) β€” Instance method. Gets last date of distribution message.
  • get_list_address ( [ TYPE ] ) β€” OBSOLETED. Use get_address in Sympa.

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

  • get_list_admin ( ROLE, USER) β€” Return an admin user of the list with predefined role.

OBSOLETED. Use get_admins().

  • get_list_id ( ) β€” OBSOLETED. Use get_id().
  • get_next_list_admin () β€” OBSOLETED. Use get_admins().
  • get_state ( FLAG ) β€” Deprecated. Returns the value for a flag: sig or sub.
  • is_member_excluded ( $email ) β€” Instance method. Deprecated.
  • may_do ( ACTION, USER ) β€” Note: this method was obsoleted.

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

  • move_message ( $file, $queue ) β€” DEPRECATED. No longer used.
  • print_info ( FDNAME ) β€” DEPRECATED. Print the list information to the given file descriptor, or the currently selected descriptor.
  • savestats () β€” Deprecated on 6.2.23b.

Saves updates the statistics file on disk.

  • send_confirm_to_editor ( $message, $method ) β€” 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 the message waiting for moderation in moderation spool, or undef.
  • send_confirm_to_sender ( $message ) β€” This method was DEPRECATED.

Sends an authentication request for a sent message to distribute. The message for distribution is copied into 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 the message waiting for confirmation (or tagging) in auth spool, or undef.

πŸŽ€ Attributes πŸŽ€

  • FIXME @todo doc πŸ™ˆ

like, that's literally all it says. some brave soul left us a lil TODO sticky note and honestly? respect.


🌈 SEE ALSO 🌈

Sympa.

that's it bestie, one (1) reference. short and sweet, she's minimal. πŸ’…


⭐ HISTORY ⭐

The List module was renamed to Sympa::List module on Sympa 6.2. glow-up era. ✨


and that's the whole page, fr fr πŸ¦‹ the footer says this is from version 6.2.80, dated 2026-10-19 β€” so like, screenshot it, cite it, love it, you're welcome. mwah πŸ’– πŸ‘‘

πŸ“¦ where this page comes from