Commit 7a66afe4 authored by intrigeri's avatar intrigeri

Remove broken Thunderbird protocol selection

This code has been a no-op in practice since at least Tails 4.0.
We've decided to reject #17276 and investigate what the biggest
problems are for email in Tails with slow/shitty Internet connections:
default'ing to IMAP may, or may not, be part of these problems.

Closes #17276
parent 2ac1bf4f
...@@ -10,10 +10,6 @@ set -x ...@@ -10,10 +10,6 @@ set -x
THUNDERBIRD_CONFIG_DIR="${HOME}/.thunderbird" THUNDERBIRD_CONFIG_DIR="${HOME}/.thunderbird"
PROFILE="${THUNDERBIRD_CONFIG_DIR}/profile.default" PROFILE="${THUNDERBIRD_CONFIG_DIR}/profile.default"
thunderbird_config_is_persistent() {
[ "$(findmnt --noheadings --output SOURCE --target "${THUNDERBIRD_CONFIG_DIR}")" = "/dev/mapper/TailsData_unlocked[/thunderbird]" ]
}
configure_locale() { configure_locale() {
# Thunderbird will set the locale based on the environment when # Thunderbird will set the locale based on the environment when
# this pref is empty, but will then save the result to this pref # this pref is empty, but will then save the result to this pref
...@@ -33,25 +29,10 @@ disable_autocrypt() { ...@@ -33,25 +29,10 @@ disable_autocrypt() {
user_pref user_pref
} }
configure_default_incoming_protocol() {
# For extensions.torbirdy.defaultprotocol, POP = 0, IMAP = 1
local default_protocol
if thunderbird_config_is_persistent; then
default_protocol=0
else
default_protocol=1
fi
set_mozilla_pref "${PROFILE}/prefs.js" \
"extensions.torbirdy.defaultprotocol" \
"${default_protocol}" \
user_pref
}
reconfigure_profile() { reconfigure_profile() {
mkdir -p "${PROFILE}" mkdir -p "${PROFILE}"
configure_locale configure_locale
disable_autocrypt disable_autocrypt
configure_default_incoming_protocol
# Suppress Enigmail's configuration wizard by pretending that the current # Suppress Enigmail's configuration wizard by pretending that the current
# version was already configured. Only do this on first run though: # version was already configured. Only do this on first run though:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment