Package: spamc Version: 3.4.0-6 When set up to talk to a remote host via TCP/IP with TLS (--ssl option) spamc invariably fails with errorcode 74 (EX_IOERR) if invoked with --learntype. Normal use without --learntype works correctly. I have traced it down to the fact that --learntype is processed by the message_tell function (instead of message_filter which is used in normal operation).
It looks like message_tell has been left behind compared to message_filter: among others it does not handle retries, zlib compression and multiple servers. Patching it to align it to message_filter solves the issue and --learntype works correctly. In the old code of message_tell there is also an unsafe call to sprintf instead of snprintf. A working patch is attached.
spamc-learn.patch.gz
Description: Binary data