Skip to content
Permalink
Browse files

Log deprecation notice (and what to do instead).

  • Loading branch information...
schmonz committed Nov 28, 2018
1 parent 26188fb commit ea5553445cc65306912911c4d3b1e1bc577ffb3c
Showing with 20 additions and 6 deletions.
  1. +10 −6 Makefile
  2. +10 −0 qmail-qfilter-smtpd-queue.c
@@ -1341,8 +1341,10 @@ auto_usera.h
./compile qmail-pw2u.c

qmail-qfilter-ofmipd-queue: \
load qmail-qfilter-ofmipd-queue.o env.a error.a fs.a str.a alloc.a
./load qmail-qfilter-ofmipd-queue env.a error.a fs.a str.a alloc.a
load qmail-qfilter-ofmipd-queue.o env.a error.a fs.a str.a alloc.a \
substdio.a
./load qmail-qfilter-ofmipd-queue env.a error.a fs.a str.a alloc.a \
substdio.a

qmail-qfilter-ofmipd-queue.c: \
qmail-qfilter-smtpd-queue.c
@@ -1351,7 +1353,7 @@ qmail-qfilter-smtpd-queue.c
> qmail-qfilter-ofmipd-queue.c

qmail-qfilter-ofmipd-queue.o: \
compile qmail-qfilter-ofmipd-queue.c env.h
compile qmail-qfilter-ofmipd-queue.c env.h substdio.h
./compile qmail-qfilter-ofmipd-queue.c

qmail-qfilter-queue: \
@@ -1365,11 +1367,13 @@ compile qmail-qfilter-queue.c control.h stralloc.h wait.h
./compile qmail-qfilter-queue.c

qmail-qfilter-smtpd-queue: \
load qmail-qfilter-smtpd-queue.o env.a error.a fs.a str.a alloc.a
./load qmail-qfilter-smtpd-queue env.a error.a fs.a str.a alloc.a
load qmail-qfilter-smtpd-queue.o env.a error.a fs.a str.a alloc.a \
substdio.a
./load qmail-qfilter-smtpd-queue env.a error.a fs.a str.a alloc.a \
substdio.a

qmail-qfilter-smtpd-queue.o: \
compile qmail-qfilter-smtpd-queue.c env.h
compile qmail-qfilter-smtpd-queue.c env.h substdio.h
./compile qmail-qfilter-smtpd-queue.c

qmail-qfilter-viruscan: \
@@ -1,12 +1,22 @@
#include <unistd.h>
#include "env.h"
#include "substdio.h"

static void unable_to_execute() { _exit(71); }
static void unable_to_verify() { _exit(55); }

static char errbuf[SUBSTDIO_OUTSIZE];
static substdio sserr = SUBSTDIO_FDBUF(write,2,errbuf,sizeof(errbuf));

int main(int argc, char **argv) {
char *qqqargs[] = { "bin/qmail-qfilter-queue", 0 };

substdio_puts(&sserr,argv[0]);
substdio_puts(&sserr," is deprecated. Please set\n");
substdio_puts(&sserr," QMAILQUEUE=\"qmail-qfilter-queue\"\n");
substdio_puts(&sserr," QMAILQUEUEFILTERS=\"control/smtpfilters\"\n");
substdio_flush(&sserr);

if (!env_put("QMAILQUEUEFILTERS=control/smtpfilters"))
unable_to_verify();

0 comments on commit ea55534

Please sign in to comment.
You can’t perform that action at this time.