[Exim] local_scan() addition: views sought

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: exim-users
Subject: [Exim] local_scan() addition: views sought
I'm adding some requested features to the local_scan() API. One of them
is the ability to specify a message as part of the 250 SMTP response
when local_scan() accepts a message. The current interface has only one
string that local_scan() passes back: for failures this string is
already used for the SMTP response, but for successes, it is used to set
$local_scan_data to pass on data with the message for use by routers and
transports.

I don't really want to change the function's API by adding another
string because this will make everybody's function stop working.

The returned string may not contain any newlines for the success case.
At the moment, newlines in the string are forced to become spaces. It
occurs to me that I could use newline as a separator in this string:

All characters before the first newline are saved in local_scan_data;
All characters after the first newline (including any more newlines)
become part of the 250 response.

This is still an incompatible change, but a smaller one.

Views?

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.