From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E8C571FBCC for ; Wed, 10 Jun 2020 07:07:31 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 67/82] imap: UID FETCH requires at least one data item Date: Wed, 10 Jun 2020 07:05:04 +0000 Message-Id: <20200610070519.18252-68-e@yhbt.net> In-Reply-To: <20200610070519.18252-1-e@yhbt.net> References: <20200610070519.18252-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It seems required based on my reading of RFC 3501 for the non-UID "FETCH" command. --- lib/PublicInbox/IMAP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm index 9cdcba693c7..d3f4874e496 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);