mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-09-12 06:54:34 +08:00
Filter out catch-all addresses from CalendarUserAddressSet
This commit is contained in:
parent
7087148d3d
commit
e0e29a5363
1 changed files with 2 additions and 0 deletions
|
@ -301,6 +301,8 @@ impl PrincipalPropFind for Server {
|
|||
property.clone(),
|
||||
emails
|
||||
.iter()
|
||||
.filter(|email| !email.starts_with("@"))
|
||||
.take(1)
|
||||
.map(|email| Href(format!("mailto:{email}",)))
|
||||
.collect::<Vec<_>>(),
|
||||
));
|
||||
|
|
Loading…
Add table
Reference in a new issue