Subj : PCRE in Synchronet? To : Digital Man From : Angus Mcleod Date : Fri Dec 17 2004 10:11 pm Re: PCRE in Synchronet? By: Digital Man to Angus Mcleod on Fri Dec 17 2004 17:02:00 > > There's always PCRE (http://sourceforge.net/projects/pcre/) for which > > there is a windows port (http://gnuwin32.sourceforge.net/packages/pcre.ht > > but who knows how well it works? > > It probably "works" fine, but it's rather large. That too.... > > I was hoping that a suitable library had already been included in the SBB > > code-base. I don't much fancy sticking an entire library in there to do > > silly proggy or two! > > What exactly did you want to do? I'd only got a vague idea on improving the filtering in various ways: * Read the entire twit-list once before starting on the packet, and build a structure in-memory, rather than re-reading the file repeatedly for each message. * Support some sort of network-specific or host-specific lists like say maybe twitlist.vert.cfg for filters applicable to a specific host and/or twitlist.dove-net.cfg to filter by specific network. Default twitlist.cfg to apply to all packets. * Expand syntax to make filters more useful. I'm thinking allow the field(s) to be matched to be specified, and the action to be taken to be specified as well. Currently, a name is checked against From: and To: and if matched it's dropped: Drop: From= To= Newborn But also allow (say): Drop: Subject= Body= NetJuke and perhaps: Moveto RELIGION: Subj= Law and Evo0ltion And so forth. As you can see, poorly considered at present, and no doubt worth considerable more thought, but it would obviously be valuable to be able to use RE's in matching. --- þ Synchronet þ Great programs on the Synchronet Channel at The ANJO BBS .