MailImporter

filterthunderbird.h
1/*
2 filterthunderbird.h - Thunderbird mail import
3
4 SPDX-FileCopyrightText: 2005 Danny Kukawka <danny.kukawka@web.de>
5 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#pragma once
11
12#include "filters.h"
13
14namespace MailImporter
15{
16/**
17 * Imports Thunderbird mail folder recursively, keeping the folder structure.
18 * @author Danny Kukawka
19 */
20class MAILIMPORTER_EXPORT FilterThunderbird : public Filter
21{
22public:
24 ~FilterThunderbird() override;
25
26 void import() override;
27 void importMails(const QString &maildir);
28
29 [[nodiscard]] static QString defaultSettingsPath();
30 [[nodiscard]] static QString defaultProfile(const QString &defaultSettingPath, QWidget *parent = nullptr);
31 [[nodiscard]] static QMap<QString, QString> listProfile(QString &currentProfile, const QString &defaultSettingPath);
32
33 [[nodiscard]] static QString isMailerFound();
34
35protected:
36 [[nodiscard]] virtual QString defaultInstallFolder() const;
37 [[nodiscard]] virtual QString settingsPath();
38
39private:
40 MAILIMPORTER_NO_EXPORT void importDirContents(const QString &, const QString &, const QString &);
41 MAILIMPORTER_NO_EXPORT void importMBox(const QString &, const QString &, const QString &);
42 [[nodiscard]] MAILIMPORTER_NO_EXPORT bool excludeFiles(const QString &file);
43};
44}
Imports Thunderbird mail folder recursively, keeping the folder structure.
The Filter class.
Definition filters.h:29
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.