]> Sergey Matveev's repositories - public-inbox.git/commitdiff
imap: UID FETCH requires at least one data item
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:05:04 +0000 (07:05 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
It seems required based on my reading of RFC 3501 for
the non-UID "FETCH" command.

lib/PublicInbox/IMAP.pm

index 9cdcba693c751fadcba634d403b6072e6ba68356..d3f4874e496a99cd20721a7446aca997b8a1d399 100644 (file)
@@ -884,7 +884,7 @@ sub fetch_compile ($) {
        @r;
 }
 
-sub cmd_uid_fetch ($$$;@) {
+sub cmd_uid_fetch ($$$$;@) {
        my ($self, $tag, $range_csv, @want) = @_;
        my $ibx = $self->{ibx} or return "$tag BAD No mailbox selected\r\n";
        my ($cb, $ops, $partial) = fetch_compile(\@want);