Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 20d61312 authored by Laurent Montel's avatar Laurent Montel 😁

Start to fix Bug 342834 - ImportWizard fails to detect Icedove email client...

Start to fix Bug 342834 - ImportWizard fails to detect Icedove email client even while it is running

CCBUG: 342834
parent 3dc028df
......@@ -22,6 +22,7 @@ set(libmailimporter_SRCS
filter_lnotes.cpp
filter_kmail_archive.cpp
filter_mailmangzip.cpp
filtericedove.cpp
filterbalsa.cpp
selectthunderbirdprofilewidget.cpp
othermailerutil.cpp
......
......@@ -105,14 +105,18 @@ QMap<QString,QString> FilterThunderbird::listProfile(QString&currentProfile)
}
/** Recursive import of Evolution's mboxes. */
QString FilterThunderbird::settingsPath()
{
return FilterThunderbird::defaultSettingsPath();
}
void FilterThunderbird::import()
{
/**
* We ask the user to choose Thunderbird's root directory.
* This should be usually ~/.thunderbird/xxxx.default/Mail/Local Folders/
*/
QString thunderDir = defaultSettingsPath();
QString thunderDir = settingsPath();
QDir d( thunderDir );
if ( !d.exists() ) {
thunderDir = QDir::homePath();
......
......@@ -39,6 +39,8 @@ public:
static QString defaultProfile(QWidget *parent = 0);
static QMap<QString, QString> listProfile(QString&currentProfile);
protected:
virtual QString settingsPath();
private:
void importDirContents(const QString&, const QString&, const QString&);
void importMBox(const QString&, const QString&, const QString&);
......
/*
Copyright (c) 2015 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 "filtericedove.h"
using namespace MailImporter;
FilterIcedove::FilterIcedove()
: FilterThunderbird()
{
}
FilterIcedove::~FilterIcedove()
{
}
QString FilterIcedove::settingsPath()
{
return FilterIcedove::defaultSettingsPath();
}
QString FilterIcedove::defaultSettingsPath()
{
return QDir::homePath() + QLatin1String( "/.icedove/" );
}
/*
Copyright (c) 2015 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 FILTERICEDOVE_H
#define FILTERICEDOVE_H
#include "filter_thunderbird.h"
namespace MailImporter {
class MAILIMPORTER_EXPORT FilterIcedove : public FilterThunderbird
{
public:
FilterIcedove();
~FilterIcedove();
static QString defaultSettingsPath();
protected:
QString settingsPath();
};
}
#endif // FILTERICEDOVE_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