summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2011-04-14 17:06:44 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2011-04-14 17:06:44 +0000
commit939b40997b1415575cf660f12a25b6413bec527c (patch)
tree49fbc509c09719d53f6d41b63374c53e3819e792 /usr.sbin/smtpd/smtpd.c
parent261dcbec2c4c9a0c15d4408e30c8034c82c44e77 (diff)
smtpd makes too many assumptions about the structure and layout of its
disk-based queue, it makes it near impossible to make changes to it without editing twenty files... how am i going to implement mongodb support ? :-) bring a new queue_backend API which hides the details of the disk-based queue to smtpd. it is not "plugged in" yet and I'm filling the holes.
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r--usr.sbin/smtpd/smtpd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c
index 894a0e5068d..f1719b6ef00 100644
--- a/usr.sbin/smtpd/smtpd.c
+++ b/usr.sbin/smtpd/smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.c,v 1.117 2011/04/13 20:53:18 gilles Exp $ */
+/* $OpenBSD: smtpd.c,v 1.118 2011/04/14 17:06:43 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -491,6 +491,10 @@ main(int argc, char *argv[])
if (!setup_spool(env.sc_pw->pw_uid, 0))
errx(1, "invalid directory permissions");
+ env.sc_queue = queue_backend_lookup(QT_FS);
+ if (env.sc_queue == NULL)
+ errx(1, "could not find queue backend");
+
log_init(debug);
log_verbose(verbose);