summaryrefslogtreecommitdiff
path: root/src/mailman/bin/onebounce.py
diff options
context:
space:
mode:
authorBarry Warsaw2015-05-03 16:56:22 -0400
committerBarry Warsaw2015-05-03 16:56:22 -0400
commita80595acf011b48e5b62410342e67a27deb18e71 (patch)
tree83bcef61270b0cfd363468d8c98a7a17c5d0accc /src/mailman/bin/onebounce.py
parent509d47e31847868818cc234a169b3c3f159848eb (diff)
downloadmailman-a80595acf011b48e5b62410342e67a27deb18e71.tar.gz
mailman-a80595acf011b48e5b62410342e67a27deb18e71.tar.zst
mailman-a80595acf011b48e5b62410342e67a27deb18e71.zip
Diffstat (limited to 'src/mailman/bin/onebounce.py')
-rw-r--r--src/mailman/bin/onebounce.py71
1 files changed, 0 insertions, 71 deletions
diff --git a/src/mailman/bin/onebounce.py b/src/mailman/bin/onebounce.py
deleted file mode 100644
index 9130b5c44..000000000
--- a/src/mailman/bin/onebounce.py
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright (C) 2002-2015 by the Free Software Foundation, Inc.
-#
-# This file is part of GNU Mailman.
-#
-# GNU Mailman is free software: you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free
-# Software Foundation, either version 3 of the License, or (at your option)
-# any later version.
-#
-# GNU Mailman is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
-# more details.
-#
-# You should have received a copy of the GNU General Public License along with
-# GNU Mailman. If not, see <http://www.gnu.org/licenses/>.
-
-"""Test bounce detection on message files."""
-
-
-__all__ = [
- 'main',
- ]
-
-
-import sys
-
-from mailman.core.i18n import _
-from mailman.options import Options
-
-
-
-class ScriptOptions(Options):
- """Options for onebounce."""
-
- usage = _("""\
-%prog [options]
-
-Test the bounce detection for message files.""")
-
- def add_options(self):
- """See `Options`."""
- self.parser.add_option(
- '-a', '--all',
- default=False, action='store_true',
- help=_("""\
-Run the message through all the registered bounce modules. Normally this
-script stops at the first match."""))
- self.parser.add_option(
- '-m', '--module',
- type='string', help=_("""
-Run the message through just the named bounce module."""))
- self.parser.add_option(
- '-l', '--list',
- default=False, action='store_true',
- help=_('List all available bounce modules and exit.'))
- self.parser.add_option(
- '-v', '--verbose',
- default=False, action='store_true',
- help=_('Increase verbosity.'))
-
-
-
-def main():
- """bin/onebounce"""
- options = ScriptOptions()
- options.initialize()
-
- if options.options.list:
- print('list of available bounce modules.')
- sys.exit(0)