Docs » Autodocs » aml.library » AddFolderArticle
AddFolderArticle -- Adds an article to a folder
success = AddFolderArticle(folder, type, data) D0 A0 D0 A1 BOOL AddFolderArticle(APTR folder, ULONG type, APTR data);
This function attempts to add the the specified article to the folder. The type parameter specifies how the article data will be interpreted. The following values are valid: ARTICLE_TYPE_FILE - data is a filename of an RFC822/MIME formatted message. ARTICLE_TYPE_ARTICLE - data is a pointer to an allocated article object. ARTICLE_TYPE_BUFFER - data is a pointer to a buffer, which contains an RFC822/MIME style message.
folder - Pointer to a folder object type - One of the types listed above data - Pointer to the article data
success - 1 if successful, 0 otherwise
RemFolderArticle()
|