45 |
|
|
46 |
|
|
47 |
/* |
/* |
48 |
* IMAP CAPABILITY: requests listing of capabilities that the server supports |
* IMAP CAPABILITY: requests listing of capabilities that the server supports. |
49 |
*/ |
*/ |
50 |
int imap_capability(void) |
int imap_capability(void) |
51 |
{ |
{ |
60 |
|
|
61 |
|
|
62 |
/* |
/* |
63 |
|
* IMAP NAMESPACE: discovers the prefix and delimeter of namespaces used by |
64 |
|
* the server for mailboxes (RFC 2342). |
65 |
|
*/ |
66 |
|
int imap_namespace(void) |
67 |
|
{ |
68 |
|
char cmd[SMALL_CMD]; |
69 |
|
|
70 |
|
verbose("Client request: NAMESPACE\n"); |
71 |
|
|
72 |
|
snprintf(cmd, SMALL_CMD, "%X NAMESPACE\r\n", tag); |
73 |
|
|
74 |
|
return send_command(cmd); |
75 |
|
} |
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
/* |
80 |
* IMAP LOGOUT: informs server that client is done. |
* IMAP LOGOUT: informs server that client is done. |
81 |
*/ |
*/ |
82 |
int imap_logout(void) |
int imap_logout(void) |
208 |
|
|
209 |
verbose("Client request: STORE\n"); |
verbose("Client request: STORE\n"); |
210 |
|
|
211 |
snprintf(cmd, MEDIUM_CMD, "%X STORE %s +FLAGS.SILENT (%s)\r\n", tag, mesg, |
snprintf(cmd, MEDIUM_CMD, "%X STORE %s +FLAGS.SILENT (%s)\r\n", tag, |
212 |
flags); |
mesg, flags); |
213 |
|
|
214 |
return send_command(cmd); |
return send_command(cmd); |
215 |
} |
} |