[Contents] [Previous] [Next] [Index]


Appendix A
The plugin.h Header File


This appendix lists the text of the Collabra Server API header file, plugin.h.

You can find this header file in your Collabra Server root directory under nsapi/mailSDK.


/* plugin.h */

/* pblock_findval finds the entry with the given name in pblock pb */
/* and returns its value. Otherwise, it returns NULL. */

#define MSG_NOACTION   0x02
#define MSG_CONTINUE   0x04

#ifdef WINNT

#ifdef __Lib__

#define DLL     __declspec( dllexport )

#else

#ifdef __STATIC_LIB__

#define DLL

#else

#define DLL     __declspec( dllimport )

#endif

#endif

#else

#define DLL

#endif

struct message;

typedef struct message Message;

struct address;

typedef struct address Address;

typedef struct address Recipient;

Message         *DupMessage (Message *pMessage);

DLL Message     *NewMessage(char *szBodyFile,char *szHeaderFile,char *szSenderAddr);

DLL void         FreeMessage (Message *pMessage);

DLL Recipient   *GetFirstRecipient (Message *pMessage);

DLL Recipient   *GetNextRecipient  (Message *pMessage);

DLL int          AddRecipient    (Message   *pMessage, 

                                  Recipient *pRecipient);

DLL int          RemoveRecipient (Message   *pMessage, 

                                  Recipient *pRecipient);

DLL Recipient   *NewRecipient(char *Addr,long type);

DLL char        *GetRecipientAddress (Recipient *pRecipient);

DLL int          MailMessage (char * szServer,Message   *pMessage);

DLL int          PostArticle (char * szServer,Message   *pMessage);

DLL char        *GetHeaderFile (Message *pMessage);

DLL char        *GetBodyFile   (Message *pMessage);

#define ADDRTYPE_N821   'N821'

#define ADDRTYPE_NEWS   'NEWS'

[Top]


[Contents] [Previous] [Next] [Index]

Last Updated: 10/01/97 14:01:24


Copyright © 1997 Netscape Communications Corporation