Todd, this would do just as well (or better) on the ezmlm list, since a
couple of the possible solutions use ezmlm-* rather than qmail-queue.
* Todd Finney <[EMAIL PROTECTED]> [010521 23:12]:
> >Before I go into detail about the problem I'm having, I'll describe
> >what I'm trying to do, to make sure that I'm even on the right track.
> >
> >We host a number of lists running under ezmlm-idx. I want to send an
> >announcement out to all of the lists every month. I first tried to
> >do this with a list of lists, but ezmlm doesn't care for that
> >approach, because the list name doesn't wind up in the To: or Cc:
> >headers.
So make ezmlm-reject omit that behavior. `man ezmlm-reject`
> >I'd rather not have things depend on the announcement process user
> >being a subscriber or in DIR/allow, which I think precludes the use of
> >qmail-inject. So, I'm attempting to do it with qmail-queue.
Eek, why not invoke ezmlm-send for each list? `man ezmlm-send` No need to
mess with qmail-queue, I don't think.
> >I created my message file, message.txt, and my envelope file
> >envelope.txt. AFAIK, they're in the correct format.
If you are asking for help, it would probably be best if you were complete
in your setup. Don't assume something is in the right format: prove it by
posting it. (Or put it up on the web and link to it.)
This may or may not actually help in this scenario, but you are *asking* to
get reamed by any number of people for mentioning the files but refusing to
post them. FYI.
> >Looking back through the list, I saw Peter Green's example from a few
> >months ago, and came up with this:
YAY I'M FAMOUS! ;-)
> >#!/usr/bin/perl -w
> >use strict;
> >$|++;
> >
> >my $mailprog = '/var/qmail/bin/qmail-queue';
> >my $message = './list_monthly_announcement.txt';
> >my $envelope = './list_monthly_announcement_recipients.txt';
Again, here's where it would be REALLY helpful to see this text file.
> >open \*STDIN, "<&MSG";
> >open \*STDOUT, "<&ENV";
Er, off the top of my head, you want to reverse that wokka, since STDOUT is
an output stream. Like:
open \*STDIN, "<&MSG";
open \*STDOUT, ">&ENV";
Ah yes, looking at `man perlopentut` would seem to indicate that format is
right.
Anyway, it seems to be a lot of overkill. Just iterate over your lists and
invoke ezmlm-send for each one. Done.
Good luck,
/pg
--
Peter Green : Architekton Internet Services, LLC : [EMAIL PROTECTED]
---
linux: the choice of a GNU generation
([EMAIL PROTECTED] put this on Tshirts in '93)