6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/3/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#13031] Filters will not apply if more then one entry is in list
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .___\ /. .. [__)[__ >< |\ || | \| / \| \||___
Comment
> Try this: > > < if (!$v->getEnvelope()->from->match($addr)) { > < $indices = array_diff($indices, > array($v->getUid())); > < } > --- >> $f=true; >> foreach ($addr as $a) { >> if ($v->getEnvelope()->from->match($a)) { >> $f=false; >> } >> } >> if($f) { >> $indices = array_diff($indices, >> array($v->getUid())); >> } > > >> ===STEPS TO REPRODUCE=== >> 1. Login to Horde >> 2. Add one email address to "Mail > Filters > Blacklist" >> 3. Activate "Preferences > Mail > Filters > 'Apply filter rules upon >> logging on' and 'Apply filter rules whenever Inbox is displayed'" >> 4. Send email from the same mail address which is in blacklist. >> Filter will work correctly. >> 5. Now add one more entry to "Mail > Filters > Blacklist" and >> activate the same in step 3. >> 6. Now send mails with any of the mail address which is in blacklist. >> Filters will not apply for any entry. >> >> ===ACTUAL RESULT=== >> >> Filters will not apply if more than one entry is in Blacklist filter. >> >> ===EXPECTED RESULT=== >> >> Filters should apply correctly for all entries in Blacklist filter. >> >> ===ROOT CAUSE=== >> >> As I understand the issue happens because by some logic matched >> messages are removed from list which for filter should be applied at: >> >> \horde\ingo\lib\Script\Imap.php line 158: >> >> foreach ($msgs as $v) { >> if (!$v->getEnvelope()->from->match($addr)) { >> $indices = array_diff($indices, >> array($v->getUid())); >> } >> } >> >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers