Commit 4c78b21f authored by Laurent Montel's avatar Laurent Montel 😁

create settings

parent 957d08b9
Pipeline #27443 passed with stage
in 55 minutes and 27 seconds
......@@ -164,6 +164,18 @@ CollectionExpirySettings CollectionExpiryWidget::save()
{
CollectionExpirySettings settings;
settings.expiryGloballyOn = expireReadMailCB->isChecked() || expireUnreadMailCB->isChecked();
// we always write out days now
settings.daysToExpireRead = expireReadMailSB->value();
settings.daysToExpireUnread = expireUnreadMailSB->value();
settings.mReadExpireUnits = expireReadMailCB->isChecked() ? MailCommon::ExpireCollectionAttribute::ExpireDays : MailCommon::ExpireCollectionAttribute::ExpireNever;
settings.mUnreadExpireUnits = expireUnreadMailCB->isChecked() ? MailCommon::ExpireCollectionAttribute::ExpireDays : MailCommon::ExpireCollectionAttribute::ExpireNever;
if (deletePermanentlyRB->isChecked()) {
settings.mExpireAction = ExpireCollectionAttribute::ExpireDelete;
} else {
settings.mExpireAction = ExpireCollectionAttribute::ExpireMove;
}
#if 0
const bool enableGlobally = expireReadMailCB->isChecked() || expireUnreadMailCB->isChecked();
const Akonadi::Collection expireToFolder = folderSelector->collection();
......
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