#6 -p batch mode patch

closed-postponed
nobody
None
5
2002-12-08
2002-12-04
Mike Tillberg
No

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.

Discussion

  • Mike Tillberg
    Mike Tillberg
    2002-12-04

    Batch Mode patch

     
    Attachments
    • status: open --> pending
     
    • status: pending --> closed-postponed
     
  • Logged In: YES
    user_id=2788

    We're not adding this now, because formail's "split" capability (-s switch) can
    achieve the same. We might reconsider our position once more requests
    come in and we get a real advantage from adding this feature.