a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 aml.library
  --rexxhost--
  AddArticlePartA
  AddCustomField
  AddFolderArticle
  CreateAddressEntryA
  CreateArticleA
  CreateArticlePartA
  CreateDecoderA
  CreateFolderA
  CreateServerA
  Decode
  DisposeAddressEntry
  DisposeArticle
  DisposeArticlePart
  DisposeDecoder
  DisposeFolder
  DisposeServer
  Encode
  ExpungeFolder
  FindAddressEntryA
  GetAddressEntryAttrsA
  GetArticleAttrsA
  GetArticlePartDataA
  GetCustomFieldData
  GetDecoderAttrsA
  GetFolderAttrsA
  GetServerArticles
  GetServerAttrsA
  GetServerHeaders
  HuntAddressEntryA
  OpenAddressEntry
  OpenArticle
  OpenFolderA
  ReadFolderSpool
  RemAddressEntry
  RemCustomField
  RemFolder
  RemFolderArticle
  SaveAddressEntry
  SaveFolder
  ScanFolderIndex
  SendArticle
  SetAddressEntryAttrsA
  SetArticleAttrsA
  SetArticlePartDataA
  SetDecoderAttrsA
  SetFolderAttrsA
  SetServerAttrsA
  WriteFolderSpool
Include
GuruMeditation
Docs » Autodocs » aml.library » GetServerArticles

NAME

	GetServerArticles -- Get articles from a server

SYNOPSIS

	value = GetServerArticles(server, incoming, hook, flags);
D0 A0 A1 A2 D0
LONG GetServerArticles(APTR server, APTR incoming,
struct Hook *hook, ULONG flags);

FUNCTION

	This function tells the server to retrieve its
articles.
If a hook is provided, it will be called for each article
retrieved, with the server object passed in A2 and an
ArticleDisposition structure in A1. This gives the
application a chance to parse the article and determine its
final destination, by setting the ad_Folder pointer. If this
pointer is NULL, or no hook is provided, the folder object
specified by incoming will be used as the destination. If
that is not provided, the article is discarded.

INPUTS

	server - Pointer to a server object
incoming - Pointer to the default incoming folder object
hook - A hook used for progress callbacks
flags - One or more of the following:
SF_USESPOOL - Receive messages to server spool vs. folder.
SF_DELARTICLE - Delete articles from the server
after successful retrieval.
SF_BYPASSHOOK - Don't use the progress hook.

RESULT

	value - 0 for success, -1 or a DOS error code for failure

SEE ALSO

GetServerHeaders(), CreateServerA()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Tristar & Red Sector Inc.

AOA
AFL
PHA
TRSI

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se