X-Git-Url: https://git.distorted.org.uk/~mdw/odin-cgi/blobdiff_plain/3e12ff54361d996cd64056a76b45f69abeec278d..HEAD:/exim-filter.in diff --git a/exim-filter.in b/exim-filter.in index baf51cc..554cab6 100644 --- a/exim-filter.in +++ b/exim-filter.in @@ -1,9 +1,32 @@ # Exim filter -*-conf-*- +### +### Exim filter file template for Odin mail redirection +### +### (c) 2015 Mark Wooding +### + +###----- Licensing notice --------------------------------------------------- +### +### This file is part of the `odin.gg' service, `odin-cgi'. +### +### `odin-cgi' is free software; you can redistribute it and/or modify +### it under the terms of the GNU Affero General Public License as +### published by the Free Software Foundation; either version 3 of the +### License, or (at your option) any later version. +### +### `odin-cgi' 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 Affero General Public License for more details. +### +### You should have received a copy of the GNU Affero General Public +### License along with `odin-cgi'; if not, see +### . if "${lookup pgsql { \ servers=db.distorted.org.uk/odin/exim/@PASSWORD@; \ SELECT recip FROM odin_maildeliver \ - WHERE lpart = '${quote_pgsql:$local_part}' AND \ + WHERE lpart = '${quote_pgsql:${lc:$local_part}}' AND \ dom = '$domain' } {!$value}{}}" matches "^(.+)\\$" then deliver ${s_1:$1}