3 ezmlm-tstdig \- Tests if a digest should be created
19 reads files in the list directory
21 and determines if any of the criteria specified by the options are met.
22 If they are, or if all options specified are 0,
24 exits with success (0). Otherwise,
26 exits (99), or in case of errors, (100) for permanent and (111) for temporary
31 is to place it in a script so that
35 exists 0, but skipped otherwise.
38 uses LOCAL to adapt its behavior so that it
39 can be used from the command line, a script, or from within
47 line should end in '|| exit 99'.
50 if digest generation criteria are met
56 is more than 1 hour old or a digest has been successfully created since
60 will set the timestamp to the current time and exit 0. Otherwise it will
61 exit 99. This is to guard against initiating duplicate digests when messages
62 arrive while digesting is in progress.
68 of message body has accumulated since the latest digest.
73 messages have accumulated since the latest digest.
78 hours have passed since the latest digest.
80 This is an example script for ezmlm-tstdig usage.
85 #usage: script dir diglist@host
86 #digest if > 64 kbytes message bodies,
88 # > 48 hours since last digest.
90 # ezmlm bin path - modify for your setup
91 EZPATH='/usr/local/bin/ezmlm'
93 EZTST="${EZPATH}/ezmlm-tstdig"
94 EZGET="${EZPATH}/ezmlm-get"
95 ${EZTST} -k64 -m30 -t48 "$1" || exit 0
96 ${EZGET} -t "'$2'" "'$1'" < /dev/null
97 # improve by testing exit status
104 should be integrated into the digesting program so that
106 will not be not necessary. This may be done in the next version.