Uploaded image for project: 'Z-Push'
  1. Z-Push
  2. ZP-1477

Unvalid date filter on BackendIMAP

    Details

    • Type: Bug
    • Status: QA
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0 beta1, 2.5.0
    • Component/s: None
    • Labels:
      None

      Description

      BackendIMAP seems to set up unvalid date filters sometimes during some search queries :

      BackendIMAP->GetMailboxSearchResults: Filter < SINCE "1970-01-01" BEFORE "1970-01-01" TEXT "*****">
      

      It seems to come from a possible null value inside BackendIMAP::getSearchRestriction which is directly passed to strftime :

      $searchGreater = strftime("%Y-%m-%d", strtotime($cpo->GetSearchValueGreater()));
      $searchLess = strftime("%Y-%m-%d", strtotime($cpo->GetSearchValueLess()));

      I can create a pull request if you want.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcbp Marc Blanc-Patin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: