Rationale: GMime 2.6 functions like g_mime_header_iter_get_value() returned the unfolded, RFC 2047 encoded value. GMime 3 has only functions for reading the raw, folded (g_mime_header_get_raw_value) or the completely processed (unfolded, decoded) value (g_mime_header_get_value). Using the g_mime_utils_header_value_unfold() function, applied to the raw value, it is easier to migrate old GMime 2.6 code which needs the unfolded, but still encoded headers to GMime 3.
The patch simply shifts the function unfold() from gmime/gmime-header.c to gmime/gmime-utils.c and renames it to g_mime_utils_header_value_unfold().
Rationale: GMime 2.6 functions like g_mime_header_iter_get_value() returned the unfolded, RFC 2047 encoded value. GMime 3 has only functions for reading the raw, folded (g_mime_header_get_raw_value) or the completely processed (unfolded, decoded) value (g_mime_header_get_value). Using the g_mime_utils_header_value_unfold() function, applied to the raw value, it is easier to migrate old GMime 2.6 code which needs the unfolded, but still encoded headers to GMime 3.
The patch simply shifts the function unfold() from gmime/gmime-header.c to gmime/gmime-utils.c and renames it to g_mime_utils_header_value_unfold().