MailImporter

filterevolution_v2.h
1/*
2 filterevolution_v2.h - Evolution 2.0.x mail import
3
4 SPDX-FileCopyrightText: 2005 Danny Kukawka <danny.kukawka@web.de>
5
6 Inspired and partly copied from filterevolution
7 SPDX-FileCopyrightText: 2004 Simon MARTIN <simartin@users.sourceforge.net>
8
9 SPDX-License-Identifier: GPL-2.0-or-later
10*/
11
12#pragma once
13
14#include "filters.h"
15
16namespace MailImporter
17{
18/**
19 * Imports Evolution v2.x mail folder recursively, keeping the folder structure.
20 * @author Danny Kukawka
21 */
22class MAILIMPORTER_EXPORT FilterEvolution_v2 : public Filter
23{
24public:
26 ~FilterEvolution_v2() override;
27
28 void import() override;
29 void importMails(const QString &maildir);
30 [[nodiscard]] static QString defaultSettingsPath();
31 [[nodiscard]] static QString isMailerFound();
32
33private:
34 void importDirContents(const QString &, const QString &, const QString &);
35 void importMBox(const QString &, const QString &, const QString &);
36 [[nodiscard]] bool excludeFiles(const QString &file);
37};
38}
Imports Evolution v2.x 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 Fri Nov 29 2024 11:54:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.