procmail
[Top] [All Lists]

Re: [Esd-l] ANN: Sanitizer 1.133 released

2002-01-05 20:32:32
On Sat, 5 Jan 2002, Brett Glass wrote:

Now truncate stripped and poisoned filespecs at space to allow for comments
in the poisoned- and stripped-filenames lists - if you are poisoning or
stripping filespecs containing spaces, MAKE SURE you use \s instead of a
literal space!

Will "\ " work?

No, the parser isn't that sophisticated. It does "s/\s.*$//"

Also, which Perl metacharacters (e.g. \w) work?

., * and ? don't work - they have been remapped from RE semantics to
file glob semantics because of the context they're being used in:

        . -> \.  (a literal period)
        * -> .*  (zero or more of anything)
        ? -> .   (any character)

Apart from that, everything else *should* work because it's not being
altered; however I haven't tried much that's very complicated apart
from the (?...) examples that are in the recommended poison list.

Oh, and do backreferences work?

I haven't tried them. Can you give me a useful example of a
backreference in a filespec?

--
 John Hardin KA7OHZ    ICQ#15735746    http://www.impsec.org/~jhardin/
 jhardin(_at_)impsec(_dot_)org                       pgpk -a 
jhardin(_at_)wolfenet(_dot_)com
  768: 0x41EA94F5 - A3 0C 5B C2 EF 0D 2C E5  E9 BF C8 33 A7 A9 CE 76 
 1024: 0xB8732E79 - 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  Monty Python's Star Trek Voyager:
  A successful trans-warp experiment turns Paris and Janeway into
  newts, but they get better.
  ...wait a minute... It's already been done...
-----------------------------------------------------------------------
   14 days until Babylon 5: the Legend of the Rangers

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>