From 52d8b0b4023c73326a9fbaf3664454430775b7a4 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 28 Jan 2023 10:34:49 +0100 Subject: [PATCH] How to back up messages --- FAQ.md | 10 +++++----- .../eu/faircode/email/FragmentOptionsBackup.java | 10 ++++++++++ .../main/res/layout/fragment_options_backup.xml | 14 ++++++++++++++ app/src/main/res/values/strings.xml | 1 + 4 files changed, 30 insertions(+), 5 deletions(-) diff --git a/FAQ.md b/FAQ.md index 44a13de76c..b3c4fc1b72 100644 --- a/FAQ.md +++ b/FAQ.md @@ -4345,20 +4345,20 @@ Unfortunately, there exists no intent to delete existing calendar events. 🌎 [Google Translate](https://translate.google.com/translate?sl=en&u=https://github.com/M66B/FairEmail/blob/master/FAQ.md%23user-content-faq151) -An email client is meant to read and write messages, not to backup and restore messages. -Note that breaking or losing your device, means losing your messages! - +An email client is meant to read and write messages, not to back up and restore messages. +In other words, an email client is a viewer for messages on an email server, and not a backup tool. Instead, the email provider/server is responsible for backups. If you want to make a backup yourself, you could use a tool like [imapsync](https://imapsync.lamiral.info/). Since version 1.1556 it is possible to export all messages of a POP3 folder in mbox format according to [RFC4155](https://www.ietf.org/rfc/rfc4155.txt), -which might be useful to save sent messages if the email server doesn't. +which might be useful to save sent messages if the email server doesn't (which is risky because breaking or losing your device, means losing your sent messages!). +For this, please long press on the folder in the folder list of an account (tap on the account name in the navigation menu). If you want to import an mbox file to an existing email account, you can use Thunderbird on a desktop computer and the [ImportExportTools](https://addons.thunderbird.net/nl/thunderbird/addon/importexporttools/) add-on. -Note that in case of IMAP all messages on your device are also on the email server. +Note that in case of IMAP, all messages on your device are also on the email server.
diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsBackup.java b/app/src/main/java/eu/faircode/email/FragmentOptionsBackup.java index 77e3dfa3e0..8ad580070d 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsBackup.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsBackup.java @@ -113,6 +113,7 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere private Button btnExport; private TextView tvExportPro; private Button btnImport; + private TextView tvBackupMessages; private CardView cardCloud; private ImageButton ibCloudInfo; private TextView tvCloudPro; @@ -157,6 +158,7 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere btnExport = view.findViewById(R.id.btnExport); tvExportPro = view.findViewById(R.id.tvExportPro); btnImport = view.findViewById(R.id.btnImport); + tvBackupMessages = view.findViewById(R.id.tvBackupMessages); cardCloud = view.findViewById(R.id.cardCloud); ibCloudInfo = view.findViewById(R.id.ibCloudInfo); tvCloudPro = view.findViewById(R.id.tvCloudPro); @@ -207,6 +209,14 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere } }); + tvBackupMessages.getPaint().setUnderlineText(true); + tvBackupMessages.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Helper.viewFAQ(v.getContext(), 151); + } + }); + btnLogin.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { diff --git a/app/src/main/res/layout/fragment_options_backup.xml b/app/src/main/res/layout/fragment_options_backup.xml index 4159f1811f..8bf76aca24 100644 --- a/app/src/main/res/layout/fragment_options_backup.xml +++ b/app/src/main/res/layout/fragment_options_backup.xml @@ -146,6 +146,20 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/btnImport" /> + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c310657286..5416e999af 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -298,6 +298,7 @@ The export file will contain all settings and data, but no messages and no images referenced in signatures The input dialogs may be scrollable! + How to back up messages? Password Password contains control or whitespace characters Repeat password