Merge branch 'master' of git://git.distorted.org.uk/~mdw/odin-cgi
[odin-cgi] / exim-filter.in
CommitLineData
c86aee46
MW
1# Exim filter -*-conf-*-
2
3if "${lookup pgsql { \
fdabfd13 4 servers=db.distorted.org.uk/odin/exim/@PASSWORD@; \
c86aee46
MW
5 SELECT recip FROM odin_maildeliver \
6 WHERE lpart = '${quote_pgsql:$local_part}' AND \
7 dom = '$domain' } {!$value}{}}" matches "^(.+)\\$"
8then
9 deliver ${s_1:$1}
10 finish
11endif