Re: RFC mailbox interface



Just realized it might be better to use one server for each type of 
mailbox like this:

typedef struct _Server {
	int (*logon)(const char user[],	const char passwd[]);
  	int (*logoff)();
   	int (*newFolder)(const char path[]);
  	//return list of available Folder paths for getFolder
  	glist (*scanFolders)(const char path[]);
  	Folder* (*getFolder)(const char path[]);
};

//where path is either a directory or a server
Server* openServer(Type type, const char path[]);

-- 
K. Haley <halykd@yahoo.com>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]