diff src/fetch.c @ 500:614a3177b15c noffle tip

Add mail-from option. Some modern mail systems will try and ensure the sender email is a legitimate address. Which will fail if there isn't such an address.
author Jim Hague <jim.hague@acm.org>
date Wed, 14 Aug 2013 12:04:39 +0100
parents d9035d08fe51
children
line wrap: on
line diff
--- a/src/fetch.c	Wed Aug 14 11:50:21 2013 +0100
+++ b/src/fetch.c	Wed Aug 14 12:04:39 2013 +0100
@@ -324,6 +324,7 @@
     {
         fprintf( f,
                  "To: %s\n"
+                 "From: %s\n"
                  "Subject: [ NOFFLE: Posting failed ]\n"
                  "\n"
                  "\t[ NOFFLE: POSTING OF ARTICLE FAILED ]\n"
@@ -337,7 +338,7 @@
                  "\n"
                  "%s"
                  ".\n",
-                 sender,
+                 sender, Cfg_mailFrom(),
                  reason, article );
         ret = pclose( f );
         if ( ret != EXIT_SUCCESS )