Changeset View
Changeset View
Standalone View
Standalone View
libksieve/ksieveui/vacation/vacationcheckjob.cpp
Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Lines | |||||
void VacationCheckJob::getNextScript() | void VacationCheckJob::getNextScript() | ||||
{ | { | ||||
if (isLastScript()) { | if (isLastScript()) { | ||||
//TODO: no script found | //TODO: no script found | ||||
mNoScriptFound = true; | mNoScriptFound = true; | ||||
emit scriptActive(this, QString(), false); | emit scriptActive(this, QString(), false); | ||||
kDebug() << "no vacation script found :("; | kDebug() << "no vacation script found :("; | ||||
return; | |||||
} | } | ||||
KUrl url = mUrl; | KUrl url = mUrl; | ||||
url.setFileName(mAvailableScripts[mScriptPos]); | url.setFileName(mAvailableScripts[mScriptPos]); | ||||
mScriptPos += 1; | mScriptPos += 1; | ||||
if (Util::isKep14ProtectedName(url.fileName())) { | if (Util::isKep14ProtectedName(url.fileName())) { | ||||
getNextScript(); | getNextScript(); | ||||
} | } | ||||
mSieveJob = KManageSieve::SieveJob::get(url); | mSieveJob = KManageSieve::SieveJob::get(url); | ||||
Show All 30 Lines |