You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mailu/core/admin/mailu
bors[bot] 60b9a3e2f0
Merge #1389
1389: Prefer specific alias over wildcard, regardless of case r=mergify[bot] a=Nebukadneza

## What type of PR?
bug-fix

## What does this PR do?
Since direct addresses (not aliases) are case-insensitive since a while,
it makes sense for aliases to behave the same. Up until now, a wildcard
alias could trump a alias not-matching-the-case of the incoming address.
This clarifies this behavior.

## Notes
I realize that the if-hell down there isn’t nice. What it is, however, is quite clear and easy to read. I’m hoping that if anyone ever gets confused in the future, this will make the current behavior transparent. For me, that was more important than a minimal amount of statements/branches …

### Related issue(s)
closes #1387

## Prerequistes
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/guide.html#changelog) entry file.


Co-authored-by: Dario Ernst <github@kanojo.de>
5 years ago
..
internal Merge #1296 #1322 #1337 #1358 5 years ago
translations Translated using Weblate (Catalan) 5 years ago
ui Add a title to Mailu-Admin pages 5 years ago
__init__.py Fix the way we handle the application context 6 years ago
configuration.py Add IPv6 to allow_nets 5 years ago
debug.py Clean most of the refactored code 6 years ago
dkim.py Upgrading to a 2048-bit DKIM key 5 years ago
limiter.py Refactor the rate limiting code 5 years ago
manage.py Use pyyaml safe_load instead of load 5 years ago
models.py Prefer specific alias over wildcard, regardless of case 5 years ago
utils.py Refactor the rate limiting code 5 years ago