User Commands ezmlm-moderate(1) NNNNAAAAMMMMEEEE ezmlm-moderate - process moderator actions for message acceptance and rejection SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee [[[[----ccccCCCCmmmmMMMMrrrrRRRRvvvvVVVV]]]] [[[[----tttt _r_e_p_l_y-_t_o@_h_o_s_t]]]] _d_i_r ['/_p_a_t_h/_p_r_o_g_r_a_m _a_r_g_s'] DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee reads a mail message, expecting it to contain an -_a_c_c_e_p_t or -_r_e_j_e_c_t action request for the mailing list stored in _d_i_r. eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee verifies the cookie sent as part of the action request, and if correct attempts to find the corresponding message in _d_i_r////mmmmoooodddd////ppppeeeennnnddddiiiinnnngggg////. If the message is found, it is either rejected or posted to the list, depending on the action request. Posts to the list are handled by piping the message to eeeezzzzmmmmllllmmmm----sssseeeennnndddd((((1111)))) located in the ezmlm binary directory, as set at compile time. This is usually the directory that ezmlm- moderate resides in. eeeezzzzmmmmllllmmmm----sssseeeennnndddd((((1111)))) is provided with _d_i_r as the first argument. If the optional second argument is given, eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee pipes the message to that program, as executed by sh. No parameters are supplied. _d_i_r is passed as an argument to eeeezzzzmmmmllllmmmm----sssseeeennnndddd((((1111)))), but NOT to any program specified as the optional eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee command line argument. eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee does not bother to correctly set sender. eeeezzzzmmmmllllmmmm----sssseeeennnndddd((((1111)))) doesn't care, and any other program that might be used can parse the sender from the first line of the mes- sage, which is always _R_e_t_u_r_n-_P_a_t_h: <_a_d_d_r_e_s_s@_h_o_s_t._d_o_m_a_i_n> as build from SENDER originally passed to eeeezzzzmmmmllllmmmm----ssssttttoooorrrreeee((((1111)))). If the message is rejected, an optional moderator comment is copied into the notification to the message sender. A moderator comment is any text in the -_r_e_j_e_c_t request found between two lines with ``%%%'' starting in one of the first 5 positions of the line. The easiest is to use lines con- sisting of ``%%%'' only. If the characters preceeding the ``%%%'' are found at the beginning of any lines within the comment, the characters are removed. This is to appropri- ately ignore any ``quote marks'' that you mail program might place at the beginning of lines in a reply. eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee messages are sent ``From:'' _l_i_s_t- SunOS 5.11 Last change: 1 User Commands ezmlm-moderate(1) _o_w_n_e_r@_l_i_s_t_h_o_s_t. This allows the poster to easily complain to the owner of the list, in case s/he objects. An optional ``Reply-To:'' header can be added via the -rrrr _r_e_p_l_y-_t_o@_h_o_s_t. Once the message has been successfully accepted or rejected, it is removed from _d_i_r////mmmmoooodddd////ppppeeeennnnddddiiiinnnngggg//// and a stub is created in _d_i_r////mmmmoooodddd////aaaacccccccceeeepppptttteeeedddd//// or _d_i_r////mmmmoooodddd////rrrreeeejjjjeeeecccctttteeeedddd////, respectively. This is done in order to be able to notify the senders of later moderation requests about the fate of the message. A failure to find the message in _d_i_r////mmmmoooodddd////ppppeeeennnnddddiiiinnnngggg//// is most often caused by the message already having been accepted or rejected by another moderator. Therefore, eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee looks in _d_i_r////mmmmoooodddd////aaaacccccccceeeepppptttteeeedddd//// and _d_i_r////mmmmoooodddd////rrrreeeejjjjeeeecccctttteeeedddd//// for a mes- sage stub. If found, eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee notifies the sender in the form of a fatal error if the fate of the message was different from that intended by the current action request. Otherwise, the fate of the message is silently logged. If the message is not found, it has timed out and the mes- sage or the message stub has been removed by eeeezzzzmmmmllllmmmm----cccclllleeeeaaaannnn((((1111)))). In this case, eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee notifies the moderator of the failure, but can no longer discern the fate of the original message. Again, notification is in the form of a fatal error from qmail. At the beginning of the message, eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee prints a new MMMMaaaaiiiilllliiiinnnngggg----LLLLiiiisssstttt field with the contents of _d_i_r////mmmmaaaaiiiilllliiiinnnngggglllliiiisssstttt. It rejects the message if there is already a MMMMaaaaiiiilllliiiinnnngggg----LLLLiiiisssstttt field. eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee does not distribute bounce messages: if the environment variable SSSSEEEENNNNDDDDEEEERRRR is set, and is either empty or ####@@@@[[[[]]]], eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee rejects the message. OOOOPPPPTTTTIIIIOOOONNNNSSSS -ccccCCCCrrrrRRRR Passed on to ezmlm-send(1). -mmmm (Default.) The rejected post is sent as a MIME enclo- sure. -MMMM The rejected post is appended to the message. -tttt _r_e_p_l_y-_t_o@_h_o_s_t A ``Reply-To: _r_e_p_l_y-_t_o@_h_o_s_t'' header will be added to the moderation request. -vvvv Display eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee version information. -VVVV Display eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee version information. SunOS 5.11 Last change: 2 User Commands ezmlm-moderate(1) CCCCHHHHAAAARRRRAAAACCCCTTTTEEEERRRR SSSSEEEETTTTSSSS If _d_i_r////cccchhhhaaaarrrrsssseeeetttt exists, eeeezzzzmmmmllllmmmm----mmmmooooddddeeeerrrraaaatttteeee will use the character set listed for all messages. Otherwise, the default ``us- ascii'' will be used. The character set can be suffixed by ``:'' followed by a code. If the code is ``Q'', outgoing messages are sent as ``Quoted-Printable'', if it is ``B'' they are sent ``base64'' encoded. Otherwise, text is sent as is. SSSSEEEEEEEE AAAALLLLSSSSOOOO ezmlm-clean(1), ezmlm-make(1), ezmlm-send(1), ezmlm- store(1), ezmlm(5) SunOS 5.11 Last change: 3