sabre-io / dav

sabre/dav is a CalDAV, CardDAV and WebDAV framework for PHP
http://sabre.io
BSD 3-Clause "New" or "Revised" License
1.54k stars 347 forks source link

Fixed issue with multiple invites being send out with a comma in the recipient name/address #1542

Open wlamers opened 9 months ago

wlamers commented 9 months ago

When using for example Thunderbird to create an invite an adding Attendees that have a comma in their name in the addressbook (of from collected emailaddresses in received emails) like e.g.:

"test, test test@test.com"

multiple RCPT TO: commands are send over SMTP, potentially causing issues with the mail server (postfix/dovecot). In our case the mail server want to send the invite to both the user "test" as the email "test@test.com". User "test" does not exist, causing the invite to end up in the 'catch-all' email account.

By extracting the emailadress using a regular expression the issue is resolved.

phil-davis commented 4 weeks ago

@wlamers are you able to add unit tests?