At 11:32 PM 5/21/01, peter green wrote:
>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.

I thought about that, but it isn't really an ezmlm question 
anymore.  There doesn't seem to be an example on using qmail-queue 
anywhere.  It seems to me that there probably should be.

>* Todd Finney <[EMAIL PROTECTED]> [010521 23:12]:
> > >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`

And give up the spam protection that this provides?  No thanks :).

> > >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.

Yea, that sounds nice, but there isn't an example of using that outside 
of a .qmail file, either.   I'd think that

tfinney]$ cat ./list_monthly_announcement.txt | 
/usr/local/bin/ezmlm/ezmlm-send /home/list/test/

would work, but no dice.

Anyway, that _is_ an ezmlm problem, and isn't our problem here.

> > >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.

I didn't refuse to post anything. :)   Please don't say that I did.  I 
didn't include the envelope file because it seemed secondary to the 
problem.  If I can't figure out how to get qmail-queue to take input, 
what difference would it make what I'm feeding it?

I tried three different formats.  I believe the first is correct, but I 
saw a few mentioning of the other two, and tried them.  I saw no 
difference in running the script with any of them.

F [EMAIL PROTECTED]\0
T [EMAIL PROTECTED]\0
\0\0

"F" [EMAIL PROTECTED]\0
"T" [EMAIL PROTECTED]\0
\0\0

"F"[EMAIL PROTECTED]\0
"T"[EMAIL PROTECTED]\0
\0\0


> > >#!/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.

See above.

> > >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.

Thanks, I'll look into that, but I think a little more explicit 
documentation on qmail-queue would be helpful.

If I figure this out, I'll post an example to the list, so that we 
don't have to have this conversation again.

cheers,
Todd


Reply via email to