Docs » Autodocs » aml.library » ReadFolderSpool
ReadFolderSpool -- Reads a spool file into the folder
count = ReadFolderSpool(folder, importfile, flags) D0 A0 A1 DO ULONG ReadFolderSpool(APTR folder, STRPTR importfile, ULONG flags);
This function reads a spoolfile and imports each article into the folder. The function expects the file to be in UNIX mailbox format, i.e., each article is preceded by a "From " line, identifying the start of the article. This "From " line is discarded.
folder - Pointer to a folder object importfile - Filename of the spoolfile to import flags - See <libraries/aml.h> for valid flags.
count - The number of article read from the spool.
WriteFolderSpool()
|