chiark / gitweb /
user-spam.m4: Fix indentation in the output.
[exim-config] / divmap.m4
CommitLineData
185b5456
MW
1### -*-m4-*-
2###
3### Diversion map for distorted.org.uk Exim configuration.
4###
5### (c) 2012 Mark Wooding
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This program is free software; you can redistribute it and/or modify
11### it under the terms of the GNU General Public License as published by
12### the Free Software Foundation; either version 2 of the License, or
13### (at your option) any later version.
14###
15### This program is distributed in the hope that it will be useful,
16### but WITHOUT ANY WARRANTY; without even the implied warranty of
17### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18### GNU General Public License for more details.
19###
20### You should have received a copy of the GNU General Public License
21### along with this program; if not, write to the Free Software Foundation,
22### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24###--------------------------------------------------------------------------
25### Numbering machinery.
26
27## Rather than maintain the diversion numbers by hand, this chunk of Emacs
28## Lisp will recompute them when they've been edited. All you have to do is
29## declare the diversions in the correct order.
30(save-excursion
31 (save-match-data
32 (goto-char (point-min))
33 (let ((next-div 0) div)
34 (while (re-search-forward (concat "\\(DEFDIVERSION(\\)" ;1
35 "\\([^,]+\\)" ;2 = diversion
36 "\\(,\\s-*\\)" ;3
37 "\\([0-9]+\\)" ;4 = number
38 "\\([,)]\\)") ;5
39 nil t)
40 (setq div (match-string 2))
41 (if (not (string-match-p "/" div))
42 (setq next-div (* 100 (/ (+ next-div 100) 100))))
43 (replace-match (concat "\\1\\2\\3"
44 (int-to-string next-div)
45 "\\5"))
46 (setq next-div (+ next-div 2))))))
47
48m4_define(<:_div:null:>, <:-1:>)
49
50m4_define(<:DEFDIVERSION:>, <:m4_dnl
51 m4_define(<:_div:$1:>, <:$2:>)m4_dnl
52 m4_ifelse(<:$3:>, <::>, <::>, <:m4_dnl
53 m4_define(<:_head:$1:>, <:$3:>):>):>)
54
55###--------------------------------------------------------------------------
56### The diversion map.
57
58## header 0
59
24222314
MW
60DEFDIVERSION(global, 100, ### Global settings.)
61DEFDIVERSION(global/logging, 102, Logging.)
62
63DEFDIVERSION(global/lists, 104)
64
65DEFDIVERSION(global/misc, 106, Miscellaneous.)
66DEFDIVERSION(global/param, 108, Exim parameters.)
5918499b
MW
67DEFDIVERSION(global/env, 110, Environment variables.)
68DEFDIVERSION(global/priv, 112, Privilege controls.)
69DEFDIVERSION(global/frozen, 114, Frozen messages.)
70DEFDIVERSION(global/lookups, 116, Data lookups.)
71DEFDIVERSION(global/msgid, 118, Message ids.)
72DEFDIVERSION(global/perl, 120, Embedded Perl startup.)
73DEFDIVERSION(global/daemon, 122, Daemon.)
74DEFDIVERSION(global/resource, 124, Resource control.)
75DEFDIVERSION(global/policy, 126, Policy controls.)
76DEFDIVERSION(global/callout, 128, Callout cache.)
77DEFDIVERSION(global/tls, 130, TLS.)
78DEFDIVERSION(global/users, 132, Local user handling.)
79DEFDIVERSION(global/incoming, 134,
185b5456 80 All incoming messages (SMTP and non-SMTP).)
5918499b
MW
81DEFDIVERSION(global/non-smtp, 136, Non-SMTP incoming messages.)
82DEFDIVERSION(global/smtp, 138, Incoming SMTP messages.)
83DEFDIVERSION(global/process, 140, Processing messages.)
84DEFDIVERSION(global/filter, 142, System filter.)
85DEFDIVERSION(global/routing, 144, Routing and delivery.)
86DEFDIVERSION(global/bounce, 146, Bounce and warning messages.)
87DEFDIVERSION(global/acl, 148, Access control lists.)
88DEFDIVERSION(global/acl-after, 150)
24222314
MW
89
90DEFDIVERSION(acl, 200)
91DEFDIVERSION(acl/connect, 202)
92DEFDIVERSION(acl/connect-hooks, 204)
93DEFDIVERSION(acl/connect-tail, 206)
94DEFDIVERSION(acl/mail, 208)
95DEFDIVERSION(acl/mail-hooks, 210)
96DEFDIVERSION(acl/mail-tail, 212)
97DEFDIVERSION(acl/rcpt, 214)
98DEFDIVERSION(acl/rcpt-hooks, 216)
99DEFDIVERSION(acl/rcpt-tail, 218)
100DEFDIVERSION(acl/data, 220)
06dfc2db 101DEFDIVERSION(acl/data-hooks, 222)
24222314
MW
102DEFDIVERSION(acl/data-tail, 224)
103DEFDIVERSION(acl/misc, 226)
104
105DEFDIVERSION(auth, 300, begin authenticators)
106
107DEFDIVERSION(routers, 400)
08248c8f
MW
108DEFDIVERSION(routers/virtual-spam, 402)
109DEFDIVERSION(routers/route, 404)
110DEFDIVERSION(routers/remote, 406)
111DEFDIVERSION(routers/virtual, 408)
112DEFDIVERSION(routers/virtual-hooks, 410)
113DEFDIVERSION(routers/virtual-tail, 412)
114DEFDIVERSION(routers/real, 414)
115DEFDIVERSION(routers/alias, 416)
3e031e77
MW
116DEFDIVERSION(routers/alias-opts, 418)
117DEFDIVERSION(routers/smarthost, 420)
118DEFDIVERSION(routers/allspam, 422)
119DEFDIVERSION(routers/dispatch, 424)
120DEFDIVERSION(routers/forward, 426)
121DEFDIVERSION(routers/deliver, 428)
24222314
MW
122
123DEFDIVERSION(transports, 500)
124
125DEFDIVERSION(retry, 600)
126DEFDIVERSION(retry/misc, 602)
127DEFDIVERSION(retry/default, 604)
128
129DEFDIVERSION(rewrite, 700)
130
131## warning trailer 1000
185b5456
MW
132
133DIVERT(null)
134###----- That's all, folks --------------------------------------------------