REGARDING digests, the way I see them
Lately I've seen a lot of posts about digest not working, but no answers.
These folks are in the same boat that I was in, about a year ago, and this
list was my tutor. The best way I learned was to see the code people
used, so here's "digest in a nutshell."
/MAJORDOMO.CF, applicable section:
# Majordomo will look for "get" and "index" files related to $list in
# directory "$filedir/$list$filedir_suffix", so set $filedir and
# $filedir_suffix appropriately. For instance, to look in
# /usr/local/mail/files/$list, use:
# $filedir = "/usr/local/mail/files";
# $filedir_suffix = ""; # empty string
# or to look in $listdir/$list.archive, use:
# $filedir = "$listdir";
# $filedir_suffix = ".archive";
$filedir = "/usr/local/mail/archives";
$filedir_suffix = "";
<snip>
# the safe locations for archive directories. This should be defined as
# a series of root anchored directory paths as will be used as prefixes
# to the file names specified to the archive2.pl script.
@archive_dirs = ( "/usr/local/mail/archives",
"/usr/local/mail/archives/test",
"/usr/local/mail/archives/other-list-names" );
/USR/LOCAL/MAIL directory:
drwxrwsr-x 35 majordom majordom 1024 Mar 4 14:07 archives
drwxrwsr-x 8 majordom majordom 512 Feb 20 13:44 digest
drwxrwsr-x 2 majordom majordom 21504 Mar 21 13:02 lists
/USR/LOCAL/MAIL/ARCHIVES directory:
drwxrwsr-x 2 majordom majordom 512 Mar 13 14:37 test
drwxrwsr-x 2 majordom majordom 512 Mar 1 14:43 test-digest
and so on.
(I have about 30 archiving lists)
/USR/LOCAL/MAIL/ARCHIVES/TEST directory:
-rw-rw---- 1 majordom majordom 28835 Feb 16 15:33 test.archive.9602
-rw-rw---- 1 majordom majordom 29766 Mar 13 14:37 test.archive.9603
lrwxrwxrwx 1 majordom majordom 41 Oct 13 11:10 testmdir ->
/afs/ualberta.
ca/home/d/b/dblack/testmdir
-rw-rw---- 1 majordom majordom 2689 Nov 9 09:42 v01.n005
-rw-rw---- 1 majordom majordom 4587 Nov 10 10:33 v01.n006
/USR/LOCAL/MAIL/DIGEST directory:
drwxrwsr-x 2 majordom majordom 512 Mar 13 14:37 test-digest
/USR/LOCAL/MAIL/DIGEST/TEST-DIGEST directory:
(you don't have to create any files here, just the directory, chmod 775)
-rw-rw---- 1 majordom majordom 5617 Mar 1 15:17 001
-rw-rw---- 1 majordom majordom 5482 Mar 7 11:02 002
-rw-rw---- 1 majordom majordom 2961 Mar 8 12:39 003
-rw-rw---- 1 majordom majordom 2658 Mar 8 13:30 004
-rw-rw---- 1 majordom majordom 2658 Mar 8 14:10 005
-rw-rw---- 1 majordom majordom 1386 Mar 12 10:36 006
-rw-rw---- 1 majordom majordom 1467 Mar 13 14:37 007
/ETC/ALIASES entry for list "test":
test:"|/home/majordomo/wrapper resend -l test -h majordomo.srv.ualberta.ca
test-
outgoing"
test-outgoing::include:/usr/local/mail/lists/test,
"|/home/majordomo/wrapper archive2.pl -a -m -f
/usr/local/mail/archives/test/t
est.archive",
"|/home/majordomo/wrapper digest -r -C -l test-digest test-digest-outgoing"
test-digest-outgoing::include:/usr/local/mail/lists/test-digest
test-owner:dblack@gpu.srv.ualberta.ca, another.person@ualberta.ca
owner-test:test-owner
test-digest-owner:dennis.black@ualberta.ca
owner-test-digest:test-digest-owner
test-request:"|/home/majordomo/wrapper request-answer test"
test-digest-request:"|/home/majordomo/wrapper request-answer test-digest"
test-approval:test-owner
test-digest-approval:test-digest-owner
Notice, there is no test-digest alias. Create test-digest the same as
any other list, with subscriber's file, info file, config file, passwd file.
Hope this helps. I don't know if this is the best way, or the only way.
A reminder that the majordomo-users archives are available for everyone.
|
|