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