282 |
|
|
283 |
/* FLAGS: The flags that are set for this message. */ |
/* FLAGS: The flags that are set for this message. */ |
284 |
/* FIXME: User flags not done. If enable change the PERMANENTFLAGS in SELECT */ |
/* FIXME: User flags not done. If enable change the PERMANENTFLAGS in SELECT */ |
285 |
static int |
void |
286 |
fetch_flags (struct fetch_command *command, char **arg) |
fetch_flags0 (const char *prefix, message_t msg, int isuid) |
287 |
{ |
{ |
288 |
attribute_t attr = NULL; |
attribute_t attr = NULL; |
289 |
int space = 0; |
int space = 0; |
290 |
(void)arg; /* No argments. */ |
|
291 |
message_get_attribute (command->msg, &attr); |
message_get_attribute (msg, &attr); |
292 |
util_send ("%s (", command->name); |
if (isuid) |
293 |
|
{ |
294 |
|
struct fetch_command *fcmd = &fetch_command_table[F_UID]; |
295 |
|
fcmd->msg = msg; |
296 |
|
util_send ("("); |
297 |
|
fetch_uid (fcmd, NULL); |
298 |
|
util_send (" "); |
299 |
|
} |
300 |
|
util_send ("%s (", prefix); |
301 |
if (attribute_is_deleted (attr)) |
if (attribute_is_deleted (attr)) |
302 |
{ |
{ |
303 |
util_send ("\\Deleted"); |
util_send ("\\Deleted"); |
330 |
util_send (" "); |
util_send (" "); |
331 |
util_send (" \\Draft"); |
util_send (" \\Draft"); |
332 |
} |
} |
333 |
|
if (isuid) |
334 |
|
util_send (")"); |
335 |
util_send (")"); |
util_send (")"); |
336 |
|
} |
337 |
|
|
338 |
|
static int |
339 |
|
fetch_flags (struct fetch_command *command, char **arg) |
340 |
|
{ |
341 |
|
fetch_flags0 (command->name, command->msg, 0); |
342 |
return RESP_OK; |
return RESP_OK; |
343 |
} |
} |
344 |
|
|
345 |
|
|
346 |
/* INTERNALDATE The internal date of the message. |
/* INTERNALDATE The internal date of the message. |
347 |
Format: |
Format: |
348 |
|
|