aboutsummaryrefslogtreecommitdiff
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
parent847fa779aff2592e842654b95dc2c321885e1eec (diff)
downloadbusybox-w32-73032ca04be49c096f745f0873d67d9c831642bd.tar.gz
busybox-w32-73032ca04be49c096f745f0873d67d9c831642bd.tar.bz2
busybox-w32-73032ca04be49c096f745f0873d67d9c831642bd.zip
sendmail: new applet by dronnikov at gmail.com
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h23
-rw-r--r--networking/Config.in13
-rw-r--r--networking/Kbuild1
4 files changed, 38 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))
299USE_RUNSVDIR(APPLET(runsvdir, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 299USE_RUNSVDIR(APPLET(runsvdir, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
300USE_RX(APPLET(rx, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 300USE_RX(APPLET(rx, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
301USE_SED(APPLET(sed, _BB_DIR_BIN, _BB_SUID_NEVER)) 301USE_SED(APPLET(sed, _BB_DIR_BIN, _BB_SUID_NEVER))
302USE_SENDMAIL(APPLET(sendmail, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
302USE_SELINUXENABLED(APPLET(selinuxenabled, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) 303USE_SELINUXENABLED(APPLET(selinuxenabled, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
303USE_SEQ(APPLET_NOFORK(seq, seq, _BB_DIR_USR_BIN, _BB_SUID_NEVER, seq)) 304USE_SEQ(APPLET_NOFORK(seq, seq, _BB_DIR_USR_BIN, _BB_SUID_NEVER, seq))
304USE_SESTATUS(APPLET(sestatus, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) 305USE_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
3134#define selinuxenabled_trivial_usage 3134#define selinuxenabled_trivial_usage
3135#define selinuxenabled_full_usage 3135#define selinuxenabled_full_usage
3136 3136
3137#define sendmail_trivial_usage \
3138 "[-d] {-t to}+ [-f from] [-n[notify]] [-s subject] [-b file]*\n" \
3139 "[-a attachment]* [-c charset] [-w timeout] [-h server] [-p port] [-U user] [-P password]"
3140#define sendmail_full_usage \
3141 "Send an email from to with subject and optional attachments.\n" \
3142 "Body is read from stdin or from optional files" \
3143 "\n\nArguments:\n" \
3144 " -d Just dump composed message\n" \
3145 " -t to Recipient email. May be multiple\n" \
3146 " -f from Sender email\n" \
3147 " -n[notify] Optional notification address. If just -n given then notifies the sender\n" \
3148 " -s subject Optional subject\n" \
3149 " -b filename Optional body content file. May be multiple\n" \
3150 " -a filename Optional file attachment. May be multiple\n" \
3151 " -c charset Assumed charset for body and subject [koi8-r]" \
3152 USE_FEATURE_SENDMAIL_NETWORK("\n" \
3153 " -w timeout Set timeout on network operations\n" \
3154 " -h server Optional mail server name or IP [127.0.0.1]\n" \
3155 " -p port Optional mail server port [25]\n" \
3156 " -U username Authenticate using AUTH LOGIN with specified username\n" \
3157 " -P password Authenticate using AUTH LOGIN with specified password"\
3158 )
3159
3137#define seq_trivial_usage \ 3160#define seq_trivial_usage \
3138 "[first [increment]] last" 3161 "[first [increment]] last"
3139#define seq_full_usage \ 3162#define seq_full_usage \
diff --git a/networking/Config.in b/networking/Config.in
index f1f7ae04b..cd986b862 100644
--- a/networking/Config.in
+++ b/networking/Config.in
@@ -665,6 +665,19 @@ config ROUTE
665 help 665 help
666 Route displays or manipulates the kernel's IP routing tables. 666 Route displays or manipulates the kernel's IP routing tables.
667 667
668config SENDMAIL
669 bool "sendmail"
670 default n
671 help
672 Barebones sendmail.
673
674config FEATURE_SENDMAIL_NETWORK
675 bool "Support network connectivity"
676 default y
677 depends on SENDMAIL
678 help
679 Add ability to send, not only compose messages.
680
668config SLATTACH 681config SLATTACH
669 bool "slattach" 682 bool "slattach"
670 default n 683 default n
diff --git a/networking/Kbuild b/networking/Kbuild
index 3bcbe0242..2819e8507 100644
--- a/networking/Kbuild
+++ b/networking/Kbuild
@@ -28,6 +28,7 @@ lib-$(CONFIG_PING) += ping.o
28lib-$(CONFIG_PING6) += ping.o 28lib-$(CONFIG_PING6) += ping.o
29lib-$(CONFIG_PSCAN) += pscan.o 29lib-$(CONFIG_PSCAN) += pscan.o
30lib-$(CONFIG_ROUTE) += route.o 30lib-$(CONFIG_ROUTE) += route.o
31lib-$(CONFIG_SENDMAIL) += sendmail.o
31lib-$(CONFIG_SLATTACH) += slattach.o 32lib-$(CONFIG_SLATTACH) += slattach.o
32lib-$(CONFIG_TELNET) += telnet.o 33lib-$(CONFIG_TELNET) += telnet.o
33lib-$(CONFIG_TELNETD) += telnetd.o 34lib-$(CONFIG_TELNETD) += telnetd.o