* dAniel hAhler <[EMAIL PROTECTED]> writes:
> ----->8 template for "Forward to" filter action 8<-------------
[...]
> %PY("
> from string import replace
> from re import sub
^^^^^^^^^^^^^^^^^^
a) import re
> text = tb.macro(r'%%TEXT')
> text = replace(text, '\nDelivered-To: GMX delivery to xxxxxxxxxxxxxxx)', '')
> text = re.sub('[EMAIL PROTECTED]', '<protected>', text)
^^^ or b) �text = sub(...�
> print text
> ")%-
> ----->8--------------------------------------------------------
I get an error with your code. But it works with either
modification a) or b).
Carsten
--
________________________________________________________
http://www.silverstones.com/thebat/TBUDLInfo.html