Chris Green wrote at 2020-5-18 11:50 +0100:
> ...
>So in the particular case where I have a problem sbstrip is "[Ipswich
>Recycle]" and the Subject: is "[SPAM] [Ipswich Recycle] OFFER:
>Lawnmower (IP11)". The match isn't found, presumably because 'in' is
>greedy and sees "[SPAM] [Ipswich Recycle]"
Larry Martell wrote:
> On Mon, May 18, 2020 at 7:05 AM Chris Green wrote:
> >
> > I have a strange/minor problem in a Python program I use for mail
> > filtering.
> >
> > One of the ways it classifies messages is by searching for a specific
> > string in square brackets [] in the Subject:, the se
>
> Thanks for taking the trouble to look. It's a *bit* difficult to run
> in the debugger as the program is a filter triggered by incoming
> E-Mail messages. However I think I can fire stuff at it via stdin so
> I'll see what I can fathon out doing that.
>
Cheapo debug trick: When your filter st
Larry Martell wrote:
> On Mon, May 18, 2020 at 7:05 AM Chris Green wrote:
> >
> > I have a strange/minor problem in a Python program I use for mail
> > filtering.
> >
> > One of the ways it classifies messages is by searching for a specific
> > string in square brackets [] in the Subject:, the se
On Mon, May 18, 2020 at 7:05 AM Chris Green wrote:
>
> I have a strange/minor problem in a Python program I use for mail
> filtering.
>
> One of the ways it classifies messages is by searching for a specific
> string in square brackets [] in the Subject:, the section of code that
> does this is:-
I have a strange/minor problem in a Python program I use for mail
filtering.
One of the ways it classifies messages is by searching for a specific
string in square brackets [] in the Subject:, the section of code that
does this is:-
#
#
# copy the fields from the filter configuratio