Re: [SAtalk] X-Spam-Status format

2002-06-30 Thread Vaclav Barta
Theo Van Dinter wrote: > > On Sat, Jun 29, 2002 at 10:35:33AM -0700, Bart Schaefer wrote: > > > # $head is a Mail::Header object, fyi. > > > my $SAstatus = $head->get("X-Spam-Status") || "No, tests=\n"; ... > I could do $head->unfold('X-Spam-Status'), but not $SAstatus->unfold() > ($SAsta

Re: [SAtalk] X-Spam-Status format

2002-06-29 Thread Theo Van Dinter
On Sat, Jun 29, 2002 at 10:35:33AM -0700, Bart Schaefer wrote: > > # $head is a Mail::Header object, fyi. > > my $SAstatus = $head->get("X-Spam-Status") || "No, tests=\n"; > > > > # Figure out if the message is considered spam or not > > $SAstatus =~ s/\n\t+\s+//g; # unfold long s

Re: [SAtalk] X-Spam-Status format

2002-06-29 Thread Bart Schaefer
On Sat, 29 Jun 2002, Theo Van Dinter wrote: > # $head is a Mail::Header object, fyi. > my $SAstatus = $head->get("X-Spam-Status") || "No, tests=\n"; > > # Figure out if the message is considered spam or not > $SAstatus =~ s/\n\t+\s+//g; # unfold long sections > $SAstatus =~ s

Re: [SAtalk] X-Spam-Status format

2002-06-29 Thread Theo Van Dinter
On Sat, Jun 29, 2002 at 11:12:41AM +0100, Vaclav Barta wrote: > I agree the new version looks nicer and easier to read, but is it > *meant* to be read? Personally, I want to parse it, and the whitespace > just gets in the way... I know it's *possible* to parse it, but I'm lazy > - is there some co