[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amavis-user
Subject:    Re: [AMaViS-user] How to print running configuration?
From:       Martin Orr <amavis () martinorr ! name>
Date:       2007-04-26 16:02:56
Message-ID: 4630CD30.50500 () martinorr ! name
[Download RAW message or body]

On 26/04/07 16:16, Michael Storz wrote:
> On Thu, 26 Apr 2007, Mauro G. Todeschini wrote:
> 
>> Thanks, I tryed but got this error:
>>
>> test-ux:~# (echo 'package Amavis::Conf; use Data::Dumper;
>> $Data::Dumper::Deepcopy = $Data::Dumper::Terse = 1; read_config();
>> foreach(keys(%EXPORT_TAGS)) {print "   $_:\n";
>> foreach(@{$EXPORT_TAGS{$_}}) {print "$_ = "; s/^([%@])/\\$1/; print
>> Dumper(eval $_)}} exit;'; cat /usr/sbin/amavisd-new) | perl
>>
>> No entry "warnvirussender" in policy bank "" at - line 379
>>         Amavis::Conf::c('warnvirussender') called at - line 1302
>>         Amavis::Conf::read_config() called at - line 1
> 
> I had to double the \ when I run the command from the shell:
> 
>    s/^([%@])/\\\\$1/;

This shouldn't be necessary, because it is enclosed in single quotes.

-- 
Martin Orr

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic