Thank you Mark.  I'll give it a try.

Yves


You need something like

import re
from Mailman import Utils
from Mailman.Message import UserNotification
NTEXT = """The text of
the
notification.
"""
NRECIP = 'recipi...@example.com'
NFROM = 'sen...@example.com'
NSUBJ = 'Notification subject'

def process(mlist, msg, msgdata):
     subject = Utils.oneline(msg['subject'], 'us-ascii')
     if re.search('.*rror.*', subject, re.IGNORECASE)
         nmsg = UserNotification(NRECIP, NFROM, NSUBJ, NTEXT)
         nmsg.send(mlist)



------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
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/archive%40jab.org

Reply via email to