wildcard character '*' not working in Spam filter #855

Open
opened 2024-03-20 18:59:47 +01:00 by cal · 2 comments

Hi,

In trying to save resources (for me and your server), I want to use a '*' for an email address I want to filter. Sometimes these services use multiple user names from same email.

For example, I used a "From" rule which "contains" '*@e.deeperwatch.com' in filter to account for user 'daily@e.deeperwatch.com', but it was passed anyway.

-Carl

Hi, In trying to save resources (for me and your server), I want to use a '*' for an email address I want to filter. Sometimes these services use multiple user names from same email. For example, I used a "From" rule which "contains" '*@e.deeperwatch.com' in filter to account for user 'daily@e.deeperwatch.com', but it was passed anyway. -Carl
fede added the
Roundcube
🤔️ Investigate
labels 2024-03-20 19:50:08 +01:00
Owner

@cal Thanks for reporting. I will look into regex syntax allowed for sieve filters for more complex rules. But the example you provided is already covering your use-case. "Contains" condition is already a wild card. Specifying "contains" "e.deeperwatch.com" will apply to any email address containing the string so pretty much the same as @e.deeperwatch.com. However for more complex syntax like asomething??@e.deeperwatch.com it won't work in easy way, so in those cases regular expresion would need to be applied and we should check what is possible and what isn't and add it to the tutorial about filters.

@cal Thanks for reporting. I will look into regex syntax allowed for sieve filters for more complex rules. But the example you provided is already covering your use-case. "Contains" condition is already a wild card. Specifying "contains" "e.deeperwatch.com" will apply to any email address containing the string so pretty much the same as *@e.deeperwatch.com. However for more complex syntax like a*something??@e.deeperwatch.com it won't work in easy way, so in those cases regular expresion would need to be applied and we should check what is possible and what isn't and add it to the tutorial about filters.
Author

I did not realize I could use the Contains to match just the email address without the user account, thank you for the tip. I will get on it now...

I did not realize I could use the Contains to match just the email address without the user account, thank you for the tip. I will get on it now...
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Disroot/Disroot-Project#855
No description provided.