MailImporter

filtericedove.cpp
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "filtericedove.h"
8#include <KLocalizedString>
9using namespace MailImporter;
10
11FilterIcedove::FilterIcedove()
13{
14 setName(i18n("Import Icedove Mails and Folder Structure"));
15 setAuthor(QStringLiteral("Laurent Montel"));
16 setInfo(
17 i18n("<p><b>Icedove import filter</b></p>"
18 "<p>Select your base Icedove mailfolder"
19 " (usually ~/.icedove/*.default/Mail/Local Folders/).</p>"
20 "<p><b>Note:</b> Never choose a Folder which <u>does not</u> contain mbox-files (for example,"
21 " a maildir): if you do, you will get many new folders.</p>"
22 "<p>Since it is possible to recreate the folder structure, the folders "
23 "will be stored under: \"Icedove-Import\".</p>"));
24}
25
26FilterIcedove::~FilterIcedove()
27{
28}
29
30QString FilterIcedove::isMailerFound()
31{
32 QDir directory(FilterIcedove::defaultSettingsPath());
33 if (directory.exists()) {
34 return i18nc("name of icedove application", "Icedove");
35 }
36 return {};
37}
38
39QString FilterIcedove::settingsPath()
40{
41 return FilterIcedove::defaultSettingsPath();
42}
43
44QString FilterIcedove::defaultSettingsPath()
45{
46 return QDir::homePath() + QLatin1StringView("/.icedove/");
47}
48
49QString FilterIcedove::defaultInstallFolder() const
50{
51 return QStringLiteral("Icedove-Import/");
52}
Imports Thunderbird mail folder recursively, keeping the folder structure.
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
QString homePath()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.