6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/29/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#5816] Added more tests to maildrop Script and fixed REJECT action
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.. ..__ .___. . | |\ |[__)[__ |\ | | | \|| [___| \|
Comment
>> We're getting much closer to release. Any updates on a patch? > > > > I'm sorry, my time is quite limited right now, since I'm very near to > the deadline of a project myself. I certainly can't provide a > solution for a more sophisticated expression model, like for example > in Sieve support. > > > > Improving support for black/whitelist isn't that hard in concept > though. It would be best not to match against a header value, but > against the predefined $FROM-Variable (cp. > http://www.courier-mta.org/maildrop/maildropfilter.html) that > contains the sender _address_ only. > > This would however require a condition that isn't based on regular > expressions being matched against the header lines, but a condition > like ($FROM eq "address1"), which is why I though creating a more > flexible recipe/condition model would be the right way to go. > > > > To work around that, the easiest and most elegant way would probably > be to create a new Maildrop_ListRecipe class, that inherits from > Maildrop_Recipe and overrides addCondition() as well as generate() > (the latter can be copied nearly 100%, just the condition->text > transformation has to be altered -- maybe it would be better to > change it in the original Maildrop_Recipe and only have to change > both addCondition() implementations). > > > > I'm sorry I can't provide a patch right now, maybe I can help out for > the next release. If nobody can be found doing this work until the > next release, it would probably still be best to revert to the old > "contains"-Condition for While/Blacklists.
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