unsigned int msgnum;
if (get_msgnum(client, args, &msgnum) == NULL)
- return 0;
+ return -1;
if (!client->deleted) {
client->deleted_bitmask = i_malloc(MSGS_BITMASK_SIZE(client));
unsigned int msgnum;
if (get_msgnum(client, args, &msgnum) == NULL)
- return 0;
+ return -1;
client_send_line(client, "+OK %u %"PRIuUOFF_T, msgnum+1,
client->message_sizes[msgnum]);
unsigned int msgnum;
if (get_msgnum(client, args, &msgnum) == NULL)
- return 0;
+ return -1;
if (client->last_seen <= msgnum)
client->last_seen = msgnum+1;
args = get_msgnum(client, args, &msgnum);
if (args == NULL)
- return 0;
+ return -1;
if (get_size(client, args, &max_lines) == NULL)
- return 0;
+ return -1;
client->top_count++;
client->byte_counter = &client->top_bytes;
if (ret == 0 && ctx->message == 0) {
/* output is being buffered, continue when there's
more space */
- return 0;
+ return FALSE;
}
}
if (*args == '\0') {
client_send_line(client, "+OK");
ctx = cmd_uidl_init(client, 0);
- list_uids_iter(client, ctx);
+ (void)list_uids_iter(client, ctx);
} else {
unsigned int msgnum;
if (get_msgnum(client, args, &msgnum) == NULL)
- return 0;
+ return -1;
ctx = cmd_uidl_init(client, msgnum+1);
if (!list_uids_iter(client, ctx))