svn commit: trunk/busybox: include networking

vda at busybox.net vda at busybox.net
Mon Jan 28 22:47:04 UTC 2008


Author: vda
Date: 2008-01-28 14:47:03 -0800 (Mon, 28 Jan 2008)
New Revision: 20916

Log:
sendmail: new applet by dronnikov at gmail.com



Modified:
   trunk/busybox/include/applets.h
   trunk/busybox/include/usage.h
   trunk/busybox/networking/Config.in
   trunk/busybox/networking/Kbuild


Changeset:
Modified: trunk/busybox/include/applets.h
===================================================================
--- trunk/busybox/include/applets.h	2008-01-28 22:45:43 UTC (rev 20915)
+++ trunk/busybox/include/applets.h	2008-01-28 22:47:03 UTC (rev 20916)
@@ -299,6 +299,7 @@
 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))

Modified: trunk/busybox/include/usage.h
===================================================================
--- trunk/busybox/include/usage.h	2008-01-28 22:45:43 UTC (rev 20915)
+++ trunk/busybox/include/usage.h	2008-01-28 22:47:03 UTC (rev 20916)
@@ -3134,6 +3134,29 @@
 #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 \

Modified: trunk/busybox/networking/Config.in
===================================================================
--- trunk/busybox/networking/Config.in	2008-01-28 22:45:43 UTC (rev 20915)
+++ trunk/busybox/networking/Config.in	2008-01-28 22:47:03 UTC (rev 20916)
@@ -665,6 +665,19 @@
 	help
 	  Route displays or manipulates the kernel's IP routing tables.
 
+config SENDMAIL
+	bool "sendmail"
+	default n
+	help
+	  Barebones sendmail.
+
+config FEATURE_SENDMAIL_NETWORK
+	bool "Support network connectivity"
+	default y
+	depends on SENDMAIL
+	help
+	  Add ability to send, not only compose messages.
+
 config SLATTACH
 	bool "slattach"
 	default n

Modified: trunk/busybox/networking/Kbuild
===================================================================
--- trunk/busybox/networking/Kbuild	2008-01-28 22:45:43 UTC (rev 20915)
+++ trunk/busybox/networking/Kbuild	2008-01-28 22:47:03 UTC (rev 20916)
@@ -28,6 +28,7 @@
 lib-$(CONFIG_PING6)        += ping.o
 lib-$(CONFIG_PSCAN)        += pscan.o
 lib-$(CONFIG_ROUTE)        += route.o
+lib-$(CONFIG_SENDMAIL)     += sendmail.o
 lib-$(CONFIG_SLATTACH)     += slattach.o
 lib-$(CONFIG_TELNET)       += telnet.o
 lib-$(CONFIG_TELNETD)      += telnetd.o




More information about the busybox-cvs mailing list