Commits


Fix couple off by 1s. Found and fix tested by Mikolaj Kucharski mikolaj <at> kucharski <dot> name


We don't need to link in libevent


Set {C,LD}FLAGS in Makefile here


Signature is with a capital S. Fixes google fuckup


Rename to filter-dkimsign


Add plumbing for ports


Remove revision, not as useful as I thought


Add revision tag to makefile


Add flags in description


Rename manpage to filter-dkim.8


Drag filter-dkim into the libopensmtpd world


Remove log.[ch] now that we have stderr logging


Add support for the z mail header. -z adds the mail headers used in the signature -Z adds all the mail headers


Add -x flag


Add support for the t header


Move signing component to own function for clearer reading


Delay smtp_filter_disconnect until commit phase to prevent unintentional shutdown


Fix accidental whitespace


Remove custom custom mkstemp/fdopen dance with tmpfile. Requires fattr, but can hopefully be removed in the future


Revert previous. Seems to be an issue with smtpd, not fully confirmed upstream


Remove trailing \r characters. These come in before filtering, but don't survive upon delivery


Fix line-counting by skipping over \r on the end of the line. Also fix wrong signature length check while here


Don't do event_pending check before trying to write. If we can flush multiple mails at once this can result in major contingency on the output buffer before we hit the output check


Canonicalize line before applying test rules to it This makes 100% from 12200 mails succeed


No need to add the \r the origf buffer