Improve CRLF filter.
* include/mailutils/filter.h (mu_filter_new_data_t): Change prototype. * mailbox/filter.c (mu_filter_create): Reflect the above. * mailbox/crlfflt.c (crlf_state): New enum. (_crlf_encoder): Keep state info in xd. Do not modify eventual input CRLFs. (alloc_state): New function. (_rfc822_filter,_crlf_filter): Provide the `newdata' method.
Showing
3 changed files
with
54 additions
and
14 deletions
-
Please register or sign in to post a comment