aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2008-12-04 13:00:34 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2008-12-04 13:00:34 +0000
commitb15471429f926625bc6c3e797646a1af72711ee2 (patch)
treecac272d304814357a29c0dd0bed8fcad9024f6c9 /mail
parent86db3fc17baab44456c42621dc81f539aa794981 (diff)
downloadports-b15471429f926625bc6c3e797646a1af72711ee2.tar.gz
ports-b15471429f926625bc6c3e797646a1af72711ee2.zip
Notes
Diffstat (limited to 'mail')
-rw-r--r--mail/mini_sendmail/Makefile1
-rw-r--r--mail/mini_sendmail/files/patch-mini_sendmail.c36
2 files changed, 37 insertions, 0 deletions
diff --git a/mail/mini_sendmail/Makefile b/mail/mini_sendmail/Makefile
index c8e51098e7c8..d5c3d07762a4 100644
--- a/mail/mini_sendmail/Makefile
+++ b/mail/mini_sendmail/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mini_sendmail
PORTVERSION= 1.3.6
+PORTREVISION= 1
CATEGORIES+= mail
MASTER_SITES= http://www.acme.com/software/mini_sendmail/
diff --git a/mail/mini_sendmail/files/patch-mini_sendmail.c b/mail/mini_sendmail/files/patch-mini_sendmail.c
new file mode 100644
index 000000000000..e436728b718b
--- /dev/null
+++ b/mail/mini_sendmail/files/patch-mini_sendmail.c
@@ -0,0 +1,36 @@
+--- mini_sendmail.c.orig 2005-06-29 19:37:15.000000000 +0200
++++ mini_sendmail.c 2008-11-02 17:09:53.000000000 +0100
+@@ -542,6 +542,7 @@
+ }
+
+ /* Strip off any angle brackets. */
++/*
+ while ( len > 0 && *recipient == '<' )
+ {
+ ++recipient;
+@@ -551,6 +552,23 @@
+ --len;
+
+ (void) snprintf( buf, sizeof(buf), "RCPT TO:<%.*s>", len, recipient );
++*/
++ if (len > 0 && recipient[len-1] == '>' )
++ {
++ /* "<name@domain>" or: "Full Name <name@domain>" */
++ while (len > 0 && *recipient != '<' )
++ {
++ ++recipient;
++ --len;
++ }
++ (void) snprintf( buf, sizeof(buf), "RCPT TO:%.*s", len, recipient );
++ }
++ else
++ {
++ /* name@domain */
++ (void) snprintf( buf, sizeof(buf), "RCPT TO:<%.*s>", len, recipient );
++ }
++
+ send_command( buf );
+ status = read_response();
+ if ( status != 250 && status != 251 )
+
+