nextcloud / mail

💌 Mail app for Nextcloud
https://apps.nextcloud.com/apps/mail
GNU Affero General Public License v3.0
834 stars 258 forks source link

KItinerary support on Alpine #6000

Open doc75 opened 2 years ago

doc75 commented 2 years ago

Feature Request

Now that Alpine has kitinerary available, it would be great (when present) to be able to use it.

Summary

It would be great to have KItinerary able to run on Alpine instances together with mail App

doc75 commented 2 years ago

@ChristophWurst I am willing to help making this work, but I'll need some advise as I am not a PHP expert.

Is it the way to go to propose a kitinerary-alpine adatper inspired from kitinerary-bin that you have created ?

On Alpine 3.15, the executable is located under /usr/lib/libexec/kf5/kitinerary-extractor so i am thinking about adding this new adapter that would check for this executable on Alpine and integrate it in the mail app.

Before spending time on that I would like to know if this is the right approach ?

ChristophWurst commented 2 years ago

we can do that or we add a second binary to the existing -bin adapter and let it pick the compatible one based on the system architecture

doc75 commented 2 years ago

@ChristophWurst if we add a second binary to the existing -bin adapter, then it would need to be statically linked I guess. If so, not sure how to build this version (unless the one delivered with alpine is already statically linked).

jhthorsen commented 1 year ago

Could this be the reason why it takes 10 to 20 seconds for me to load an email from my gmail account? I'm seeing this in the logs:

sh: /var/www/html/custom_apps/mail/vendor/christophwurst/kitinerary-bin/src/../bin/kitinerary-extractor: not found
sh: flatpak: not found
sh: kitinerary-extractor: not found
172.21.0.11 -  02/Mar/2023:01:37:12 +0000 "GET /index.php" 200

I'm using the "nextcloud:25-fpm-alpine" image.