(util_msgset): Edited comment; (util_start,util_getstate): Removed
Showing
1 changed file
with
8 additions
and
20 deletions
... | @@ -140,7 +140,12 @@ comp_int (const void *a, const void *b) | ... | @@ -140,7 +140,12 @@ comp_int (const void *a, const void *b) |
140 | return *(int *) a - *(int *) b; | 140 | return *(int *) a - *(int *) b; |
141 | } | 141 | } |
142 | 142 | ||
143 | /* Return in set an allocated array contain (n) numbers, for imap messsage set | 143 | /* Parse the message set specification from S. Store message numbers |
144 | in SET, store number of element in the SET into the memory pointed to | ||
145 | by N. | ||
146 | |||
147 | A message set is defined as: | ||
148 | |||
144 | set ::= sequence_num / (sequence_num ":" sequence_num) / (set "," set) | 149 | set ::= sequence_num / (sequence_num ":" sequence_num) / (set "," set) |
145 | sequence_num ::= nz_number / "*" | 150 | sequence_num ::= nz_number / "*" |
146 | ;; * is the largest number in use. For message | 151 | ;; * is the largest number in use. For message |
... | @@ -150,8 +155,8 @@ comp_int (const void *a, const void *b) | ... | @@ -150,8 +155,8 @@ comp_int (const void *a, const void *b) |
150 | ;; the mailbox. | 155 | ;; the mailbox. |
151 | nz_number ::= digit_nz *digit | 156 | nz_number ::= digit_nz *digit |
152 | 157 | ||
153 | FIXME: The algo below is to relaxe, things like <,,,> or <:12> or <20:10> | 158 | FIXME: The message sets like <,,,> or <:12> or <20:10> are not considered |
154 | will not generate an error. */ | 159 | an error */ |
155 | int | 160 | int |
156 | util_msgset (char *s, size_t ** set, int *n, int isuid) | 161 | util_msgset (char *s, size_t ** set, int *n, int isuid) |
157 | { | 162 | { |
... | @@ -567,8 +572,6 @@ util_do_command (char *prompt) | ... | @@ -567,8 +572,6 @@ util_do_command (char *prompt) |
567 | return util_finish (&nullcommand, RESP_BAD, "Missing arguments"); | 572 | return util_finish (&nullcommand, RESP_BAD, "Missing arguments"); |
568 | } | 573 | } |
569 | 574 | ||
570 | util_start (tag); | ||
571 | |||
572 | command = util_getcommand (cmd, imap4d_command_table); | 575 | command = util_getcommand (cmd, imap4d_command_table); |
573 | if (command == NULL) | 576 | if (command == NULL) |
574 | { | 577 | { |
... | @@ -598,21 +601,6 @@ util_upper (char *s) | ... | @@ -598,21 +601,6 @@ util_upper (char *s) |
598 | return 0; | 601 | return 0; |
599 | } | 602 | } |
600 | 603 | ||
601 | /* FIXME: What is this for? */ | ||
602 | int | ||
603 | util_start (char *tag) | ||
604 | { | ||
605 | (void) tag; | ||
606 | return 0; | ||
607 | } | ||
608 | |||
609 | /* FIXME: What is this for? */ | ||
610 | int | ||
611 | util_getstate (void) | ||
612 | { | ||
613 | return STATE_NONAUTH; | ||
614 | } | ||
615 | |||
616 | struct imap4d_command * | 604 | struct imap4d_command * |
617 | util_getcommand (char *cmd, struct imap4d_command command_table[]) | 605 | util_getcommand (char *cmd, struct imap4d_command command_table[]) |
618 | { | 606 | { | ... | ... |
-
Please register or sign in to post a comment