]> code.citadel.org Git - citadel.git/blob - citadel/imap_metadata.c
Checked in a skeleton of the IMAP METADATA extension
[citadel.git] / citadel / imap_metadata.c
1 /*
2  * $Id:  $
3  *
4  * IMAP METADATA extension (yet another ugly disaster)
5  *
6  */
7
8
9 #include "sysdep.h"
10 #include <stdlib.h>
11 #include <unistd.h>
12 #include <stdio.h>
13 #include <fcntl.h>
14 #include <signal.h>
15 #include <pwd.h>
16 #include <errno.h>
17 #include <sys/types.h>
18
19 #if TIME_WITH_SYS_TIME
20 # include <sys/time.h>
21 # include <time.h>
22 #else
23 # if HAVE_SYS_TIME_H
24 #  include <sys/time.h>
25 # else
26 #  include <time.h>
27 # endif
28 #endif
29
30 #include <sys/wait.h>
31 #include <ctype.h>
32 #include <string.h>
33 #include <limits.h>
34 #include "citadel.h"
35 #include "server.h"
36 #include "sysdep_decls.h"
37 #include "citserver.h"
38 #include "support.h"
39 #include "config.h"
40 #include "serv_extensions.h"
41 #include "room_ops.h"
42 #include "user_ops.h"
43 #include "policy.h"
44 #include "database.h"
45 #include "msgbase.h"
46 #include "tools.h"
47 #include "internet_addressing.h"
48 #include "serv_imap.h"
49 #include "imap_tools.h"
50 #include "imap_fetch.h"
51 #include "imap_misc.h"
52 #include "genstamp.h"
53
54
55
56 /*
57  * Implements the GETMETADATA command.
58  (
59  ( This is currently a stub which returns no data, because we are not yet
60  * using any server annotations.
61  */
62 void imap_getmetadata(int num_parms, char *parms[]) {
63
64         cprintf("%s OK GETMETADATA complete\r\n", parms[0]);
65         return;
66 }
67
68
69 /*
70  * Implements the SETMETADATA command.
71  *
72  * This is currently a stub which fools the client into thinking that there
73  * is no remaining space available to store annotations.
74  */
75 void imap_setmetadata(int num_parms, char *parms[]) {
76
77         cprintf("%s NO [METADATA TOOMANY] SETMETADATA failed\r\n", parms[0]);
78         return;
79 }
80
81