Mercurial > noffle
diff src/fetch.c @ 154:b2a4f839affd noffle
[svn] Use sendmail instead of mail
author | enz |
---|---|
date | Tue, 05 Dec 2000 19:30:50 +0000 |
parents | 8e350d558c98 |
children | 22b81617d427 |
line wrap: on
line diff
--- a/src/fetch.c Fri Oct 27 13:35:51 2000 +0100 +++ b/src/fetch.c Tue Dec 05 19:30:50 2000 +0000 @@ -1,7 +1,7 @@ /* fetch.c - $Id: fetch.c 207 2000-09-10 12:29:52Z enz $ + $Id: fetch.c 235 2000-12-05 19:30:50Z enz $ */ #if HAVE_CONFIG_H @@ -262,8 +262,7 @@ sig_t lastHandler; Log_err( "Return article to '%s' by mail", sender ); - snprintf( cmd, MAXCHAR, "mail -s '[ NOFFLE: Posting failed ]' '%s'", - sender ); + snprintf( cmd, MAXCHAR, "%s -t -oi", SENDMAILPROG); lastHandler = signal( SIGPIPE, SIG_IGN ); f = popen( cmd, "w" ); if ( f == NULL ) @@ -271,6 +270,9 @@ else { fprintf( f, + "To: %s\n" + "Subject: [ NOFFLE: Posting failed ]\n" + "\n" "\t[ NOFFLE: POSTING OF ARTICLE FAILED ]\n" "\n" "\t[ The posting of your article failed. ]\n" @@ -282,6 +284,7 @@ "\n" "%s" ".\n", + sender, reason, article ); ret = pclose( f ); if ( ret != EXIT_SUCCESS )