diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-01-21 08:08:49 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-01-21 08:08:49 +0000 |
commit | ed7d46fd982670432201d171318da9507f9e6814 (patch) | |
tree | f209e75e4af09456de59437116e315db26f4dce9 /imap4d | |
parent | 997bc2c3baf5e7db73478013b7851722fa61de8d (diff) | |
download | mailutils-ed7d46fd982670432201d171318da9507f9e6814.tar.gz mailutils-ed7d46fd982670432201d171318da9507f9e6814.tar.bz2 |
(util_msgset): Edited comment; (util_start,util_getstate): Removed
Diffstat (limited to 'imap4d')
-rw-r--r-- | imap4d/util.c | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/imap4d/util.c b/imap4d/util.c index 2f83d5e38..a8fe4970f 100644 --- a/imap4d/util.c +++ b/imap4d/util.c @@ -140,7 +140,12 @@ comp_int (const void *a, const void *b) return *(int *) a - *(int *) b; } -/* Return in set an allocated array contain (n) numbers, for imap messsage set +/* Parse the message set specification from S. Store message numbers + in SET, store number of element in the SET into the memory pointed to + by N. + + A message set is defined as: + set ::= sequence_num / (sequence_num ":" sequence_num) / (set "," set) sequence_num ::= nz_number / "*" ;; * is the largest number in use. For message @@ -150,8 +155,8 @@ comp_int (const void *a, const void *b) ;; the mailbox. nz_number ::= digit_nz *digit - FIXME: The algo below is to relaxe, things like <,,,> or <:12> or <20:10> - will not generate an error. */ + FIXME: The message sets like <,,,> or <:12> or <20:10> are not considered + an error */ int util_msgset (char *s, size_t ** set, int *n, int isuid) { @@ -567,8 +572,6 @@ util_do_command (char *prompt) return util_finish (&nullcommand, RESP_BAD, "Missing arguments"); } - util_start (tag); - command = util_getcommand (cmd, imap4d_command_table); if (command == NULL) { @@ -598,21 +601,6 @@ util_upper (char *s) return 0; } -/* FIXME: What is this for? */ -int -util_start (char *tag) -{ - (void) tag; - return 0; -} - -/* FIXME: What is this for? */ -int -util_getstate (void) -{ - return STATE_NONAUTH; -} - struct imap4d_command * util_getcommand (char *cmd, struct imap4d_command command_table[]) { |