Great Circle Associates Majordomo-Users
(January 2000)
 

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

Subject: RE: digests not going out - A fix
From: Pete Norton <pete . norton @ orenco . com>
Date: 06 Jan 00 08:18:39 -0800
To: "majordomo-users" <majordomo-users @ greatcircle . com>
Reply-to: Pete Norton <pete . norton @ orenco . com>

 RE: digests not going out - A fix                     1/4/00       4:44
PM
My apologies if I sent this out before.

>Here is a transcript of a mkdigest command (list name changed
>to protect the innocent):
>
>>>>> mkdigest foo-digest ******
>producing foo-digest V1 #10
>        processing /var/lib/majordomo/digest/foo-digest/001
>sh: foo-digest-outgoing: command not found

-------------

I was having the same problem.

In the "digest" script, there is the section where the script sends the
mail command to the system to mail out the digest:


     $sender= $V{'ERRORS-TO'};
     $mailcmd= eval qq/"$mailer"/;
     system("$mailcmd $V{'REALLY-TO'} < $DIGEST");

For some reason, the 'eval' command is adding a newline character to the
end of the $mailcmd.  The result is when the script sends the mail command
to the system, the recipients are on a second line, and you get the error
message.

Why this is happening I have no idea.  Perhaps a bug, or change in Perl? 
The Perl experts will have to answer that one.  A fix is to add the
following line to remove the newline character:

     $mailcmd= substr($mailcmd,0,-1);

It goes in the following place:

     $sender= $V{'ERRORS-TO'};
     $mailcmd= eval qq/"$mailer"/;
     $mailcmd= substr($mailcmd,0,-1);
     system("$mailcmd $V{'REALLY-TO'} < $DIGEST");

This fixed the problem on my system.

Pete Norton
pete.norton@orenco.com
Orenco Systems, Inc.





Follow-Ups:
Indexed By Date Previous: Majordomo punting to avoid mail loop?
From: "Christopher A. Adams" <chris@sparkie.osl.state.or.us>
Next: adding functionality to BOUNCE messages
From: "Brian Jones" <Brian_Jones@notes.teradyne.com>
Indexed By Thread Previous: Majordomo punting to avoid mail loop?
From: "Christopher A. Adams" <chris@sparkie.osl.state.or.us>
Next: RE: digests not going out - A fix
From: Mats Dufberg <Mats.Dufberg@abc.se>

Google
 
Search Internet Search www.greatcircle.com