view src/outgoing.h @ 193:021d145e34e9 noffle

[svn] * src/fetch.c: Only leave articles in the requested list if the error fetching them was fatal. Otherwise article requests will accumulate indefinitely (e.g retrieving through NNTPcache when it can't find the body of an article, now or event. Yes, this happened to me; I had nearly 2000 requests backed up and never being cleared). * src/group.c: The weekend's change introduced code that causes a bus error on Sparc ( *(time_t *)p = xxx ). Replace with a safe memcpy, and also use memcpy when reading the Entry and time items to remove warnings on Sparc compilation.
author bears
date Mon, 22 Oct 2001 14:41:43 +0100
parents 32ba1198c6fa
children
line wrap: on
line source

/*
  outgoing.h

  Collection of posted articles.

  $Id: outgoing.h 51 2000-05-05 23:49:38Z uh1763 $
*/

#ifndef OUT_H
#define OUT_H

#if HAVE_CONFIG_H
#include <config.h>
#endif

#include "common.h"
#include "dynamicstring.h"

Bool
Out_add( const char *serv, const char *msgId, const DynStr *artTxt );

/* Start enumeration. Return TRUE on success. */
Bool
Out_first( const char *serv, Str msgId, DynStr *artTxt );

/* Continue enumeration. Return TRUE on success. */
Bool
Out_next( Str msgId, DynStr *s );

/* Delete article from outgoing collection */
void
Out_remove( const char *serv, const char *msgId );

/* Find server for outgoing message. */
Bool
Out_find( const char *msgId, Str server );

#endif