From: Eric Wong Date: Wed, 10 Jun 2020 07:05:04 +0000 (+0000) Subject: imap: UID FETCH requires at least one data item X-Git-Tag: v1.6.0~400 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=f1f7030566b17f596e2d6083047535ddd9b94e8c imap: UID FETCH requires at least one data item It seems required based on my reading of RFC 3501 for the non-UID "FETCH" command. --- diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm index 9cdcba69..d3f4874e 100644 --- a/lib/PublicInbox/IMAP.pm +++ b/lib/PublicInbox/IMAP.pm @@ -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);