[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#65256: devscripts: master.procmail example has no loop checking



I would like some help fixing this bug, please.  I have never used
procmail myself, but have inherited these filters in the devscripts
package.  There is a problem of mail loops, but I don't know how to
fix it.  Attached is the bug report and the current filter.  Any help
appreciated!

Bug report:

  The procmailrc file /usr/doc/devscripts/examples/master.procmail.gz,
  original version of which I presume is ~edward/.procmailrc on
  master.debian.org, has no loop checking at all.
  
  This normally wouldn't be an important problem if a mail error message (i.e.
  a bounce) with such a thing didn't cause Exim on the machine to go bezerk,
  enter a mail loop, and cause a load of 100 on the poor machine! And it
  already happened two times (or more, I'm not sure).
  
  Perhaps Exim should have been set up to handle such things more gracefully,
  but the script is still guilty for causing it. An addition to the script
  that would cause messages with X-Loop header and sent from a mailer daemon
  (Errors-To: header?) to be immediately saved to a local mailbox would, I
  guess, be enough to fix this.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
        Debian GNU/Linux Developer,  see http://www.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/
#   master.procmail - Debian mailing list sorting procmail file.
#   Copyright (C) 1999  Edward Betts <edward@debian.org>
#
#   This program 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 2 of the License, or
#   (at your option) any later version.
#
#   This program 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 this program; if not, write to the Free Software
#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# On Debian GNU/Linux systems, the complete text of the GNU General
# Public License can be found in `/usr/share/common-licenses/GPL'.

# Introduction

# This rcfile is aimed at developers with a small amount of bandwidth (people
# using modems to connect to the Internet). The mailing lists
# debian-devel-changes and debian-changes carry the details of package uploads
# for all of the different architectures, however, most developers are using
# one or at most two of these architectures, and are not interested in uploads
# for the others.
#
# The recipes below will erase announcements of package uploads to
# architectures that are not of much interest, before forwarding other
# messages to the forward address. Uploads that include source will be
# displayed, because I think they are interesting.

# Instructions

# 1. Subscribe to debian-devel-changes and/or debian-changes using your Debian
#    e-mail address so that mail goes to your account on master.
# 2. Change the enviroment variables below to specify the:
#      a) e-mail address that you want mail to be forwarded to
#      b) the architectures you are NOT interested in
#      c) the packages you are interested in
# 3. Upload the file to master. Rename it to ~/.procmailrc, or refer to it
#    from ~/.procmailrc using INCLUDERC
# 4. Create a ~/.qmail file with the line: `|/usr/bin/procmail'
#
# NOTE: there is a plan to move master to exim, when that happens rename your
#       ~/.qmail file to ~/.forward (or just keep both on master, like I do).
#
# That should be it, configured, try sending a mail to your debian.org address
# and see if it makes its way to the specified e-mail forwarding address.
#
# Read the procmail, procmailrc, procmailex and procmailsc for more
# information.
# Master mail filtering procmail file by Edward Betts <edward@debian.org>

# Configuration

# Forwarding address, the place to send all the mail that is not erased.
# PLEASE CHANGE THIS! I DO NOT WANT YOUR MAIL! I could set up some stuff with
# LOGNAME to check this, but it would reduce performance and I trust my fellow
# developers.
FORWARD=edward@hairnet.demon.co.uk

# The architectures that do NOT interest you. If you are an i386 man like me,
# then this setting should be fine, you will get i386 and hurd-i386 changes.
# If a new architectures is introduced (MIPS? ia64?) you will see uploads
# listed here until you add it to this line.
ARCHS=alpha|arm|powerpc|sparc|m68k

# Packages changes on other architectures of interest. This is basicly a list
# of the binary packages that I maintain. As far as I see it most developers
# will just want to change this to a list of packages that they maintain.
PACKAGES=colortail|esh|vh|x2vnc|sniffit	# Packages on other archs of interest

# Debian Development Changes mailing list is big. Archs that are not of
# interest to me are deleted.
#
# The only exception is packages that I would like to see when they are
# compiled on other Archs; I use this for my own binary packages.

:0:
* ^X-Mailing-List: <debian-devel-changes@lists.debian.org>
* $^Subject: (Upload|Install)ed .+ \(($ARCHS)\) to .+
* !$^Subject: (Upload|Install)ed ($PACKAGES) .+
/dev/null

# Messages from the Debian Installer that appear on debian-changes are deleted.
# Comment out, or erase the section below if you want to see them. Replace the
# .+ with \(($ARCHS)\) to erase only messages for architectures you are not
# intereseted in.

:0:
* ^X-Mailing-List: <debian-changes@lists.debian.org>
* ^Subject: New Debian .+ Packages
* ^From: Debian Installer <maor-installer@debian.org>
/dev/null

# Every thing else goes to the forward address.

:0
! $FORWARD

# vim:ft=procmail

Reply to: