Great Circle Associates Majordomo-Users
(March 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: digest for every single message? max length? halp!
From: Scott Larnach <scott @ ucs . ed . ac . uk>
Date: Fri, 22 Mar 1996 10:46:07 GMT
To: Steve Portigal <stevep @ rahul . net>, majordomo-users @ GreatCircle . COM
In-reply-to: Steve Portigal's message of Thu, 21 Mar 1996 11:43:11 -0800 (PST)
Organisation: Unix Support, Edinburgh University Computing Services

Steve Portigal writes:

> I am getting a digest sent ou;t for every single message.
> 
> I have the list "undercover" and the digest "undercover-digest" - what
> is the relationshiip between the "maxlength" value for each of them?

For a non-digest list - if any message being processed by resend
exceeds maxlength, and it has not been approved by the list admin,
resend will bounce it to the list admin for approval.

For a digest list - if any message being processed by digest causes
the total size of all the accumulated messages waiting for digesting
to exceed maxlength, a digest will be autonatically generated. (Note
that the digest will almost certainly turn out to be less than
maxlength, since the waiting messages have most headers stripped
out of them as part of the digesting process.)

> They were set to 32000 and that was causing very small digests so I set
> them both (using webdomo, which is what pobox lets you use) to 96000 and
> when I find a million digests coming out, I go in there and the value
> has been deleted in undercover-digest's config.

I don't know why that should be. I don't have webdomo - I just use
newconfig or edit the config by hand (since I run the machine
majordomo lives on) and this doesn't happen.

> What I really want is no fixed digest size, but a single daily digest.
> There is no documentation I have found (and if anyone can help with this, too)
> that says how to set it up to go every day. Is this assumed?

Either -

1. Under control of the list admin. On the list admin's machine,
have a job run at the same time every day which generates a mkdigest
command and mails it to majordomo. e.g. on a unix box, you would
have a cron job that calls a script that does something like

  echo mkdigest listname mypasswd | mail majordomo@wherever

2. Under control of the majordomo admin. On the majordomo machine,
create a cron job for majordomo that runs every day and calls a script
which does something like (off the top of my head and untested):

  #!/bin/sh

  digestspool=/path/to/digests
  homedir=/path/to/majordomo/bin

  if test $# -ne 1; then
    echo "usage: rundigest digest-name" 1>&2
    exit 1
  fi

  digest=$1
  cd $digestspool/$digest
  files=`ls`
  if test ! -z "$files"; then
    $homedir/digest -m -C -l $digest $digest-outgoing
  fi

  exit 0

If the script was called rundigest, the cron job would call
"rundigest whatever-digest". This way, you have a line in cron for
each digest you want sent out regularly, and each can be sent out at
different times of the day, twice weekly, once a month, or whatever.

Hope this helps

Scott Larnach, Edinburgh University

Indexed By Date Previous: Re: Double posts
From: James Fidell <james@corp.netcom.net.uk>
Next: Majordomo Configuration
From: rania@inco.com.lb (Rania Fakhoury)
Indexed By Thread Previous: digest for every single message? max length? halp!
From: Steve Portigal <stevep@rahul.net>
Next: digests, the way I see them
From: "Dennis Black" <dennis.black@UAlberta.CA>

Google
 
Search Internet Search www.greatcircle.com