Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

"Config error at line" should also display the problematic line contents

2013-08-11 by Jim Klimov

If I have any typos in the configuration, milter-greylist aborts
startup and logs a message like this:

   config error at line 1427: syntax error
   end Sun Aug 11 06:20:38 MSK 2013: done.

I would like this error to also display the offending line itself,
in order to ease administrative debugging.

I've traced it to 448:conf_lex.l yyerror() routine, but this is
not mentioned anywhere else in the code. I am not familiar with
lex beyond monkey-cloning a few constructs recently to define new
config variables; so I'd like to propose this (probably simple)
RFE to someone who can implement it :)

Thanks,
//Jim

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.