Great Circle Associates Majordomo-Users
(November 1998)
 

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

Subject: rh52 and majordomo problem
From: Mario Mikocevic <mozgy @ zagreb . hic . hr>
Date: Tue, 17 Nov 1998 15:55:01 +0100 (CET)
To: majordomo-users @ greatcircle . com

Hi,

distro is plain RedHat 5.2 and
majordomo is 1.94.4 from rufus.w3.org as rpm package.

It installed fine but won't run with that dreaded

unknown mailer error 9

Well,
I added some DEBUG info and found the culprit line,
it's majordomo file in while() loop ->


# Process the rest of the message as commands
while (<>) {
    $approved = 0;			# all requests start as un-approved
    $quietnonmember = 0;		# show non-member on unsubscribe
    while ( /\\\s*$/ ) {		# if the last non-whitespace
	&chop_nl($_);			 # character is  '\', chop the nl
	s/\\\s*$/ /;			 # replace \ with space char
	$_ .= scalar(<>);		 # append the next line
	}
    print REPLY ">>>> $_";		# echo the line we are processing
print STDERR "$0:  It looks like $_ !.\n" if $DEBUG; 
    $_ = &chop_nl($_);			# strip any trailing newline
print STDERR "$0:  It looks like $_ !.\n" if $DEBUG; 
    s/^\s*#.*//g;			# strip comments
print STDERR "$0:  It looks like $_ !.\n" if $DEBUG; 
    s/^\s*//g;				# strip leading whitespace

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
it cracks at that line, next line is NEVER executed !?!?

    s/\s*$//g;				# strip trailing whitespace
    s/\\ /\001/g;			# protected escaped whitepace	
    @parts = split(" ");		# split into component parts
print STDERR "$0:  did I got here twice ???.\n" if $DEBUG; 
    grep(s/\001/ /, @parts);		# replace protected whitespace with
					# whitespace
    $cmd = shift(@parts);		# isolate the command
    $cmd =~ tr/A-Z/a-z/;		# downcase the command
    if ($cmd eq "") { next; }		# skip blank lines
    # figure out what to do and do it
    # the "do_*" routines implement specific Majordomo commands.
    # they are all passed the same arguments: @parts.
    $count++;	# assume it's a valid command, so count it.
    if ($cmd eq "end") { print REPLY "END OF COMMANDS\n"; last; }

I just don't know what to do next !?!?

please help
-- 
Mario Mikocevic (Mozgy)
My favourite FUBAR ...


Follow-Ups:
Indexed By Date Previous: RE: Install Difficulty
From: William T Tucek <tucekw@psi.com>
Next: Re: Broken after all these months - crazy
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Indexed By Thread Previous: Re: I still can't get it right
From: Jeff Rose <jrose@elug.org>
Next: Re: rh52 and majordomo problem
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>

Google
 
Search Internet Search www.greatcircle.com