Subject gets blank

Dhawal Doshy dhawal at NETMAGICSOLUTIONS.COM
Tue Mar 15 19:22:09 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. ]

It worked, not only was the subject fine this time it also managed to
trim the other 3 extra subjects that I had added. In any case i'll be
extensively testing this release for my env..

Thanks a lot..

- dhawal

Julian Field wrote:
> 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 Doshy wrote:
>
>> oops.. forgot to mention postfix 2.1.5, and as for the subject: headers
>>  i don't see any headers related to subject at all..
>>
>> i am unable to confirm currently if the original message contained
>> multiple subject headers, i'll check (or simulate) and confirm..
>>
>> btw 'Debug SpamAssassin = yes' gives me 'mail 1 has no subject' in razor
>> check and also returns 'MISSING_SUBJECT' in the SA tests.
>>
>> - dhawal
>>
>> Julian Field wrote:
>>
>>> What MTA are you running? Are all the subject: headers gone, or only
>>> some?
>>>
>>> Dhawal Doshy wrote:
>>>
>>>> Julian,
>>>>
>>>> A new test setup is deleting the 'Subject:' header completely from
>>>> mails..
>>>>
>>>> I am running the following:
>>>> MS 4.40.5
>>>> SA 3.0.2
>>>> CentOS 4.0
>>>> razor / pyzor /dcc
>>>>
>>>> Where do i start troubleshooting?
>>>>
>>>> Debug = yes, gives the following
>>>> Starting MailScanner...
>>>> In Debugging mode, not forking...
>>>> SA bayes lock is /var/spool/MailScanner/spamassassin/bayes.lock
>>>> Bayes lock is at /var/spool/MailScanner/spamassassin/bayes.lock
>>>> Stopping now as you are debugging me.
>>>>
>>>> Debug SpamAssassin = yes, gives what would have happened if i ran
>>>> spamassassin -D ... < message
>>>>
>>>> - dhawal

------------------------ 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