From 87f1f8a96513588dd2b211ef6cfce54a5f98e1be Mon Sep 17 00:00:00 2001 From: Adam Babik Date: Tue, 14 Jan 2020 08:16:35 +0100 Subject: [PATCH] Remove 24h time range validation from maislerver request (#1792) --- mailserver/request.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/mailserver/request.go b/mailserver/request.go index 903790200..2c5ca2647 100644 --- a/mailserver/request.go +++ b/mailserver/request.go @@ -39,9 +39,6 @@ func (r MessagesRequestPayload) Validate() error { if r.Upper < r.Lower { return errors.New("query range is invalid: lower > upper") } - if r.Upper-r.Lower > uint32(maxQueryRange.Seconds()) { - return errors.New("query range must be smaller or equal to 24 hours") - } if len(r.Bloom) == 0 { return errors.New("bloom filter is empty") }