* This is mostly for personal copy-paste reasons
Those who take the time to develop applications using UW-IMAP (or Panda IMAP) know that there are a number of callbacks that need to be defined. What follows is the simplest (do nothing) version of them.
#include "c-client.h" void mm_flags(MAILSTREAM *stream,unsigned long number) { } void mm_status(MAILSTREAM *stream,char *mailbox,MAILSTATUS *status) { } void mm_searched(MAILSTREAM *stream,unsigned long number) { } void mm_exists(MAILSTREAM *stream,unsigned long number) { } void mm_expunged(MAILSTREAM *stream,unsigned long number) { } void mm_list(MAILSTREAM *stream,int delimiter,char *name,long attributes) { } void mm_lsub(MAILSTREAM *stream,int delimiter,char *name,long attributes) { } void mm_notify(MAILSTREAM *stream,char *string,long errflg) { } void mm_log(char *string,long errflg) { } void mm_dlog(char *string) { } void mm_login(NETMBX *mb,char *user,char *pwd,long trial) { } void mm_critical(MAILSTREAM *stream) { } void mm_nocritical(MAILSTREAM *stream) { } long mm_diskerror(MAILSTREAM *stream,long errcode,long serious) { } void mm_fatal(char *string) { }