diff options
Diffstat (limited to 'mail/smtpclient')
-rw-r--r-- | mail/smtpclient/Makefile | 24 | ||||
-rw-r--r-- | mail/smtpclient/distinfo | 3 | ||||
-rw-r--r-- | mail/smtpclient/files/patch-smtpclient_errno_c | 11 | ||||
-rw-r--r-- | mail/smtpclient/files/patch-smtpclient_main_c | 54 | ||||
-rw-r--r-- | mail/smtpclient/pkg-descr | 8 |
5 files changed, 0 insertions, 100 deletions
diff --git a/mail/smtpclient/Makefile b/mail/smtpclient/Makefile deleted file mode 100644 index a9a63fb9c816..000000000000 --- a/mail/smtpclient/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -# Ports collection makefile for: smtpclient -# Date created: 24 Aug 2001 -# Whom: Kris Kennaway <kris@FreeBSD.org -# -# $FreeBSD$ -# - -PORTNAME= smtpclient -PORTVERSION= 1.0.0 -PORTREVISION= 1 -CATEGORIES= mail -MASTER_SITES= ftp://www.ossp.org/pkg/tool/smtpclient/ - -MAINTAINER= ports@FreeBSD.org -COMMENT= Simple SMTP client - -DEPRECATED= Upstream disapear and distfile is no more available -EXPIRATION_DATE= 2011-05-01 - -GNU_CONFIGURE= yes -MAN1= smtpclient.1 -PLIST_FILES= bin/smtpclient - -.include <bsd.port.mk> diff --git a/mail/smtpclient/distinfo b/mail/smtpclient/distinfo deleted file mode 100644 index 731dda5c1ac7..000000000000 --- a/mail/smtpclient/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (smtpclient-1.0.0.tar.gz) = 8b5d9260572107bb901edf6aacbf3747 -SHA256 (smtpclient-1.0.0.tar.gz) = 746034fdf91a676ef79132a4aa0fd70c20e1471f539d4d1e9ec642099720c5bc -SIZE (smtpclient-1.0.0.tar.gz) = 40033 diff --git a/mail/smtpclient/files/patch-smtpclient_errno_c b/mail/smtpclient/files/patch-smtpclient_errno_c deleted file mode 100644 index 75593f94b9eb..000000000000 --- a/mail/smtpclient/files/patch-smtpclient_errno_c +++ /dev/null @@ -1,11 +0,0 @@ ---- smtpclient_errno.c.orig Wed Aug 1 15:09:39 2001 -+++ smtpclient_errno.c Wed Aug 1 15:11:36 2001 -@@ -91,7 +91,7 @@ char *errorstr(int errnum) - #else - static char buffer[50]; - if (errnum < 0 || errnum >= sys_nerr) { -- sprintf(buffer, "ERR-UNKNOWN (%d)", errnum); -+ snprintf(buffer, (sizeof(buffer) - 1), "ERR-UNKNOWN (%d)", errnum); - return(buffer); - } - return(sys_errlist[errnum]); diff --git a/mail/smtpclient/files/patch-smtpclient_main_c b/mail/smtpclient/files/patch-smtpclient_main_c deleted file mode 100644 index a79101e26486..000000000000 --- a/mail/smtpclient/files/patch-smtpclient_main_c +++ /dev/null @@ -1,54 +0,0 @@ ---- smtpclient_main.c.orig Tue Feb 24 11:49:07 2004 -+++ smtpclient_main.c Tue Feb 24 12:47:11 2004 -@@ -86,7 +86,7 @@ void log(char *str, ...) - char buf[1024]; - - va_start(ap, str); -- vsprintf(buf, str, ap); -+ vsnprintf(buf, 1024, str, ap); - if (usesyslog) - syslog(LOG_ERR, "SMTPclient: %s", buf); - else -@@ -395,16 +395,16 @@ int main(int argc, char **argv) - log("%s: unknown host\n", my_name); - exit(1); - } -- strcpy(my_name, hp->h_name); -+ strlcpy(my_name, hp->h_name, sizeof(my_name)); - - /* - * Determine from address. - */ - if (from_addr == NULL) { - if ((pwd = getpwuid(getuid())) == 0) { -- sprintf(buf, "userid-%d@%s", getuid(), my_name); -+ snprintf(buf, (sizeof(buf) - 1), "userid-%d@%s", getuid(), my_name); - } else { -- sprintf(buf, "%s@%s", pwd->pw_name, my_name); -+ snprintf(buf, (sizeof(buf) - 1), "%s@%s", pwd->pw_name, my_name); - } - from_addr = strdup(buf); - } -@@ -453,8 +453,20 @@ int main(int argc, char **argv) - chat("MAIL FROM: <%s>\r\n", from_addr); - for (i = optind; i < argc; i++) - chat("RCPT TO: <%s>\r\n", argv[i]); -- if (cc_addr) -- chat("RCPT TO: <%s>\r\n", cc_addr); -+ if (cc_addr) { -+ char *cc_tmp,*p; -+ if(!(cc_tmp=malloc(strlen(cc_addr+1)))) { -+ log("memory allocation failed."); -+ exit(1); -+ } -+ strcpy(cc_tmp,cc_addr); -+ p=strtok(cc_tmp,","); -+ while(p) { -+ chat("RCPT TO: <%s>\r\n", p); -+ p=strtok(NULL,","); -+ } -+ free(cc_tmp); -+ } - chat("DATA\r\n"); - - /* diff --git a/mail/smtpclient/pkg-descr b/mail/smtpclient/pkg-descr deleted file mode 100644 index c951708d04e0..000000000000 --- a/mail/smtpclient/pkg-descr +++ /dev/null @@ -1,8 +0,0 @@ -SMTPclient -- simple SMTP client - -This program is a minimal SMTP client that takes an email -message body and passes it on to a SMTP server (default is the -MTA on the local host). Since it is completely self-supporting, -it is especially suitable for use in restricted environments. - -WWW: http://www.engelschall.com/sw/smtpclient/ |