[rt-users] escaping @ in email addresses in RT_SiteConfig.pm -- todo or not to do?

Hasan Muhammad hmuhammad722 at yahoo.com
Mon Jan 30 13:56:28 EST 2006



--- "Schultz, Eric" <ESchultz at corp.untd.com> wrote:

> You ran into a Perlism :-)  Single quotes don't interpolate the special
> character '@' - double quotes do.  Which is why you have to escape it
> with double quotes. 
> 
> > -----Original Message-----
> > From: rt-users-bounces at lists.bestpractical.com 
> > [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf 
> > Of Hasan Muhammad
> > Sent: Monday, January 30, 2006 10:48 AM
> > To: rt-users at lists.bestpractical.com
> > Subject: [rt-users] escaping @ in email addresses in 
> > RT_SiteConfig.pm -- todo or not to do?
> > 
> > --when this address is set as...
> >   Set($OwnerEmail, "admin at test-network.us");
> > ...it results in this error...
> >   Possible unintended interpolation of @test in string at 
> > /etc/rt/RT_SiteConfig.pm line 34.
> > ...when the database is created (or dropped)
> > 
> > --when the @ is escaped as...
> >   Set($OwnerEmail, "admin\@test-network.us");
> > ...no error (message) occurs
> > 
> > --however, no error message occurs with the other email address...
> >   Set($CorrespondAddress, 'correspond at rt.test-network.us');
> >   Set($CommentAddress, 'comment at rt.test-network.us');
> > ...whether they are escaped or not
> > 
> > --what is the correct method for specifying email addresses, 
> > with or without the escape?
> > 
> > Hasan
> > 
> > 
> > CentOS 4.2server
> > rt-3.4.5-1
> > 
> > ==============================================================
> > =============================
> > --Setup on Centos 4.2 Server per...
> >   http://wiki.bestpractical.com/index.cgi?RPMInstall
> > ...using (see INSTALLATION PROCEDURE below)...
> >   yum install perl-DBD-Pg rt rt-mail-dispatcher mysql-server lynx
> > 
> > --then after making local configuration changes (see FILE 
> > CHANGES and INSTALLATION PROCEUDURE
> > below)...
> >   /usr/sbin/rt-setup-database --action init --dba root 
> > --dba-password contribs.org
> > ...results in error message...
> >   Possible unintended interpolation of @test in string at 
> > /etc/rt/RT_SiteConfig.pm line 34.
> > 
> > --FILE CHANGES: MADE AFTER BASE CENTOS 4.2 SERVER INSTALL...
> > 
> >  --- /etc/rt/RT_SiteConfig.pm.orig       2006-01-12 
> > 23:04:30.000000000 -0500
> >  +++ /etc/rt/RT_SiteConfig.pm    2006-01-19 23:39:33.000000000 -0500
> > 
> >  -Set( $rtname, 'example.com');
> >  +Set($rtname, "test_network_us");
> > 
> >  +Set($Organization , "rt.test-network.us");
> >  +Set($Timezone, 'US/Eastern');
> >  +Set($WebBaseURL, "http://rt.test-network.us");
> >  +Set($WebPath, "/");
> >  +Set($WebURL , $WebBaseURL . $WebPath . "/");
> >  +
> >  +Set($CorrespondAddress, 'correspond at rt.test-network.us');
> >  +Set($CommentAddress, 'comment at rt.test-network.us');
> >  +Set($SendmailPath, "/usr/sbin/sendmail");
> >  +Set($SendmailArguments , "-oi -t");
> >  +
> >  +Set($LogToSyslog, '');
> >  +Set($LogToFile, 'debug');
> >  +Set($LogDir, '/var/log/rt');
> >  +Set($LogToFileNamed , "rt.log");
> >  +
> >  +Set($OwnerEmail, "admin at test-network.us");
> >  +Set($MyTicketsLength, 20);
> >  +
> >  +Set($DatabasePassword , 'contribs.org');
> >  +
> >  +Set($AmbiguousDayInPast , 0);
> >  +
> >  
> >   1;
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the rt-users mailing list