4 * IMAP METADATA extension
6 * This is a partial implementation of draft-daboo-imap-annotatemore-11
7 * intended to help a specific connector product work with Citadel.
20 #include <sys/types.h>
22 #if TIME_WITH_SYS_TIME
23 # include <sys/time.h>
27 # include <sys/time.h>
39 #include "sysdep_decls.h"
40 #include "citserver.h"
43 #include "serv_extensions.h"
50 #include "internet_addressing.h"
51 #include "serv_imap.h"
52 #include "imap_tools.h"
53 #include "imap_fetch.h"
54 #include "imap_misc.h"
60 * Implements the GETMETADATA command.
62 * This is currently a stub which returns no data, because we are not yet
63 * using any server annotations.
65 void imap_getmetadata(int num_parms, char *parms[]) {
67 cprintf("%s OK GETMETADATA complete\r\n", parms[0]);
73 * Implements the SETMETADATA command.
75 * This is currently a stub which fools the client into thinking that there
76 * is no remaining space available to store annotations.
78 void imap_setmetadata(int num_parms, char *parms[]) {
80 cprintf("%s NO [METADATA TOOMANY] SETMETADATA failed\r\n", parms[0]);