summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2016-07-03 14:30:33 +0000
committergilles <gilles@openbsd.org>2016-07-03 14:30:33 +0000
commitf616853951cfced30047438f10ae5322ea08c22b (patch)
treee558ed1df0fba2aa962a25eee209b76299a4702d
parentintroduces new promise "chown" to allow changing owner/group with *chown(2) family (diff)
downloadwireguard-openbsd-f616853951cfced30047438f10ae5322ea08c22b.tar.xz
wireguard-openbsd-f616853951cfced30047438f10ae5322ea08c22b.zip
add -r option to enqueuer as compat interface for mailx
diff by Richard <richard@aaazen.com>
-rw-r--r--usr.sbin/smtpd/enqueue.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/enqueue.c b/usr.sbin/smtpd/enqueue.c
index ba39c5cdd0d..3fd7fbd6efe 100644
--- a/usr.sbin/smtpd/enqueue.c
+++ b/usr.sbin/smtpd/enqueue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: enqueue.c,v 1.112 2016/02/03 08:03:21 gilles Exp $ */
+/* $OpenBSD: enqueue.c,v 1.113 2016/07/03 14:30:33 gilles Exp $ */
/*
* Copyright (c) 2005 Henning Brauer <henning@bulabula.org>
@@ -187,7 +187,7 @@ enqueue(int argc, char *argv[], FILE *ofp)
save_argv = argv;
while ((ch = getopt(argc, argv,
- "A:B:b:E::e:F:f:iJ::L:mN:o:p:qR:StvV:x")) != -1) {
+ "A:B:b:E::e:F:f:iJ::L:mN:o:p:qr:R:StvV:x")) != -1) {
switch (ch) {
case 'f':
fake_from = optarg;
@@ -198,6 +198,9 @@ enqueue(int argc, char *argv[], FILE *ofp)
case 'N':
msg.dsn_notify = optarg;
break;
+ case 'r':
+ fake_from = optarg;
+ break;
case 'R':
msg.dsn_ret = optarg;
break;