29 août 2019 07:02 "Martijn van Duren" <[email protected]> a 
écrit:

> Since we don't support any smtp-out events at time of writing, so we
> might as well throw an error if people try to register one. This way
> people won't be surprised if the registration succeeds, but no event
> ever arrives.
> 
> OK?
> 

no warning for unused smtp_out ?

ok with ifdef-ing out smtp-out for now, i can bring it back.

for the record, smtp-out has been implemented and I have it running on my
machines but it requires a rework of the filter session registration (not
visible to users) which I'm not comfortable to do before 6.6.


> Index: lka_report.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/smtpd/lka_report.c,v
> retrieving revision 1.26
> diff -u -p -r1.26 lka_report.c
> --- lka_report.c 28 Aug 2019 15:50:36 -0000 1.26
> +++ lka_report.c 29 Aug 2019 05:01:21 -0000
> @@ -107,10 +107,13 @@ lka_report_register_hook(const char *nam
> subsystem = &smtp_in;
> hook += 8;
> }
> +#if 0
> + /* No smtp-out event has been implemented yet */
> else if (strncmp(hook, "smtp-out|", 9) == 0) {
> subsystem = &smtp_out;
> hook += 9;
> }
> +#endif
> else
> fatalx("Invalid message direction: %s", hook);

Reply via email to