Skip to content
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 additional known obscured subjects from k-9/thunderbird-android. #370

Merged
merged 2 commits into from
Jul 28, 2024

Conversation

dkg
Copy link
Collaborator

@dkg dkg commented Jul 13, 2024

These additional subjects were extracted from the thunderbird-android source (which is inherited from k-9).

The extraction was done with:

git clone https://github.com/thunderbird/thunderbird-android/
cd thunderbird-android/legacy/ui/legacy/src/main/res
grep string\ name=\"encrypted_subject values-*/strings.xml | cut -f2 -d'>' | cut -f1 -d'<' | sort -u | sed -e 's/^/    "/' -e 's/$/",/'

(i did need to clean up one line's escaping to pass the linter's expectations)

See also thunderbird/thunderbird-android#8011

"已加密的訊息",
"暗号化されたメッセージ",
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hum, we decided against going for all of these strings at one point.

Shouldn't K-9 mail rather change to [...]?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the thing is that a localized "encrypted subject"

a) leaks the mail sender's locale
b) mail receiver locale/language might not be able to make sense of sender's localized "encrypted subject"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, k-9 should change, for the reasons you describe and more. i've asked them to do that at thunderbird/thunderbird-android#8011

However, even if they adopt that change, existing deployments won't change until there is an upgrade path and it actually happens.

If chatmail wants to be interoperable with the deployed base, it should also change, as described here.

Once there are widely-deployed instances of k9 and thunderbird-android that do the sensible standardized thing, then maybe chatmail could consider reverting this. But in the meantime, this seems like a reasonable measure for interoperability.

@hpk42
Copy link
Contributor

hpk42 commented Jul 13, 2024

if you want CI to pass, you need to rebase on main. I meanwhile fixed some issues only revealed after a full CI run -- after merging your last PR.

@hpk42
Copy link
Contributor

hpk42 commented Jul 16, 2024 via email

These additional subjects were extracted from the thunderbird-android
source (which is inherited from k-9).

The extraction was done with:

```
git clone https://github.com/thunderbird/thunderbird-android/
cd thunderbird-android/legacy/ui/legacy/src/main/res
grep string\ name=\"encrypted_subject values-*/strings.xml | cut -f2 -d'>' | cut -f1 -d'<' | sort -u | sed -e 's/^/    "/' -e 's/$/",/'
```

(i did need to clean up one line's escaping to pass the linter's
expectations)

See also thunderbird/thunderbird-android#8011
Copy link
Contributor

@hpk42 hpk42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while i don't regard supporting k9 (or any other MUA's) usage with chatmail servers a recommended workflow it's easy enough to accept this PR. link2xt is also +0 on it.

@hpk42 hpk42 merged commit 87d6d2d into main Jul 28, 2024
5 checks passed
@hpk42 hpk42 deleted the k9-subjects branch July 28, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants