diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-10-14 23:23:54 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2007-10-14 23:23:54 +0200 |
commit | 9d79926aebf81af7ca33648f992c22374def0922 (patch) | |
tree | e975057d8398951a054ff448576ab40f7bcdb6a9 /mailtrain.c | |
parent | c1b287878d7ae8d146e7054002479e53de47f6cb (diff) | |
download | dovecot-antispam-9d79926aebf81af7ca33648f992c22374def0922.tar.gz dovecot-antispam-9d79926aebf81af7ca33648f992c22374def0922.tar.xz dovecot-antispam-9d79926aebf81af7ca33648f992c22374def0922.zip |
make settings per-plugin
Diffstat (limited to 'mailtrain.c')
-rw-r--r-- | mailtrain.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mailtrain.c b/mailtrain.c index cdb522e..66f7087 100644 --- a/mailtrain.c +++ b/mailtrain.c @@ -272,30 +272,30 @@ int backend_handle_mail(struct mailbox_transaction_context *t, void backend_init(pool_t pool) { - char *tmp; + const char *tmp; - tmp = getenv("ANTISPAM_MAIL_SPAM"); + tmp = get_setting("MAIL_SPAM"); if (tmp) { spamaddr = tmp; - debug("antispam: mail backend spam address %s\n", tmp); + debug("mail backend spam address %s\n", tmp); } - tmp = getenv("ANTISPAM_MAIL_NOTSPAM"); + tmp = get_setting("MAIL_NOTSPAM"); if (tmp) { hamaddr = tmp; - debug("antispam: mail backend not-spam address %s\n", tmp); + debug("mail backend not-spam address %s\n", tmp); } - tmp = getenv("ANTISPAM_MAIL_SENDMAIL"); + tmp = get_setting("MAIL_SENDMAIL"); if (tmp) { sendmail_binary = tmp; - debug("antispam: mail backend sendmail %s\n", tmp); + debug("mail backend sendmail %s\n", tmp); } - tmp = getenv("ANTISPAM_MAIL_TMPDIR"); + tmp = get_setting("MAIL_TMPDIR"); if (tmp) tmpdir = tmp; - debug("antispam: mail backend tmpdir %s\n", tmpdir); + debug("mail backend tmpdir %s\n", tmpdir); } void backend_exit(void) |