view src/post.h @ 150:1c7303c71f66 noffle

[svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line starting with '\0' - according to the leafnode mailing list, this has been seen in the wild. * docs/inews.1,docs/noffle.1,docs/noffle.conf.5, packages/redhat/noffle.spec,src/configfile.h,src/configfile.c, src/noffle.c,src/post.h,src/post.c: Removed use of getopt_long, and added inews mode - the Noffle executable behaves as inews is invoked as inews. This includes adding From: and Organization: headers if necessary - add configs to override defaults for the From: domain and specify the organization. For all my fellow trn-heads out there, and users of any other ageing newsreader that expects inews. Updated RPM spec to create inews link to noffle on install.
author bears
date Thu, 26 Oct 2000 22:21:13 +0100
parents 3b4db42990e0
children
line wrap: on
line source

/*
  post.h

  Take the text of a single article, parse it and add/amend headers as
  necessary, and add to the local database and/or queue for external
  posting as appropriate.

  $Id: post.h 227 2000-10-26 21:21:13Z bears $
*/

#ifndef POST_H
#define POST_H

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

#include "common.h"

/* Flags for Post_open */
#define	POST_ADD_ORG		0001
#define	POST_DEBUG		0002
#define	POST_ADD_SIG		0004
#define	POST_ADD_FROM		0010

/* Register an article for posting. */
Bool
Post_open( const char * text, unsigned flags );

/* Post the article. */
Bool
Post_post( void );
   
/* Done with article - tidy up. */
void
Post_close( void );

#endif