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?
martijn@
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);