Great Circle Associates Majordomo-Users
(November 2000)
 

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

Subject: Re: Precedence in every email body
From: Dan Liston <dliston @ netscape . com>
Organization: iPlanet E-Commerce Solutions, A Sun Netscape Alliance
Date: Fri, 03 Nov 2000 14:55:27 -0600
To: Dave Heritage <dave @ onx . cc>
Cc: MajorDomo List <majordomo-users @ GreatCircle . COM>, John W Baxter <jwblist @ olympus . net>
References: <200011031741.LAA08439@mail.oknetx.com>

For everyone running majordomo from an rpm:

PLEASE modify your majordomo.cf to get rid of any executable
statement that may be part of the $whereami definition!

$whereami was never intended to be used that way.  It is
expecting a literal, static, host/domain name between double
quotes.  Not the output of executing a binary file.  When you
use a binary/executable in the variable that way, you have a
trailing new-line as part of the variable.  This new-line can
and does corrupt message headers.

If you must use the `/bin/hostname`, `/bin/dnsdomainname`, or
`/bin/hostname -f` as part of the definition of $whereami, 
you MUST chop/chomp the variable to strip the new-line off.
This can be done two (or more) ways;

wrap chomp around the definition,
chomp($whereami = `/bin/executable`);

or immediately after definition line add this line,
chomp $whereami;


Dan Liston



References:
Indexed By Date Previous: anybody can send to the list !!!
From: "Randy Johnson" <randy@mybizness.net>
Next: Re: From: field
From: Dan Liston <dliston@netscape.com>
Indexed By Thread Previous: RE: Precedence in every email body
From: "Dave Heritage" <dave@onx.cc>
Next: Re: Precedence in every email body
From: Dan Liston <dliston@netscape.com>

Google
 
Search Internet Search www.greatcircle.com