chiark / gitweb /
devscripts (2.10.69+squeeze4) stable-security; urgency=high
[devscripts.git] / examples / master.procmail
1 #   master.procmail - Debian mailing list sorting procmail file.
2 #   Copyright (C) 1999  Edward Betts <edward@debian.org>
3 #
4 #   This program is free software; you can redistribute it and/or modify
5 #   it under the terms of the GNU General Public License as published by
6 #   the Free Software Foundation; either version 2 of the License, or
7 #   (at your option) any later version.
8 #
9 #   This program is distributed in the hope that it will be useful,
10 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
11 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 #   GNU General Public License for more details.
13 #
14 #   You should have received a copy of the GNU General Public License
15 #   along with this program. If not, see <http://www.gnu.org/licenses/>.
16 #
17 # On Debian GNU/Linux systems, the complete text of the GNU General
18 # Public License can be found in `/usr/share/common-licenses/GPL'.
19
20 # Introduction
21
22 # This rcfile is aimed at developers with a small amount of bandwidth (people
23 # using modems to connect to the Internet). The mailing lists
24 # debian-devel-changes and debian-changes carry the details of package uploads
25 # for all of the different architectures, however, most developers are using
26 # one or at most two of these architectures, and are not interested in uploads
27 # for the others.
28 #
29 # The recipes below will erase announcements of package uploads to
30 # architectures that are not of much interest, before forwarding other
31 # messages to the forward address. Uploads that include source will be
32 # displayed, because I think they are interesting.
33
34 # Instructions
35
36 # 1. Subscribe to debian-devel-changes and/or debian-changes using your Debian
37 #    e-mail address so that mail goes to your account on master.
38 # 2. Change the enviroment variables below to specify the:
39 #      a) e-mail address that you want mail to be forwarded to
40 #      b) the architectures you are NOT interested in
41 #      c) the packages you are interested in
42 # 3. Upload the file to master. Rename it to ~/.procmailrc, or refer to it
43 #    from ~/.procmailrc using INCLUDERC
44 #
45 # That should be it, configured, try sending a mail to your debian.org address
46 # and see if it makes its way to the specified e-mail forwarding address.
47 #
48 # Read the procmail, procmailrc, procmailex and procmailsc for more
49 # information.
50 # Master mail filtering procmail file by Edward Betts <edward@debian.org>
51
52 # Configuration
53
54 # Forwarding address, the place to send all the mail that is not erased.
55 # PLEASE CHANGE THIS! I DO NOT WANT YOUR MAIL! I could set up some stuff with
56 # LOGNAME to check this, but it would reduce performance and I trust my fellow
57 # developers.
58 FORWARD=edward@hairnet.demon.co.uk
59
60 # The architectures that do NOT interest you. If you are an i386 man like me,
61 # then this setting should be fine, you will get i386 and hurd-i386 changes.
62 # If a new architectures is introduced (MIPS? ia64?) you will see uploads
63 # listed here until you add it to this line.
64 ARCHS=alpha|arm|powerpc|sparc|m68k
65
66 # Packages changes on other architectures of interest. This is basicly a list
67 # of the binary packages that I maintain. As far as I see it most developers
68 # will just want to change this to a list of packages that they maintain.
69 PACKAGES=colortail|esh|vh|x2vnc|sniffit # Packages on other archs of interest
70
71 # Debian Development Changes mailing list is big. Archs that are not of
72 # interest to me are deleted.
73 #
74 # The only exception is packages that I would like to see when they are
75 # compiled on other Archs; I use this for my own binary packages.
76
77 :0:
78 * ^X-Mailing-List: <debian-devel-changes@lists.debian.org>
79 * $^Subject: Accepted .+ \(($ARCHS )*($ARCHS)\) to .+
80 * !$^Subject: Accepted ($PACKAGES) .+
81 /dev/null
82
83 # Every thing else goes to the forward address.
84
85 :0
86 * !^FROM_DAEMON
87 * !^X-Loop: $FORWARD
88 | formail -A"X-Loop: $FORWARD" | $SENDMAIL -oi $FORWARD
89
90 # vim:ft=procmail