不幸的是,我在桌面上丢失了邮件,我现在正在尝试从手机恢复它们。 K9邮件显示所有情况,但我找不到Mbox文件或类似于将它们重新移动到Thundebird的内容。
有谁知道究竟k9封邮件在哪里存储其本地邮件?
不幸的是,我在桌面上丢失了邮件,我现在正在尝试从手机恢复它们。 K9邮件显示所有情况,但我找不到Mbox文件或类似于将它们重新移动到Thundebird的内容。
有谁知道究竟k9封邮件在哪里存储其本地邮件?
Unfortuantely I lost mails on my Desktop and I'm now trying to restore them from my phone. k9-mail shows them all, but I can't find an mbox file or something similar to reimport them into Thundebird.
Does anyone know where exactly k9-mail stores its local mails?
K9使用自己的应用程序数据存储邮件,因此除了通过应用程序之外,您无法在没有root的情况下访问它们。但是,您可以在创建adb备份(没有密码!)并将其转换为tar存档:
adb backup -f k9mail.ab com.fsck.k9 ab2tar k9mail.ab
ab2tar
是一个小辅助脚本,你可以找到 tools/
目录我的小程序 adebar (免费,开源;基于BASH和ADB)。此转换的替代方法也可以在xda:什么是Android adb备份?
apps/com.fsck.k9/db/
目录中。在这里,您将找到一个或多个 .db
文件(每个邮件帐户),您可以使用 sqliteman 或 sqlitebrowser 。 邮件标题和内容在多个表格和列中传播,因此我不能为您提供一种简单的方法来将它们转换为例如: mbox格式。在"快速鸭子" (用Duckduckgo搜索)我发现问题询问了多次 - 但最接近和最精确的答案是"你可以在Python中的那个" (当然没有说明)。如您所要求的,仍然是答案的第一步:至少您可以使用适当的SQLite浏览器浏览您的邮件;)
K9 stores mails with its own app data, so you cannot access them without root except through the app. However, you can indirectly get hold on that creating an ADB backup (without password!) and converting that into a tar archive:
adb backup -f k9mail.ab com.fsck.k9 ab2tar k9mail.ab
ab2tar
is a small helper script you can find in the tools/
directory of my little program Adebar (free, open-source; based on Bash and ADB). Alternative approaches for this conversion can also be found at XDA: What is an android adb backup?.
That done, extract the tarball and navigate into its apps/com.fsck.k9/db/
directory. Here you will find one or more .db
files (one per mail account), which are SQLite files you can explore with apps like SQLiteman or SQLiteBrowser.
Mail headers and contents are spread across multiple tables and columns, so I cannot offer you an easy way to convert them into e.g. mbox format. On a "quick duck" (a search with DuckDuckGo) I found that question asked multiple times xe2x80x93 but the closest and most precise answer was "you could to that in Python" (of course, without instructions). Still, as requested by you, the first steps as answer: At least you can browse your mails that way using a proper SQLite browser ;)
© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有