postfix - problems with 'subject'
Dhawal Doshy
dhawal at NETMAGICSOLUTIONS.COM
Wed Mar 16 20:13:32 GMT 2005
[ The following text is in the "ISO-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
This was fixed yesterday by Julian..
Please apply this patch to /usr/lib/MailScanner/MailScanner/Postfix.pm:
-----SNIP-----
--- Postfix.pm.old 2005-03-12 20:15:18.000000000 +0000
+++ Postfix.pm 2005-03-15 18:58:57.631052633 +0000
@@ -621,7 +627,11 @@
$foundat = -1;
while ($pos < @{$message->{metadata}}) {
if ($message->{metadata}[$pos] =~ /^N$key/i) {
- ($foundat = $pos), next if $foundat == -1; # Skip 1st occurrence
+ if ($foundat == -1) { # Skip 1st occurrence
+ $foundat = $pos;
+ $pos++;
+ next;
+ }
# We have found the start of 1 occurrence of this header
splice @{$message->{metadata}}, $pos, 1;
# Delete continuation lines
-----SNIP-----
- dhawal
Craig White wrote:
> CentOS 4
> # rpm -q postfix
> postfix-2.1.5-2.3.RHEL4.1
> http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/rpm/MailScanner-4.40.5-1.rpm.tar.gz
>
> if I put in postfix/main.cf
>
> header_checks = regexp:/etc/postfix/header_checks
> and
> # tail -n 1 /etc/postfix/header_checks
> /^Received:/ HOLD
>
> it permits MailScanner to operate on incoming mails (moving them from
> 'hold' to 'incoming after checking)
>
> But what I lose is anything that is in the 'Subject' header and it's
> making me crazy
>
> I have set all
>
> Scanned Modify Subject = no # end
>
> Virus Modify Subject = no
>
> Filename Modify Subject = no
>
> Spam Modify Subject = no
>
> How do I get it to stop wiping out the subject in the header?
>
> Craig
>
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list