Fix bug #4746: matcher: remove incorrect condition in matcherprop_free In fact, Regex'es have been reenabled in Windows since 2015 (Andrej, 22a32c92603ba73754af64cd3b40de3d7c2f752a) after they've been disabled in 2013 (Colin, 7f27738df23b2098214d956e6b41149c1a158404); reenable everything of their handling in matcher.[ch].
fix several USE_AFTER_FREE coverity bugs CIDs 1491105, 1491164, 1491139, 1491166, 1491168, 1491169, 1491178, 1491232, 1491242, 1492281
Remove remaining references to dirent which has become unused now.
Include sys/socket.h unconditional in imap-thread.c The code uses socketpair, which according to socketpair(3p) needs this header. Move it into the existing conditional, because the calling function imap_threaded_connect_cmd is also wrapped in the same conditional. Currently the header is indirectly included via netdb.h. Signed-off-by: Olaf Hering <olaf@aepfle.de>
Remove wrong initialization from max_message_size A valid value can only ever be positive. It was introduced correctly with an unsigned type, but initialized incorrectly. Later the type was changed to signed, instead of removing the incorrect initialization. Restore the proper type, and remove the incorrect initial value. Signed-off-by: Olaf Hering <olaf@aepfle.de>
Handle more systems which lack support for the scanf m modifier The 'm' modifier for scanf is an extension to ISO C. It was mentioned in POSIX 1003.1 2008 (Issue 7). It is difficult to detect at compile time if a libc has implemented support for this modifier. Extend the existing list of systems which lack support for it with NetBSD and Dragonfly BSD. Signed-off-by: Olaf Hering <olaf@aepfle.de>