Re: [exim] Exim apparently not dealing with rogue messages w…

Top Page
Delete this message
Reply to this message
Author: Ian Eiloart
Date:  
To: Robert Bannocks, exim-users
Subject: Re: [exim] Exim apparently not dealing with rogue messages with longlines


--On 8 January 2007 14:30:46 +0000 Robert Bannocks <R.Bannocks@???>
wrote:

> I have the attached messages in an exim queue. They are being processed
> by a filter file and failing. They have very long subject lines in them
> the exim filter below is being invoked to filter these. I do not
> believe there is anything wrong with this. Clearly there is some loop
> here but still exim appears to bail out with the following error in the
> panic log:
>

… snip …
>
>
> Is this a known bug with a work around? Can it be fixed? Have I made a
> mistake somewhere.
>


I'd guess the workaround would be to use something like this:


if error_message then
        seen finish
else
        mail
        subject "Re: ${substr_0_20:$h_subject}"
        to $reply_address
…



A follow on question: can I further restrict this to use only the first
line of $h_subject? The code above yields errors when the incoming subject
contains more than one line. The resultant message has a subject line
followed by an illegal continuation line. Perhaps you could use something
like ${quote:$substr_0_20:$h_subject} - though that's untested, and
probably isn't exactly correct.

--
Ian Eiloart
IT Services, University of Sussex