-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add BIMI as source for avatars #5784
base: main
Are you sure you want to change the base?
Conversation
Thanks for opening your first pull request in this repository! ✌️ |
- @todo: currently only supports "default" as selector ( e.g. default._bimi.example.org ) Signed-off-by: MeiKatz <[email protected]>
While I personally love the code style with whitespace between brackets and variables, CI isn't going to let it pass ;) can you run the cs fixer? Should all be there for you to be able to run it via composer with |
@miaulalala okay, I will try. This is my first pull request here therefore I have to learn this step by step :) |
Cool, if you have any questions, feel free to post here or you could join the public dev chat if you'd like! |
Okay, currently I am struggling with the message |
Does that happen when you try to run composer install? |
Right. I also cannot run any of the scripts. I guess that is because |
Signed-off-by: MeiKatz <[email protected]>
Okay, I could fix the problem by removing the pear package from the repositories list in the |
You will have to use composer v1. I keep a local copy of it as alias of
Hmm okay. But don't you miss the Horde libraries then? |
Maybe, but I could run the fixer. If this is enough then we should try the workflow tasks on the GitHub servers. |
@ChristophWurst is there any blocking issue in my pull request? Just curious about the workflow here and if there is anything that I can do to speed up the process. |
…as wrapper for dns_record_get() Signed-off-by: MeiKatz <[email protected]>
Signed-off-by: MeiKatz <[email protected]>
Signed-off-by: MeiKatz <[email protected]>
Signed-off-by: MeiKatz <[email protected]>
We'll test/review soon. Do you have any examples that we could test this with? |
…DnsRecordService Signed-off-by: MeiKatz <[email protected]>
Signed-off-by: MeiKatz <[email protected]>
Signed-off-by: MeiKatz <[email protected]>
Signed-off-by: MeiKatz <[email protected]>
Signed-off-by: MeiKatz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, by signing up with wordpress I could test this. The avatar is returned as a data:image string but it never reaches the frontend
For testing purposes: pinterest also has a BIMI record. |
What do you mean with "it never reaches the frontend"? Is something else shown? Or is it a display error? Or something totally different? |
232a167
to
d52eed6
Compare
Co-authored-by: Anna Larch <[email protected]> Signed-off-by: MeiKatz <[email protected]>
Not an error, but the data format doesn't work with the html from the frontend. I signed up for a wordpress account, which will send you an email so you can test this. |
I currently try to get a full NextCloud instance running on my local machine with Podman, but I am facing some problems with this. So it's not done yet. Nevertheless, can you send me the received data from the api, that the frontend cannot handle? |
Hi, finally got you the data: so the Avatar object looks like this for me:
It works fine up to this line: https://github.com/MeiKatz/nextcloud-mail/blob/master/lib/Service/AvatarService.php#L144 I think this method needs an additional check on the mime type to cover this case of a base64 encoded image as URL. |
@miaulalala So this is the value of |
This is the value of |
This would still be a very nice feature. @MeiKatz if you have time to continue/finish the feature let me know. Else I'll try to find someone else to take over, but it won't happen anytime soon. |
@ChristophWurst currently my development of the feature is paused but I never stopped thinking about it. In the last few months I learnt a lot about deployment of NC via Docker and therefore I will try in the next weeks so set up a local instance of NC so I can re-start developing this feature. |
The SVG handling is a bit scary. I wish that could be offloaded to a library with plenty of tests. The rest looks alright, so I'm not closing the PR yet. |
I would go with a package that does the job but as far as I know there is not for now. But I can create this missing package myself and use it here, so the problem goes into my play field. Would this be better? |
As far as I can tell this code doesn't check if the email is valid and legimitate. I'd suggest to at least require a good DMARC-result, else this might even make illegitimate emails look more trustworthy. This feature is in development for Roundcubemail, too, and over there someone suggested technical details of such a requirement. |
@pabzm You've got a valid point there. DMARC would be the requirement because paid certificates are for the most companies unavailable because they are way too expensive. This PR is on my to do list for a long time now and maybe there should be a separate pull request before where checking for DMARC is added and we can call something like |
@MeiKatz: Can you update your PR with the latest BIMI draft version? Thanks in advance. |
default
as selector ( e.g.default._bimi.example.org
)RFC: https://www.ietf.org/archive/id/draft-blank-ietf-bimi-02.txt