User Commands ezmlm-issubn(1) NNNNAAAAMMMMEEEE ezmlm-issubn - test to see if an address is subscribed to a mailing list SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS eeeezzzzmmmmllllmmmm----iiiissssssssuuuubbbbnnnn [ -nnnnNNNN ] _d_i_r [ _d_i_r_1 ... ] DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN eeeezzzzmmmmllllmmmm----iiiissssssssuuuubbbbnnnn checks to see if the address obtained from the environment variable _S_E_N_D_E_R is subscribed to the mailing list stored in _d_i_r or the mailing list in _d_i_r_1 or ... If _S_E_N_D_E_R is not defined eeeezzzzmmmmllllmmmm----iiiissssssssuuuubbbbnnnn exits with an error. If _S_E_N_D_E_R is on [any of] the mailing list[s], eeeezzzzmmmmllllmmmm----iiiissssssssuuuubbbbnnnn exits with a zero exit code. If _b_o_x@@@@_d_o_m_a_i_n is not on the mailing list, eeeezzzzmmmmllllmmmm----iiiissssssssuuuubbbbnnnn exits 99. This exit code is non-success from a shell point of view, but to qmail it means "success and skip remaining lines in the .qmail file). Thus, a simple way to execute a delivery if the criteria are met is to place the eeeezzzzmmmmllllmmmm---- iiiissssssssuuuubbbbnnnn line first, followed by the action line. If SENDER is a subscriber, the action line is executed, if not, the line is ignored without the generation of an error condition. To generate a fatal error, just: |/path/ezmlm-issubn _d_i_r_1 ... || (echo "err msg"; exit 100) |/path/action_for_subscribers |/path/more_for_subscribers eeeezzzzmmmmllllmmmm----iiiissssssssuuuubbbbnnnn exits 100 on permanent and 111 on temporary errors. OOOOPPPPTTTTIIIIOOOONNNNSSSS -nnnn Negate exit code. Exit 99 if SENDER is a subscriber and exit 0 if not. This is useful when trying to exclude SENDERs. -NNNN (Default.) Normal exit codes: 0 is the address is in any of the lists, 99 if not. SSSSEEEEEEEE AAAALLLLSSSSOOOO ezmlm-list(1), ezmlm-manage(1), ezmlm-make(1), ezmlm- send(1), ezmlm-sub(1), ezmlm-unsub(1), ezmlm(5) SunOS 5.11 Last change: 1