Open MeiKatz opened 2 years ago
Sounds reasonable. This could be added as a new avatar source in https://github.com/nextcloud/mail/tree/master/lib/Service/Avatar.
Right, that's what I was thinking about. I can try to create a pull request for this.
Awesome :)
Can you give me a hint how I can access the mail headers in the AvatarService
? It seems to me that only the e-mail address is passed to the service.
Here you go: https://github.com/nextcloud/mail/pull/5784
Feature Request
I like to request to add BIMI support for loading avatars in Nextcloud mail. Currently its supported to load the avatars either from an image in the address book, from the favicon of the website or via Gravatar. Adding support for BIMI (partial or complete) is easy, because we only have to check the DNS entries of the corresponding domain and search for the BIMI entry. There we can read the location of the avatar image.
We don't need to implement VMC or DMARC, but we could. Maybe as an option that we can enable/disable if needed.
Example code
Code could look something like this:
Is this feature wanted?
I would create a pull request for this feature request; the question is: do you want it?
References