MailImporter

filtersylpheed.h
1/*
2 filtersylpheed.h - Sylpheed maildir 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 <QHash>
13
14#include "filters.h"
15namespace MailImporter
16{
17class FilterSylpheedPrivate;
18/**
19 * Imports Sylpheed mail folder with maildir format recursively, recreating the folder structure.
20 * @author Danny Kukawka
21 */
22class MAILIMPORTER_EXPORT FilterSylpheed : public Filter
23{
24public:
26 ~FilterSylpheed() override;
27
28 [[nodiscard]] static QString defaultSettingsPath();
29 [[nodiscard]] static QString isMailerFound();
30
31 void import() override;
32 virtual void importMails(const QString &maildir);
33
34 /* return local mail dir from folderlist.xml*/
35 virtual QString localMailDirPath();
36 [[nodiscard]] virtual bool excludeFile(const QString &file);
37 virtual QString defaultInstallFolder() const;
38 virtual QString markFile() const;
39
40private:
41 MAILIMPORTER_NO_EXPORT void importDirContents(const QString &);
42 MAILIMPORTER_NO_EXPORT void importFiles(const QString &);
43 MAILIMPORTER_NO_EXPORT void processDirectory(const QString &path);
44
45 MAILIMPORTER_NO_EXPORT void readMarkFile(const QString &, QHash<QString, unsigned long> &);
46 [[nodiscard]] MAILIMPORTER_NO_EXPORT MailImporter::MessageStatus msgFlagsToString(unsigned long flags);
47 std::unique_ptr<FilterSylpheedPrivate> const d;
48};
49}
Imports Sylpheed mail folder with maildir format recursively, recreating the folder structure.
~FilterSylpheed() override
Destructor.
The Filter class.
Definition filters.h:29
The MessageStatus class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:39 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.