summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 09:36:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 09:36:25 +0000
commit6077d258b500b20e1e705f5cda567400240c7804 (patch)
treea5d41c050bd69f91476994b0d30c0a8f1e7957b5 /examples
parentInitial commit. (diff)
downloaddevscripts-upstream.tar.xz
devscripts-upstream.zip
Adding upstream version 2.21.3+deb11u1.upstream/2.21.3+deb11u1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--examples/bts_autosubscription.procmail32
-rw-r--r--examples/debian.procmail100
-rw-r--r--examples/forward.exim6
-rw-r--r--examples/forward.procmail1
-rw-r--r--examples/master.procmail90
5 files changed, 229 insertions, 0 deletions
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 <justinpryzby@users\.sourceforge\.net>$
+* ^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 <justinpryzby@users\.sourceforge\.net>$
+* ^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 <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, see <https://www.gnu.org/licenses/>.
+#
+# 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: <debian-changes@lists.debian.org>
+* $^Subject: Accepted .+ \(($ARCHS )*($ARCHS)\) to .+
+* !$^Subject: Accepted ($PACKAGES) .+
+* ^Subject: Accepted .+ \(\/[-a-zA-Z0-9]+
+$DC_DIR/$MATCH
+
+:0
+* ^X-Mailing-List: <debian-devel-changes@lists.debian.org>
+* $^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: <debian-.+@lists.debian.org>
+* ^X-Mailing-List: <debian-\/[-a-zA-Z0-9]+
+$DEBIAN/$MATCH
+
+# There are a few Debian related mailing lists which do not appear on
+# lists.debian.org, those that I subscribe to are listed here. I suggest you
+# leave them, even if you do not currently subscibe to them.
+
+# Debian UK list
+:0:
+* ^Sender: debian-.+-admin@chiark.greenend.org.uk
+* ^Sender: debian-\/[a-zA-Z0-9]+
+$DEBIAN/$MATCH
+
+# Debian events-de list
+:0:
+* ^Sender: owner-debian-.+@Infodrom.North.DE
+* ^Sender: owner-debian-\/[-a-zA-Z0-9]+
+$DEBIAN/$MATCH
+
+# vim:ft=procmail:ts
diff --git a/examples/forward.exim b/examples/forward.exim
new file mode 100644
index 0000000..8c42c76
--- /dev/null
+++ b/examples/forward.exim
@@ -0,0 +1,6 @@
+# Exim Filter <<== do not edit or remove this line!
+# Assortment of debian lists
+if $header_resent-sender: matches "debian-(.*)-request@"
+then
+ save $home/mail/debian-$1
+endif
diff --git a/examples/forward.procmail b/examples/forward.procmail
new file mode 100644
index 0000000..086c27f
--- /dev/null
+++ b/examples/forward.procmail
@@ -0,0 +1 @@
+|/usr/bin/procmail
diff --git a/examples/master.procmail b/examples/master.procmail
new file mode 100644
index 0000000..8e3a8a8
--- /dev/null
+++ b/examples/master.procmail
@@ -0,0 +1,90 @@
+# 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, see <https://www.gnu.org/licenses/>.
+#
+# 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 <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 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: <debian-devel-changes@lists.debian.org>
+* $^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