[Mailman-Developers] VERP code

Stonewall Ballard sb.list@sb.org
Fri Oct 18 20:26:03 2002


On 10/18/02 2:40 PM, "Edmund Lau" <edlau@ucf.ics.uci.edu> wrote:

> Back to mailman, I can use a "+" as a delimiter, but there needs to be a
> "-" right before it.  Is there a regex that would get that?  So the new
> VERP_FORMAT would be '%(bounces)s-+%(mailbox)s=%(host)s'.  I would assume
> this is better than just matching the last "-" anyway as, like you said, a
> user can have that character in their address.

That should work. Try this regexp:

'^(?P<bounces>.*?)-\+(?P<mailbox>[^=]+)=(?P<host>[^@]+)@.*$

 - Stoney