regexp help

View: New views
3 Messages — Rating Filter:   Alert me  

regexp help

by Savoy, Jim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry to break the thread on this (my previous message didn't go
through, so I guess this

list is being moderated now).

 

Anyway, just wanted to say that I fixed my regexp problem. I am running
an older version

of Mailman, so tried this instead:

 

  \nfrom:.*unique.name

 

and it worked!

 

-          jim -

-          

------------------------------------------------------
Mailman-Users mailing list Mailman-Users@...
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: http://mail.python.org/mailman/options/mailman-users/lists%40nabble.com

Re: regexp help

by Savoy, Jim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>I wrote:

>Anyway, just wanted to say that I fixed my regexp problem. I am running
>an older version of Mailman, so tried this instead:

>  \nfrom:.*unique.name

>and it worked!


Looks like I spoke to soon. It actually did not work. I have also tried
\n.*unique.name and that failed as well (I assumed that would just
compare
to all of the headers, as I am not sure if "from" was the one I should
be
looking at). Any ideas? (I am running mailman 2.1.5 still).

 - jim -

 
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@...
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: http://mail.python.org/mailman/options/mailman-users/lists%40nabble.com

Parent Message unknown Re: regexp help

by Savoy, Jim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>Jim, try
from: .*@(?!.*uleth.ca)

The 'anything before the @ sign' is obvious, but the '?!.*' is to test
for possible machine names, in case they're there.

Nope. That failed. I added a "\n" to the front of this and that failed
as well. I didn't think I would have to make any accommodations for the
"machine names" though because I have given this account a very unique
name, so my goal here is just to accept the mail if that unique.name is
found in any header at all. This is why I was sure that:

\n.*unique.name

would be good enough. But it was not. I probably don't really understand
what this filter is looking for though...

 - jim -





------------------------------------------------------
Mailman-Users mailing list Mailman-Users@...
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: http://mail.python.org/mailman/options/mailman-users/lists%40nabble.com