Two patches for gmime-3 build
The Merge Request contains two patches:
- Pan can now be build with both options: --with-gmime30 and --with-gmime-crypto
- Fix for a segfault in gmime-3 lib (Issue #77 (closed))
There is at least one more bug which causes a segfault in libgmime-3.0.
The following call is causing the segfault: https://gitlab.gnome.org/GNOME/pan/blob/master/pan/usenet-utils/mime-utils.cc#L1151 messages[i] = g_mime_parser_construct_message(parser, NULL);
From an example from the author of the GMime-Lib: https://github.com/jstedfast/gmime/blob/master/examples/imap-example.c
message = g_mime_parser_construct_message (parser, NULL);
It's ok to pass NULL for GMimeParserOptions. See also: https://developer.gnome.org/gmime/stable/GMimeParser.html#g-mime-parser-construct-message
I've tried to pass GMimeParserOptions with default settings and with modified settings, the segfault still occurs.
These fixes will affect only the gmime-3 build.