Mercurial > noffle
comparison src/outgoing.c @ 293:b0e754727abf noffle
[svn] * docs/noffle.1,src/outgoing.c,src/noffle.c: Added -O/--outgoing
option to list articles waiting to be posted upstream. Modified
Out_next() to return message ID if possible, regardless of whether
article text was requested as well.
| author | bears |
|---|---|
| date | Thu, 30 Jan 2003 15:49:23 +0000 |
| parents | 24d4cd032da5 |
| children | 0137b5490cca |
comparison
equal
deleted
inserted
replaced
| 292:b1d5c55b76f6 | 293:b0e754727abf |
|---|---|
| 1 /* | 1 /* |
| 2 outgoing.c | 2 outgoing.c |
| 3 | 3 |
| 4 $Id: outgoing.c 316 2001-10-31 11:44:53Z bears $ | 4 $Id: outgoing.c 425 2003-01-30 15:49:23Z bears $ |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #if HAVE_CONFIG_H | 7 #if HAVE_CONFIG_H |
| 8 #include <config.h> | 8 #include <config.h> |
| 9 #endif | 9 #endif |
| 108 { | 108 { |
| 109 closedir( outgoing.dir ); | 109 closedir( outgoing.dir ); |
| 110 outgoing.dir = NULL; | 110 outgoing.dir = NULL; |
| 111 return FALSE; | 111 return FALSE; |
| 112 } | 112 } |
| 113 if ( msgId != NULL ) | |
| 114 Utl_cpyStr( msgId, d->d_name ); | |
| 113 if ( artTxt == NULL ) | 115 if ( artTxt == NULL ) |
| 114 return ( d->d_name != NULL ); | 116 return ( d->d_name != NULL ); |
| 115 fileOutgoing( file, outgoing.serv, d->d_name ); | 117 fileOutgoing( file, outgoing.serv, d->d_name ); |
| 116 if ( ! ( f = fopen( file, "r" ) ) ) | 118 if ( ! ( f = fopen( file, "r" ) ) ) |
| 117 { | 119 { |
| 119 return FALSE; | 121 return FALSE; |
| 120 } | 122 } |
| 121 DynStr_clear( artTxt ); | 123 DynStr_clear( artTxt ); |
| 122 while ( fgets( line, MAXCHAR, f ) ) | 124 while ( fgets( line, MAXCHAR, f ) ) |
| 123 DynStr_app( artTxt, line ); | 125 DynStr_app( artTxt, line ); |
| 124 Utl_cpyStr( msgId, d->d_name ); | |
| 125 fclose( f ); | 126 fclose( f ); |
| 126 return TRUE; | 127 return TRUE; |
| 127 } | 128 } |
| 128 | 129 |
| 129 void | 130 void |
