----- Original Message ----- From: "Ben Johansen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 11, 2003 9:41 PM Subject: [SAtalk] Bugzilla and New Function Request
> Ok, I am having trouble with the Bugzilla system. > I have tried to submit this but it won't take my account info. > And when I ask it to send me an email with my password, I get no email. > > Could someone that has submitted to bugzilla, please post this (see > original below) request to it. > <snip> > I need a function that will strip extraneous characters from a header > and return the results for comparison in a rule > > example: StripExtraneous(SUBJECT) > > Example header > Subject: T h_i.s i^s a*n E$x:a;m-p,l e > > Results of StripExtraneous function = ThisisanExample > > This would alleviate the need to enter all variations in the rules > I was thinking that it would be nice to have the facility to apply a perl substitution to the body and or the headers before the tests are done. So you could do header_substitute subject =~ s/[\*\^_$:.,]//g But in fact you never need to do that in your example header EXAMPLE subject =~ /t?h?i?s?i?s?a?n?e?x?a?m?p?l?e/i Is functionally equivalent Stuart Gall Systems Administrator ------------------------------------------------------------------------------------------------------------- Critical Error: REALITY.SYS Corrupted! Reboot universe? (y/n) [y]: ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk