Mercurial > noffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 499:1c4d3397e99f | 500:614a3177b15c |
|---|---|
| 322 } | 322 } |
| 323 else | 323 else |
| 324 { | 324 { |
| 325 fprintf( f, | 325 fprintf( f, |
| 326 "To: %s\n" | 326 "To: %s\n" |
| 327 "From: %s\n" | |
| 327 "Subject: [ NOFFLE: Posting failed ]\n" | 328 "Subject: [ NOFFLE: Posting failed ]\n" |
| 328 "\n" | 329 "\n" |
| 329 "\t[ NOFFLE: POSTING OF ARTICLE FAILED ]\n" | 330 "\t[ NOFFLE: POSTING OF ARTICLE FAILED ]\n" |
| 330 "\n" | 331 "\n" |
| 331 "\t[ The posting of your article failed. ]\n" | 332 "\t[ The posting of your article failed. ]\n" |
| 335 "\n" | 336 "\n" |
| 336 "\t[ Full article text has been appended. ]\n" | 337 "\t[ Full article text has been appended. ]\n" |
| 337 "\n" | 338 "\n" |
| 338 "%s" | 339 "%s" |
| 339 ".\n", | 340 ".\n", |
| 340 sender, | 341 sender, Cfg_mailFrom(), |
| 341 reason, article ); | 342 reason, article ); |
| 342 ret = pclose( f ); | 343 ret = pclose( f ); |
| 343 if ( ret != EXIT_SUCCESS ) | 344 if ( ret != EXIT_SUCCESS ) |
| 344 { | 345 { |
| 345 Log_err( "'%s' exit value %d", cmd, ret ); | 346 Log_err( "'%s' exit value %d", cmd, ret ); |
