From e3b16b3856bdd5c1645f4609d61bf5a16c026930 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 02:39:23 +0200 Subject: Adding upstream version 2.19.5+deb10u1. Signed-off-by: Daniel Baumann --- examples/bts_autosubscription.procmail | 32 +++++++++++ examples/debian.procmail | 100 +++++++++++++++++++++++++++++++++ examples/forward.exim | 6 ++ examples/forward.procmail | 1 + examples/master.procmail | 90 +++++++++++++++++++++++++++++ 5 files changed, 229 insertions(+) create mode 100644 examples/bts_autosubscription.procmail create mode 100644 examples/debian.procmail create mode 100644 examples/forward.exim create mode 100644 examples/forward.procmail create mode 100644 examples/master.procmail (limited to 'examples') diff --git a/examples/bts_autosubscription.procmail b/examples/bts_autosubscription.procmail new file mode 100644 index 0000000..635f047 --- /dev/null +++ b/examples/bts_autosubscription.procmail @@ -0,0 +1,32 @@ +# This handles initial submissions ("Thank you for the problem +# report...") and also followups ("Thank you for the additional +# information..."). +:0 +* ^To: Justin Pryzby $ +* ^From: owner@bugs\.debian\.org \(Debian Bug Tracking System\)$ +* ^Subject: Bug#\/[0-9]* +|echo |mail "$MATCH-subscribe@bugs.debian.org" + +# This handles bug reports on which I've had an effect via the control +# bot. The 'To:' condition is necessary, otherwise I'd occasionally +# be subscribed to a massive number of bugs when Don reassigns from +# debbugs to bugs.d.o, or Eric from mozilla-firefox to firefox, and +# I'm already subscribed to those packages anyway.. +:0 +* ^To: Justin Pryzby $ +* ^From: owner@bugs\.debian\.org \(Debian Bug Tracking System\)$ +* ^Subject: Processed: +|grep -Eo '^Bug#[0-9]+:' |sed -e 's/^Bug#//' -e 's/:$/-subscribe@bugs.debian.org/ ' |tr '\n' ',' |sed -e 's/^/To: /' -e 's/,$/\n/' |sendmail -t + +:0 +* ^From: [0-9]+-subhelp@bugs\.debian\.org$ +* ^Subject: Please confirm subscription to [0-9]+@bugs.debian.org +* ^Reply-To: \/.*@bugs\.debian\.org$ +|echo |mail "$MATCH" + +:0 +* ^From: [0-9]+-subhelp@bugs\.debian\.org$ +* ^Subject: Subscription to [0-9]+@bugs.debian.org successful$ +Mail/bug_subscription_success + +# vim:ft=procmail:ts diff --git a/examples/debian.procmail b/examples/debian.procmail new file mode 100644 index 0000000..51455f5 --- /dev/null +++ b/examples/debian.procmail @@ -0,0 +1,100 @@ +# debian.procmail - Debian mailing list sorting procmail file. +# Copyright (C) 1999 Edward Betts +# +# 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, see . +# +# On Debian GNU/Linux systems, the complete text of the GNU General +# Public License can be found in `/usr/share/common-licenses/GPL'. + +# Instructions + +# To use this file either copy it to ~/.procmailrc or use INCLUDERC to load it. +# Read the procmail, procmailrc, procmailex and procmailsc for more +# information. + +# Configuration + +# This files assumes that you are using standard mailbox file format to save +# your mail. You may change the directories that these variables point to, but +# the directories exist for this rcfile to function correctly. + +#MAILDIR=~/Mail # Uncomment if in needed +DEBIAN=debian # Directory for debian mailing lists +DC_INSTALLER=$DEBIAN/installer # New Debian Packages directory +DC_DIR=$DEBIAN/changes-other # Directory for debian-changes +DDC_DIR=$DEBIAN/devel-changes-other # Directory for debian-devel-changes + +# These variables are used to control the sorting of the debian-changes and +# debian-devel-changes list. It is likely that you will want to change them. + +ARCHS=alpha|arm|m68k|powerpc|sparc # Archs that do not interest me +PACKAGES=colortail|esh|vh|x2vnc|sniffit # Packages on other archs of interest + +# The Debian changes and Debian development changes mailing lists are special +# cases. Architectures that are not of any real interest, specified using the +# $ARCHS variable are separated out into mailboxes named after the +# architectures. They are stored in the directory specified by $DC_DIR for the +# Debian changes mailing lists and $DDC_DIR for the Debian development changes +# mailing lists. +# +# However the uploads and installs of some packages on all architectures may +# be of interest. These packages can be specified using the $PACKAGES +# variable. I use it for the packages I maintain so I can see when they have +# been built on other architectures. +# +# Note: See the master.procmail script if you are short of bandwidth and do +# not want these messages to even reach your machine. If master.procmail is in +# use the recipes should never be true, unless the $PACKAGES and $ARCHS +# variables are different on master than locally. + +:0 +* ^X-Mailing-List: +* $^Subject: Accepted .+ \(($ARCHS )*($ARCHS)\) to .+ +* !$^Subject: Accepted ($PACKAGES) .+ +* ^Subject: Accepted .+ \(\/[-a-zA-Z0-9]+ +$DC_DIR/$MATCH + +:0 +* ^X-Mailing-List: +* $^Subject: Accepted .+ \(($ARCHS )*($ARCHS)\) to .+ +* !$^Subject: Accepted ($PACKAGES) .+ +* ^Subject: Accepted .+ \(\/[-a-zA-Z0-9]+ +$DDC_DIR/$MATCH + +# Sort debian mailing lists into mailboxes under $DEBIANDIR. This dynamic +# style means when subscribing to new Debian mailing lists no changes need be +# made to this file. Even as yet none existent mailing lists are catered for. + +:0: +* ^X-Mailing-List: +* ^X-Mailing-List: +# +# 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, see . +# +# 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 environment 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 +# +# 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 + +# 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 basically 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: +* $^Subject: Accepted .+ \(($ARCHS )*($ARCHS)\) to .+ +* !$^Subject: Accepted ($PACKAGES) .+ +/dev/null + +# Every thing else goes to the forward address. + +:0 +* !^FROM_DAEMON +* !^X-Loop: $FORWARD +| formail -A"X-Loop: $FORWARD" | $SENDMAIL -oi $FORWARD + +# vim:ft=procmail -- cgit v1.2.3