~ubuntu-branches/ubuntu/quantal/mailman/quantal

« back to all changes in this revision

Viewing changes to Mailman/Queue/Runner.py

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2008-08-11 16:06:19 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080811160619-ymr837d03w2qvnh9
Tags: 1:2.1.11-3
* Updated Catalan debconf translation, thanks David Planella Molas
  (Closes: #494110).
* Added patch 68_update_catalan to update Catalan program translation,
  thanks Jordi Mallach (Closes: #492297).
* Add a README.source file referring to quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
 
1
# Copyright (C) 1998-2008 by the Free Software Foundation, Inc.
2
2
#
3
3
# This program is free software; you can redistribute it and/or
4
4
# modify it under the terms of the GNU General Public License
103
103
                # but other problems can occur in message parsing, e.g.
104
104
                # ValueError, and exceptions can occur in unpickling too.
105
105
                # We don't want the runner to die, so we just log and skip
106
 
                # this entry, but preserve it for analysis.
 
106
                # this entry, but maybe preserve it for analysis.
107
107
                self._log(e)
108
 
                syslog('error',
109
 
                       'Skipping and preserving unparseable message: %s',
110
 
                       filebase)
111
 
                self._switchboard.finish(filebase, preserve=True)
 
108
                if mm_cfg.QRUNNER_SAVE_BAD_MESSAGES:
 
109
                    syslog('error',
 
110
                           'Skipping and preserving unparseable message: %s',
 
111
                           filebase)
 
112
                    preserve = True
 
113
                else:
 
114
                    syslog('error',
 
115
                           'Ignoring unparseable message: %s', filebase)
 
116
                    preserve = False
 
117
                self._switchboard.finish(filebase, preserve=preserve)
112
118
                continue
113
119
            try:
114
120
                self._onefile(msg, msgdata)