Hi,
it seems the X-Amavis-Alert header not always use the same formatting
rule. I most cases, it looks like this : *ALERT TYPE, description*
However, the 'BAD HEADER SECTION' case doesn't always include the ','.
Here is a patch (2.8.0 version) that fix this little mistake (because I
think it is a mistake but maybe I'm wrong).
--
Antoine Nguyen
Modoboa developer
http://modoboa.org/
--- amavisd-new-2.8.0/amavisd 2012-06-30 15:43:31.000000000 +0200
+++ amavisd-new-2.8.0-perso/amavisd 2012-09-14 21:01:37.884805747 +0200
@@ -15422,7 +15422,7 @@
}
if ($msginfo->is_in_contents_category(CC_BADH)) {
$hdr_edits->add_header('X-Amavis-Alert',
- 'BAD HEADER SECTION '.$bad_headers[0]);
+ 'BAD HEADER SECTION, '.$bad_headers[0]);
}
}