From d8bf048f17ddcbaa1d0604e4accd91a41441bb3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Tue, 27 Feb 2001 21:20:08 +0000 Subject: [PATCH] Sendmail is so weird that it passes us an address of <> as just a zero-length argument, but will consider such thing unparseable. So we do the translation... --- clients/maildap/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clients/maildap/main.c b/clients/maildap/main.c index f45d3fe949..6233497d45 100644 --- a/clients/maildap/main.c +++ b/clients/maildap/main.c @@ -218,6 +218,11 @@ main ( int argc, char **argv ) case 'f': /* who it's from & where errors should go */ mailfrom = strdup( optarg ); + /* Deal with <> */ + if ( mailfrom[0] == '\0' ) { + free( mailfrom ); + mailfrom = strdup( "<>" ); + } for ( j = 0; sendmailargs[j] != NULL; j++ ) { if ( strcmp( sendmailargs[j], "-f" ) == 0 ) { sendmailargs[j+1] = mailfrom; -- 2.39.5