Commit 3f1498da authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Look at to test pop3 resource import/export

parent eb30845e
Pipeline #22973 passed with stage
in 31 minutes and 8 seconds
......@@ -17,3 +17,4 @@ mails/akonadi_mixedmaildir_resource_1/mail.zip
mails/akonadi_maildir_resource_1/mail.zip
mails/akonadi_maildir_resource_1/agent_config_akonadi_maildir_resource_1
mails/akonadi_maildir_resource_1/akonadi_maildir_resource_1rc
resources/akonadi_pop3_resource_1rc
[General]
host=pop3.foo.org
intervalCheckEnabled=true
intervalCheckInterval=24
leaveOnServer=true
leaveOnServerDays=25
login=kde%foo.org
name=kde
pipelining=true
targetCollection=3778
useTLS=true
[LeaveOnServer]
seenUidList=1589466101.18581.mail175.ha.foo.net\\,S=6906,1589466102.10772.mail114.ha.foo.net\\
seenUidTimeList=1589467684,1589467684
......@@ -4,3 +4,4 @@ information/exportdatatype.xml
configs/foldermailarchiverc
configs/templatesconfigurationrc
configs/filters
resources/akonadi_pop3_resource_1rc
[General]
host=pop3.foo.org
intervalCheckEnabled=true
intervalCheckInterval=24
leaveOnServer=true
leaveOnServerDays=25
login=kde%foo.org
name=kde
pipelining=true
targetCollection=foo/bla bla/bli3778
useTLS=true
[LeaveOnServer]
seenUidList=1589466101.18581.mail175.ha.foo.net\\,S=6906,1589466102.10772.mail114.ha.foo.net\\
seenUidTimeList=1589467684,1589467684
......@@ -17,3 +17,4 @@ mails/akonadi_mixedmaildir_resource_1/agent_config_akonadi_mixedmaildir_resource
mails/akonadi_mixedmaildir_resource_1/akonadi_mixedmaildir_resource_1rc
mails/akonadi_mixedmaildir_resource_1/mail.zip
transports/mailtransports
resources/akonadi_pop3_resource_1rc
......@@ -18,6 +18,10 @@ TopLevelIsContainer true
akonadi_mixedmaildir_resource_new_resource_0
akonadi_maildir_resource_new_resource_2
--------------------------
akonadi_pop3_resource
akonadi_pop3_resource_1rc
0
--------------------------
Special Collection : 3 colId 3734
--------------------------
Special Collection : 5 colId 3730
......
......@@ -73,6 +73,13 @@ void ExportMailJobInterfaceTest::exportMail()
info.mimeTypes = QStringList() << KMime::Message::mimeType();
info.capabilities = QStringList() << QLatin1String("Resource");
lstInfo << info;
//Pop3 support
info.identifier = QLatin1String("akonadi_pop3_resource_1");
info.mimeTypes = QStringList() << KMime::Message::mimeType();
info.capabilities = QStringList() << QLatin1String("Resource");
lstInfo << info;
//TODO add kolab and other
//Add extra resource.
......
......@@ -84,6 +84,7 @@ QVector<Utils::AkonadiInstanceInfo> ExportMailJobInterfaceTestImpl::listOfResour
QString ExportMailJobInterfaceTestImpl::storeResources(KZip *archive, const QString &identifier, const QString &path)
{
ResourceConverterTest converter;
converter.setTestPath(mPathConfig);
return converter.storeResources(archive, identifier, path);
}
......
......@@ -180,7 +180,7 @@ QString ResourceConverterBase::storeResources(KZip *archive, const QString &iden
{
const QString agentFileName = identifier + QStringLiteral("rc");
const QString configFileName = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + QLatin1Char('/') + agentFileName;
qCDebug(PIMDATAEXPORTERCORE_LOG) << "configFileName " << configFileName << "agentFileName " << configFileName;
qCWarning(PIMDATAEXPORTERCORE_LOG) << "configFileName " << configFileName << "agentFileName " << configFileName;
KSharedConfigPtr resourceConfig = KSharedConfig::openConfig(configFileName);
QTemporaryFile tmp;
......
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