From 643ebf16a85411e46481de986f2fe998e77f276f Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Sat, 19 Apr 2003 21:19:41 +0000 Subject: Remove all traces of -c / --change-msg. This is an anachronism that no longer seems appropriate. --- bin/add_members | 44 +------------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/bin/add_members b/bin/add_members index 92b3ca04a..1e50b9419 100755 --- a/bin/add_members +++ b/bin/add_members @@ -41,11 +41,6 @@ Options: -d file Similar to above, but these people become digest members. - --changes-msg= - -c - Set whether or not to send the list members the `there's going to be - big changes to your list' message. defaults to no. - --welcome-msg= -w Set whether or not to send the list members a welcome message, @@ -115,31 +110,6 @@ def readfile(filename): return lines - -def SendExplanation(mlist, users): - listname = mlist.real_name - listhost = mlist.host_name - d = {'listname' : listname, - 'listhost' : listhost, - 'listaddr' : mlist.GetListEmail(), - 'listinfo_url': mlist.GetScriptURL('listinfo', absolute=1), - 'requestaddr' : mlist.GetRequestEmail(), - 'adminaddr' : mlist.GetOwnerEmail(), - 'version' : mm_cfg.VERSION, - } - otrans = i18n.get_translation() - i18n.set_language(mlist.preferred_language) - try: - text = Utils.maketext('convert.txt', d) - subject = _('Big change in %(listname)s@%(listhost)s mailing list') - msg = Message.UserNotification(users, mlist.GetBouncesEmail(), - subject, text, - mlist.preferred_language) - finally: - i18n.set_translation(otrans) - msg.send(mlist) - - class Tee: def __init__(self, outfp): @@ -180,12 +150,11 @@ def addall(mlist, members, digest, ack, outfp): def main(): try: opts, args = getopt.getopt(sys.argv[1:], - 'a:n:r:d:c:w:h', + 'a:n:r:d:w:h', ['admin-notify=', 'regular-members-file=', 'non-digest-members-file=', 'digest-members-file=', - 'changes-msg=', 'welcome-msg=', 'help']) except getopt.error, msg: @@ -197,7 +166,6 @@ def main(): listname = args[0].lower().strip() nfile = None dfile = None - send_changes_msg = 0 send_welcome_msg = None admin_notif = None for opt, arg in opts: @@ -214,13 +182,6 @@ def main(): # I don't think we need to use the warnings module here. print >> sys.stderr, 'option', opt, \ 'is deprecated, use -r/--regular-members-file' - elif opt in ('-c', '--changes-msg'): - if arg.lower()[0] == 'y': - send_changes_msg = 1 - elif arg.lower()[0] == 'n': - send_changes_msg = 0 - else: - usage(1, _('Bad argument to -c/--changes-msg: %(arg)s')) elif opt in ('-w', '--welcome-msg'): if arg.lower()[0] == 'y': send_welcome_msg = 1 @@ -284,9 +245,6 @@ def main(): mlist.preferred_language) msg.send(mlist) - if send_changes_msg: - SendExplanation(mlist, nmembers + dmembers) - mlist.Save() finally: mlist.Unlock() -- cgit v1.3.1