Commit d23176a5 authored by Laurent Montel's avatar Laurent Montel 😁

Add seamonkey support

parent 27d8a6fb
cmake_minimum_required(VERSION 3.0) cmake_minimum_required(VERSION 3.0)
set(PIM_VERSION "5.5.40") set(PIM_VERSION "5.5.41")
project(MailImporter VERSION ${PIM_VERSION}) project(MailImporter VERSION ${PIM_VERSION})
......
...@@ -48,6 +48,7 @@ set(libmailimporter_filters_SRCS ...@@ -48,6 +48,7 @@ set(libmailimporter_filters_SRCS
filters/filtermailmangzip.cpp filters/filtermailmangzip.cpp
filters/filtericedove.cpp filters/filtericedove.cpp
filters/filterbalsa.cpp filters/filterbalsa.cpp
filters/filterseamonkey.cpp
) )
set(libmailimporter_SRCS set(libmailimporter_SRCS
...@@ -136,6 +137,7 @@ ecm_generate_headers(MailImporter_FiltersCamelCase_HEADERS ...@@ -136,6 +137,7 @@ ecm_generate_headers(MailImporter_FiltersCamelCase_HEADERS
FilterKMail_maildir FilterKMail_maildir
FilterKMailArchive FilterKMailArchive
FilterIcedove FilterIcedove
FilterSeaMonkey
REQUIRED_HEADERS MailImporter_Filters_HEADERS REQUIRED_HEADERS MailImporter_Filters_HEADERS
PREFIX MailImporter PREFIX MailImporter
RELATIVE filters RELATIVE filters
......
/*
Copyright (c) 2017 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "filterseamonkey.h"
#include <KLocalizedString>
using namespace MailImporter;
FilterSeaMonkey::FilterSeaMonkey()
: FilterThunderbird()
{
setName(i18n("Import SeaMonkey Mails and Folder Structure"));
setAuthor(QStringLiteral("Laurent Montel"));
setInfo(i18n("<p><b>SeaMonkey import filter</b></p>"
"<p>Select your base SeaMonkey mailfolder"
" (usually ~/.icedove/*.default/Mail/Local Folders/).</p>"
"<p><b>Note:</b> Never choose a Folder which <u>does not</u> contain mbox-files (for example,"
" a maildir): if you do, you will get many new folders.</p>"
"<p>Since it is possible to recreate the folder structure, the folders "
"will be stored under: \"SeaMonkey-Import\".</p>"));
}
FilterSeaMonkey::~FilterSeaMonkey()
{
}
QString FilterSeaMonkey::settingsPath()
{
return FilterSeaMonkey::defaultSettingsPath();
}
QString FilterSeaMonkey::defaultSettingsPath()
{
return QDir::homePath() + QLatin1String("/.mozilla/seamonkey");
}
QString FilterSeaMonkey::defaultInstallFolder() const
{
return QStringLiteral("SeaMonkey-Import/");
}
/*
Copyright (c) 2017 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef FilterSeaMonkey_H
#define FilterSeaMonkey_H
#include "filterthunderbird.h"
namespace MailImporter
{
class MAILIMPORTER_EXPORT FilterSeaMonkey : public FilterThunderbird
{
public:
FilterSeaMonkey();
~FilterSeaMonkey();
static QString defaultSettingsPath();
protected:
QString defaultInstallFolder() const Q_DECL_OVERRIDE;
QString settingsPath() Q_DECL_OVERRIDE;
};
}
#endif // FilterSeaMonkey_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment