From e83a0fc917ed70fade771a58d00f402e31c4b9b9 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 17 Apr 2019 13:37:14 +0200 Subject: [PATCH] Auto remove UTM parameters --- FAQ.md | 1 + .../eu/faircode/email/AdapterMessage.java | 47 +++++++++++++++++-- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/FAQ.md b/FAQ.md index 7f7b64334c..d7793fdd7b 100644 --- a/FAQ.md +++ b/FAQ.md @@ -1438,6 +1438,7 @@ The advanced option *extra privacy features* enables: * Detection and removal of [tracking images](#user-content-faq82) * Splitting linked images into an image and a link * Showing the [DKIM, SPF and DMARC authentication result](#user-content-faq92) +* Removal of [Urchin Tracking Module (UTM) parameters](https://en.wikipedia.org/wiki/UTM_parameters)
diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 83fd4975fa..ac47ba0221 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -163,6 +163,14 @@ public class AdapterMessage extends RecyclerView.Adapter PARANOID_QUERY = Collections.unmodifiableList(Arrays.asList( + "utm_source", + "utm_medium", + "utm_campaign", + "utm_term", + "utm_content" + )); + public class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, View.OnLongClickListener, BottomNavigationView.OnNavigationItemSelectedListener { private View view; @@ -1757,6 +1765,38 @@ public class AdapterMessage extends RecyclerView.Adapter() { @Override @@ -1799,9 +1839,9 @@ public class AdapterMessage extends RecyclerView.Adapter