Great Circle Associates Majordomo-Users
(May 1995)
 

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

Subject: Re: Perl 5.001e and Majordomo 1.93
From: dwolfe @ risc . sps . mot . com (Dave Wolfe)
Date: Mon, 8 May 1995 14:48:29 -0500 (CDT)
To: uunet!kingcrab.nrl.navy.mil!will (Michael Will)
Cc: majordomo-users @ greatcircle . com (Majordomo user's mailing list)
In-reply-to: <v02110119abd3f0ea6ce8@[132.250.32.90]> from "Michael Will" at May 8, 95 12:06:47 pm
Reply-to: David Wolfe <david_wolfe @ risc . sps . mot . com>

[ Michael Will writes: ]
> I have installed Majordomo 1.93 and Perl 5.001e.  I edited the files resend
> and majordomo for instances of "@" and replaced them with "\@".
> 
> However I had to also edit the majordomo.cf for two instances of the "@".
> Is this normal?

Since majordomo.cf is eval'ed as Perl code, yes, it's correct. Note that
the list config files are *not* eval'ed, however, so they don't require
escapes for such characters. Also worthy of note is that Perl 5 interprets
'@' in "quotish" strings, which includes more than mere quoted strings:
most regular expressions, most "here" documents, and alternate quotes
are also interpolated. Note that array variables that begin with '@'
should *not* be escaped. Some examples:

    @array = ()		no escape (array variable)
    "user\@domain"	escape the @ (quoted string)
    q(user\@domain)	escape the @ (alternate quotes)
    'user@domain'	no escape (no interpolation w/in '')
    /\@/		escape the @ (quotish regexp)
    m:\@:		escape the @ (quotish regexp)
    m'@'		no escape (no interpolation w/in m'')
    s/\@/#/		escape the @ (quotish regexp)
    s|#|\@|		escape the @ (quotish regexp)
    s'@'#'		no escape (no interpolation w/in s''')
    print <<END		escape all @s (quotish here document)
	$owner\@$whereami
	END
    print <<"END"	escape all @s (quotish here document)
	$owner\@$whereami
	END
    print <<'END'	no escape (no interpolation for this here document)
	$owner@$whereami	($owner and $whereami aren't interpolated)
	END

> Also should you also edit the approve, bounce and medit as well.

Everything that will be interpolated by Perl 5. That includes the
required (included) files such as majordomo.pl, config_parse.pl,
shlock.pl, and majordomo_version.pl.

> One other question:  We added an aliase of the host machine (where majoromo
> resides) after installing majordomo.  Do I have to re-make wrapper in order
> for it to pick up on the new aliase that I want used?

What are you wanting wrapper to pick up? It couldn't care less about the
host name. However you do have the $whereami variable in majordomo.cf
and resend_host in the list config files. If you're talking about a
sendmail alias then just run newaliases to make it known to sendmail.

-- 
 Dave Wolfe    *Not a spokesman for Motorola*  (512) 891-3246
 Motorola MMTG  6501 Wm. Cannon Dr. W. OE112  Austin  TX  78735-8598


References:
Indexed By Date Previous: Wrong response from request-answer
From: Jim Egan <egan@aps.org>
Next: Re: Wrong response from request-answer
From: Dave Barr <barr@math.psu.edu>
Indexed By Thread Previous: Perl 5.001e and Majordomo 1.93
From: will@kingcrab.nrl.navy.mil (Michael Will)
Next: Re: Perl 5.001e and Majordomo 1.93
From: dwolfe@risc.sps.mot.com (Dave Wolfe)

Google
 
Search Internet Search www.greatcircle.com