mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-11-11 22:31:41 +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(),
|
property.clone(),
|
||||||
emails
|
emails
|
||||||
.iter()
|
.iter()
|
||||||
|
.filter(|email| !email.starts_with("@"))
|
||||||
|
.take(1)
|
||||||
.map(|email| Href(format!("mailto:{email}",)))
|
.map(|email| Href(format!("mailto:{email}",)))
|
||||||
.collect::<Vec<_>>(),
|
.collect::<Vec<_>>(),
|
||||||
));
|
));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue