aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-01-28 22:47:03 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-01-28 22:47:03 +0000
commit73032ca04be49c096f745f0873d67d9c831642bd (patch)
treea1772e8ae8b58f925f33e4b7fb5c82dbd770a996 /include
parent847fa779aff2592e842654b95dc2c321885e1eec (diff)
downloadbusybox-73032ca04be49c096f745f0873d67d9c831642bd.tar.gz
sendmail: new applet by dronnikov at gmail.com
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h23
2 files changed, 24 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 830ff2842..a78ce1c77 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -299,6 +299,7 @@ USE_RUNSV(APPLET(runsv, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_RUNSVDIR(APPLET(runsvdir, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_RX(APPLET(rx, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_SED(APPLET(sed, _BB_DIR_BIN, _BB_SUID_NEVER))
+USE_SENDMAIL(APPLET(sendmail, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_SELINUXENABLED(APPLET(selinuxenabled, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
USE_SEQ(APPLET_NOFORK(seq, seq, _BB_DIR_USR_BIN, _BB_SUID_NEVER, seq))
USE_SESTATUS(APPLET(sestatus, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
diff --git a/include/usage.h b/include/usage.h
index 2fa878061..0ef17b520 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -3134,6 +3134,29 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
#define selinuxenabled_trivial_usage
#define selinuxenabled_full_usage
+#define sendmail_trivial_usage \
+ "[-d] {-t to}+ [-f from] [-n[notify]] [-s subject] [-b file]*\n" \
+ "[-a attachment]* [-c charset] [-w timeout] [-h server] [-p port] [-U user] [-P password]"
+#define sendmail_full_usage \
+ "Send an email from to with subject and optional attachments.\n" \
+ "Body is read from stdin or from optional files" \
+ "\n\nArguments:\n" \
+ " -d Just dump composed message\n" \
+ " -t to Recipient email. May be multiple\n" \
+ " -f from Sender email\n" \
+ " -n[notify] Optional notification address. If just -n given then notifies the sender\n" \
+ " -s subject Optional subject\n" \
+ " -b filename Optional body content file. May be multiple\n" \
+ " -a filename Optional file attachment. May be multiple\n" \
+ " -c charset Assumed charset for body and subject [koi8-r]" \
+ USE_FEATURE_SENDMAIL_NETWORK("\n" \
+ " -w timeout Set timeout on network operations\n" \
+ " -h server Optional mail server name or IP [127.0.0.1]\n" \
+ " -p port Optional mail server port [25]\n" \
+ " -U username Authenticate using AUTH LOGIN with specified username\n" \
+ " -P password Authenticate using AUTH LOGIN with specified password"\
+ )
+
#define seq_trivial_usage \
"[first [increment]] last"
#define seq_full_usage \