Commits


Switch from err.h to log.h


Reorder for logic reasons


More consistent messages


Add license header


Simplify code for selecting blacklists


Add -m flag, which only marks the mail as spam, but still passes it through


Add support for filtering datalines


missing newline


Implement an on disconnect. If the client disconnects before we resolve the blacklist, there's no need to await everything


Add support for smtp-in link-disconnect reports


Make the interface more to what a programmer would expect. Kill some useless code in the process


Add timeout support on dns queries.


Only allow a host if it is HOST_NOT_FOUND


Apparently _IOLBF doesn't always flush on lines. Force with fflush(3). Also, we support multiple requests at a time, remove fake non-support


Remove RB trees, since we probably let the client implement their timeouts


Unneeded brackets


Convert time_t to struct timespec, since reports use it


Add async support for dns lookups, so we don't block other connections


Add debugging flags


usage is __dead


remove onfailure and retries. Proper mailers should retry later.


Temporarily remove unimplemented functions. Makes it easier to plough through.


Add prototypes for RB-tree so we can handle multiple requests


Add some missing filter event prototypes and some initial plumbing for async events


New level of tweaking