Table of Contents
This module provides various tools for Sympa.
Checks for no command in the body of the message. If there are some command in it, it returns true and sends a message to $sender by calling List::send_global_file() (see list-send-global-file, page ) with mail template
msg(+): ref(MIME::Entity) - the message to check
sender(+): the message sender
- 1 if there are some command in the message
- 0 else
Return an array made from a string splitted by ','. It removes spaces.
string(+): string to split
OUT: ref(ARRAY) -
Makes set operation on arrays seen as set (with no double):
A(+): ref(ARRAY) - set
B(+): ref(ARRAY) - set
OUT: ref(HASH) with keys:
- deleted: A B
- added: B A
- intersection: A B
- union: A B
Cleans a msg_id to use it without '
s', < and
msg_id(+): the message id
OUT: the clean msg_id
Lower-case it and remove leading and trailing spaces.
msg_id(+): the email
OUT: the clean email
Make an array of include path for tt2 parsing
robot(+): SCALAR - the robotset
dir: SCALAR - directory ending each path
lang: SCALAR - for lang directories
list: ref(List) - for list directory
OUT: ref(ARRAY) - include tt2 path, respecting path priorities.