~xav0989/ubuntu/vivid/mailman/ubuntu-logo

« back to all changes in this revision

Viewing changes to bin/withlist

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2008-04-24 19:30:49 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080424193049-jy5fa9tus40tjbmn
Tags: 1:2.1.10-2
Apply upstream patch to fix regression in cmd_subscribe
so that email subscribe to the -subscribe or -join address or the
-request address with a bare 'subscribe' command results in the message
being shunted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! @PYTHON@
2
2
#
3
 
# Copyright (C) 1998-2004 by the Free Software Foundation, Inc.
 
3
# Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
4
4
#
5
5
# This program is free software; you can redistribute it and/or
6
6
# modify it under the terms of the GNU General Public License
14
14
#
15
15
# You should have received a copy of the GNU General Public License
16
16
# along with this program; if not, write to the Free Software
17
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 
18
# USA.
18
19
 
19
20
"""General framework for interacting with a mailing list object.
20
21
 
254
255
    # try to import the module for the callable
255
256
    func = None
256
257
    if run:
257
 
        i = run.find('.')
 
258
        i = run.rfind('.')
258
259
        if i < 0:
259
260
            module = run
260
261
            callable = run
263
264
            callable = run[i+1:]
264
265
        if VERBOSE:
265
266
            print >> sys.stderr, _('Importing %(module)s...')
266
 
        mod = __import__(module)
 
267
        __import__(module)
 
268
        mod = sys.modules[module]
267
269
        if VERBOSE:
268
270
            print >> sys.stderr, _('Running %(module)s.%(callable)s()...')
269
271
        func = getattr(mod, callable)