folder.c: fix new message count; configure.ac: update autotools macros;sync with...