summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2011-12-12 17:20:37 +0000
committerEric Faurot <eric@cvs.openbsd.org>2011-12-12 17:20:37 +0000
commit125c3ff4093fd2ee1abaab72dcb5e0e00efde1c8 (patch)
tree9c1efb6378f38d7268af1049d7e8e0286119274e /usr.sbin/smtpd/smtpd.c
parent8205dd800030aae9b69927a72d45afdaa96146a9 (diff)
add a session_enter_state() function to change the state of an smtp
session and allow those state changes to be traced (add traces flags for upcoming changes while there). ok chl@ gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r--usr.sbin/smtpd/smtpd.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c
index d70376b0812..5d832e902f1 100644
--- a/usr.sbin/smtpd/smtpd.c
+++ b/usr.sbin/smtpd/smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.c,v 1.139 2011/12/08 17:00:28 todd Exp $ */
+/* $OpenBSD: smtpd.c,v 1.140 2011/12/12 17:20:36 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -454,6 +454,16 @@ main(int argc, char *argv[])
case 'T':
if (!strcmp(optarg, "imsg"))
verbose |= TRACE_IMSG;
+ else if (!strcmp(optarg, "io"))
+ verbose |= TRACE_IO;
+ else if (!strcmp(optarg, "smtp"))
+ verbose |= TRACE_SMTP;
+ else if (!strcmp(optarg, "mta"))
+ verbose |= TRACE_MTA;
+ else if (!strcmp(optarg, "bounce"))
+ verbose |= TRACE_BOUNCE;
+ else if (!strcmp(optarg, "all"))
+ verbose |= ~TRACE_VERBOSE;
else
log_warnx("unknown trace flag \"%s\"", optarg);
break;