diff options
| author | bwarsaw | 2001-04-09 04:28:42 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-04-09 04:28:42 +0000 |
| commit | 9ad99881142e1a69d7881dedfa1959c44fb31ccd (patch) | |
| tree | 6a1e95821a3212fd3c65fed7e5a75a73162ba24f | |
| parent | 2c58f445f4df5de02202b4a5a5b20831cb20e7fd (diff) | |
| download | mailman-9ad99881142e1a69d7881dedfa1959c44fb31ccd.tar.gz mailman-9ad99881142e1a69d7881dedfa1959c44fb31ccd.tar.zst mailman-9ad99881142e1a69d7881dedfa1959c44fb31ccd.zip | |
SendExplanation(): Fixed the sending of notification to use the new
Message.UserNotification() class.
| -rwxr-xr-x | bin/add_members | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/bin/add_members b/bin/add_members index 8487546ff..830002590 100755 --- a/bin/add_members +++ b/bin/add_members @@ -1,6 +1,6 @@ #! /usr/bin/env python # -# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc. +# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -60,7 +60,6 @@ Where: You must supply at least one of -n and -d options. At most one of the files can be `-'. - """ import sys @@ -73,7 +72,6 @@ from Mailman import Utils from Mailman import Message from Mailman import Errors from Mailman import mm_cfg -from Mailman.Handlers import HandlerAPI from Mailman.i18n import _ @@ -113,10 +111,8 @@ def SendExplanation(mlist, users): } text = Utils.maketext('convert.txt', d) subject = _('Big change in %(listname)s@%(listhost)s mailing list') % d - msg = Message.OutgoingMessage(text) - msg['From'] = adminaddr - msg['Subject'] = subject - HandlerAPI.DeliverToUser(mlist, msg, {'recips': users}) + msg = Message.UserNotification(users, adminaddr, subject, text) + msg.send(mlist) |
