1 Support clamav >= 0.101.0, based on changes introduced in:
3 https://github.com/Cisco-Talos/clamav-devel/commit/048a88e61558726bd9ba66ec3195b63d61d8a430
5 --- cyrus-imapd-3.0.8/imap/cyr_virusscan.c.orig 2018-08-10 04:59:00.000000000 +0200
6 +++ cyrus-imapd-3.0.8/imap/cyr_virusscan.c 2018-12-10 10:51:08.776406893 +0100
11 +#if LIBCLAMAV_MAJORVER < 9
12 r = cl_scanfile(fname, virname, NULL, st->av_engine,
15 + static struct cl_scan_options options;
17 + memset(&options, 0, sizeof(struct cl_scan_options));
18 + options.parse |= ~0; /* enable all parsers */
20 + r = cl_scanfile(fname, virname, NULL, st->av_engine, &options);
25 --- cyrus-imapd-3.0.8/Makefile.am.orig 2018-12-10 12:15:51.580494168 +0100
26 +++ cyrus-imapd-3.0.8/Makefile.am 2018-12-10 12:14:59.394460523 +0100
28 imap_cyr_sphinxmgr_LDADD = $(LD_UTILITY_ADD)
30 imap_cyr_virusscan_SOURCES = imap/cli_fatal.c imap/cyr_virusscan.c imap/mutex_fake.c
31 +imap_cyr_virusscan_CFLAGS = $(AM_CFLAGS) $(CLAMAV_CFLAGS) $(CFLAG_VISIBILITY)
32 imap_cyr_virusscan_LDADD = $(LD_UTILITY_ADD) $(CLAMAV_LIBS)
34 imap_ctl_zoneinfo_SOURCES = imap/cli_fatal.c imap/ctl_zoneinfo.c imap/mutex_fake.c imap/zoneinfo_db.c