diff 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
line wrap: on
line diff
--- a/src/outgoing.c	Tue Jan 28 11:38:58 2003 +0000
+++ b/src/outgoing.c	Thu Jan 30 15:49:23 2003 +0000
@@ -1,7 +1,7 @@
 /*
   outgoing.c
 
-  $Id: outgoing.c 316 2001-10-31 11:44:53Z bears $
+  $Id: outgoing.c 425 2003-01-30 15:49:23Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -110,6 +110,8 @@
         outgoing.dir = NULL;
         return FALSE;
     }
+    if ( msgId != NULL )
+    	Utl_cpyStr( msgId, d->d_name );
     if ( artTxt == NULL )
         return ( d->d_name != NULL );
     fileOutgoing( file, outgoing.serv, d->d_name );
@@ -121,7 +123,6 @@
     DynStr_clear( artTxt );
     while ( fgets( line, MAXCHAR, f ) )
         DynStr_app( artTxt, line );
-    Utl_cpyStr( msgId, d->d_name );
     fclose( f );
     return TRUE;
 }