Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Bugfix: Android GMAIL is sending an empty date for searchValueGreate … #283

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/imap/imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -1985,7 +1985,7 @@ private function getSearchRestriction($cpo) {
$searchLess = strftime("%Y-%m-%d", strtotime($cpo->GetSearchValueLess()));

$filter = '';
if ($searchGreater != '') {
if ($cpo->GetSearchValueGreater() != '') {
$filter .= ' SINCE "' . $searchGreater . '"';
} else {
// Only search in sync messages
Expand Down Expand Up @@ -2022,7 +2022,7 @@ private function getSearchRestriction($cpo) {
$filter .= ' SINCE "' . ($limitdate->format("d M Y")) . '"';
}
}
if ($searchLess != '') {
if ($cpo->GetSearchValueLess() != '') {
$filter .= ' BEFORE "' . $searchLess . '"';
}

Expand Down