mhn: optimize using new API.
* mh/mhn.c (_get_hdr_value): Remove. All callers modified to use mu_header_aget_value_unfold instead. (mhn_message_size): Type of 2nd arg is mu_off_t *. Use null stream & stream stats in realsize mode. (list_handler): Fix rounding of the message size. (copy_header): Use mu_header_sget* to avoid unnecessary memory allocations.
Showing
2 changed files
with
36 additions
and
47 deletions
-
Please register or sign in to post a comment