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 message_report.
IN:
msg(+): ref(MIME::Entity) - the message to checksender(+): the message senderrobot(+): robotOUT:
Return an array made from a string splitted by ','. It removes spaces.
IN: string(+): string to split
OUT: ref(ARRAY) -
Makes set operation on arrays seen as set (with no double):
IN:
A(+): ref(ARRAY) - setB(+): ref(ARRAY) - setOUT: ref(HASH) with keys:
Cleans a msg_id to use it without '
n', '
s', < and >.
IN: msg_id(+): the message id
OUT: the clean msg_id
Lower-case it and remove leading and trailing spaces.
IN: msg_id(+): the email
OUT: the clean email
Make an array of include path for tt2 parsing
IN:
robot(+): SCALAR - the robotsetdir: SCALAR - directory ending each pathlang: SCALAR - for lang directorieslist: ref(List) - for list directoryOUT: ref(ARRAY) - include tt2 path, respecting path priorities.