6.0.0-beta1
7/5/25

[#11725] Apply Filters does nothing after upgrading from Horde4
Summary Apply Filters does nothing after upgrading from Horde4
Queue Ingo
Queue Version 3.0.1
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester viktor (at) szepe (dot) net
Created 11/19/2012 (4611 days ago)
Due
Updated 11/20/2012 (4610 days ago)
Assigned 11/20/2012 (4610 days ago)
Resolved 11/20/2012 (4610 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/20/2012 08:16:33 PM Michael Slusarz Assigned to Michael Slusarz
State ⇒ Resolved
 
11/20/2012 10:55:03 AM viktor (at) szepe (dot) net Comment #13 Reply to this comment
Does this patch fix?
Yes. Thank you!!
11/20/2012 01:36:58 AM Michael Slusarz Comment #12 Reply to this comment
Does this patch fix?
11/20/2012 01:36:47 AM Git Commit Comment #11 Reply to this comment
Changes have been made in Git (master):

commit aace02dbc276fbb6a0fa727640b04312e14a9ee3
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Mon Nov 19 18:36:18 2012 -0700

     Possible fix for Bug #11725

  imp/lib/Api.php |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/aace02dbc276fbb6a0fa727640b04312e14a9ee3
11/20/2012 01:07:32 AM viktor (at) szepe (dot) net Comment #10
New Attachment: debug.log Download
Reply to this comment
Set your Horde log level to DEBUG and post the full backtrace of this error.
set and attached
11/20/2012 01:01:13 AM viktor (at) szepe (dot) net Comment #9
New Attachment: no-results.log Download
Reply to this comment
the log
11/20/2012 01:00:13 AM viktor (at) szepe (dot) net Comment #8 Reply to this comment
To further debug this issue, we need details of the IMP -> IMAP/POP 
communication.
this is from Apply Filters
11/20/2012 12:59:49 AM Michael Slusarz Comment #7 Reply to this comment
To further debug this issue, we need details of the IMP -> IMAP/POP
communication.
Just a minute....
I noticed an: Illegal offset type in isset or empty [pid 30867 on 
line 265 of "/var/www/horde4/imp/lib/Indices.php"] during Apply 
Filters
Set your Horde log level to DEBUG and post the full backtrace of this error.
11/20/2012 12:50:33 AM viktor (at) szepe (dot) net Comment #6 Reply to this comment
To further debug this issue, we need details of the IMP -> IMAP/POP 
communication.
Just a minute....
I noticed an: Illegal offset type in isset or empty [pid 30867 on line 
265 of "/var/www/horde4/imp/lib/Indices.php"] during Apply Filters
11/20/2012 12:48:26 AM Michael Slusarz Comment #5
State ⇒ Feedback
Reply to this comment
To further debug this issue, we need details of the IMP -> IMAP/POP 
communication.

To enable debugging, see instructions contained in 
imp/config/backends.php (the 'debug' config parameter).

Debugging should not be enabled on a production server,   Attach/post 
only the portion of the log that directly deals with the problem 
reported (it may be simplest to clear the log file and then perform 
the event that causes the error).
11/20/2012 12:45:36 AM viktor (at) szepe (dot) net Comment #4 Reply to this comment
Yes.  It means that you are only filtering on unseen, non-deleted messages.
That is right. Thank you!
vardumping $indices after ingo/lib/Script/Imap.php:118
$base_query->andSearch(array($query));
$indices = $this->_api->search($base_query);
shows an empty array - so my filter's search return no result
like: From contains @ ...
11/20/2012 12:40:10 AM Michael Slusarz Comment #3 Reply to this comment
Is it OK? that my $base_query always contains these two flags:
Yes.  It means that you are only filtering on unseen, non-deleted messages.

11/20/2012 12:27:01 AM viktor (at) szepe (dot) net Comment #2 Reply to this comment
Is it OK? that my $base_query always contains these two flags:
(vardump)

object(Horde_Imap_Client_Search_Query)#265 (2) {
   ["_charset":protected]=>
   string(5) "UTF-8"
   ["_search":protected]=>
   array(2) {
     ["flag"]=>
     array(2) {
       ["DELETED"]=>
       array(1) {
         ["type"]=>
         string(4) "flag"
       }
       ["SEEN"]=>
       array(1) {
         ["type"]=>
         string(4) "flag"
       }
     }
11/19/2012 11:43:17 PM viktor (at) szepe (dot) net Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Summary ⇒ Apply Filters does nothing after upgrading from Horde4
Type ⇒ Bug
Queue ⇒ Ingo
Reply to this comment
No PHP errors.
at ingo/lib/Script/Imap.php:231
if (($indices = array_diff($indices, $ignore_ids)))
both arrays are empty, so no action is taken
(using a courier IMAP server)

Thank you!

Saved Queries