mailpile / Mailpile

A free & open modern, fast email client with user-friendly encryption and privacy features
https://mailpile.is
Other
8.82k stars 1.02k forks source link

Upgrade to Debian 11 Bullseye broke Mailpile #2309

Closed JackDca closed 1 year ago

JackDca commented 2 years ago

I recently upgraded my OS to Debian 11 Bullseye. This broke Mailpile. It appears that, due to the end of upstream support for Python 2.7, the Debian packages providing a number of Python2 modules have been removed from Bullseye, e.g. python-icalendar, python-appdirs, python-cryptography, python-lxml ... . Also, python-pip (for 2.7) has been removed. It is present in Debian testing but has a number of serious bug reports.

After considerable hacking (e.g. attempting to install pip from testing and other packages from oldstable) with no success I decided to remove Debian Python2 packages completely from my Bullseye system and to do a "local" Python2 install (i.e. by a non-privileged user without using root). Then it was possible to use pip to install the needed Python packages. I still do not have virtualenv working, so I am not using it. Mailpile now works as before.

Of course this is not a long term solution since there's no longer support upstream for Python 2.7 and it could result in security vulnerabilities. It works for now!

Here's an outline of the process, after upgrading to Bullseye.

Notes:

WIth Mailpile not working, I was forced to access my email with Thunderbird and K9Mail for a couple of weeks. This reminded me how much I like Mailpile, especially it's search capability. Thanks @BjarniRunar and the other contributors!

fpiesche commented 2 years ago

An alternate option might be to just run Mailpile from a Docker container, which requires a lot less messing around with your system installation. I've got a GitHub repo that automatically builds Docker images of both release versions (as and when they come out) and nightly builds of Mailpile's master branch whenever changes have been made.

My image is available at https://hub.docker.com/r/florianpiesche/mailpile/ and is my personal daily driver for email, and can be used in single-user mode by running

docker run -d \
  -v $HOME/.local/share/Mailpile:/home/mailpile/.local/share/Mailpile \
  -p 8080:33411 \
  florianpiesche/mailpile

This will make Mailpile accessible on your local machine at http://localhost:8080/, and store data in your home directory on the host for persistence.

JackDca commented 2 years ago

Thanks for the suggestion and the link. I've seen a lot of references to Docker in discussions of Mailpile. l've never used Docker myself, so for me there would be some learning required, but for some people this sounds like a good solution.

BjarniRunar commented 1 year ago

To facilitate running Mailpile v1 on modern distros, I've put together and published and documented "official" Mailpile docker images. See: https://github.com/mailpile/Mailpile-v1-Docker

Thanks everyone for helping out here!