What is the code responsible for this message being output trying to 
communicate exactly?

my($msg) = "BANNED, message contains " . (@b==1 ? 'part' : 'parts') .
        ": " . join(", ", @b) . ($b_chopped ? ", ..." : "");
$msg =~ s/[ \t]{6,}/ ... /g;
$hdr_edits->add_header('X-Amavis-Alert', $msg);

I understand that this code is meant to alert users that a banned file was 
found in the email but every time I see this it ends up being simply "BANNED, 
message contains part". The logic in the string formation never amounts to 
anything beyond "part".

What is @b and $b_chopped supposed to contain? The names of the banned 
attachments?

-----Original Message-----
From: Sahil Tandon [mailto:[email protected]] 
Sent: Thursday, February 26, 2009 8:39 PM
To: [email protected]
Subject: Re: [AMaViS-user] Changing "BANNED, message contains part" banner

On Thu, 26 Feb 2009, Wendel, Ryan wrote:

> I was wondering where I can change the "BANNED, message contains part"
> banner to something more end-user friendly. What variable in what
> configuration file holds this banner?

You can edit the amavisd Perl executable.

-- 
Sahil Tandon <[email protected]>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
AMaViS-user mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
AMaViS-user mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to