This patch allows bogofilter to process multiple
messages in -p mode. I haven't tested it in -u mode,
but since it goes through all the DB access routines
for each message, it should work. It's a quick hack,
and I haven't thought any implications so use at your
own risk. The patch makes two changes:
bogofilter() takes a boolean pointer to return the
continuation bool from collect_words, and main wraps
everything after initialization in a do while loop.
lexer.l provides a reset function that clears out the
textblock list is maintains to output the original
message. The prevents the messages from piling up and
being output multiple times.
The patch is against bogofilter-0_9_1 checked out of CVS.