|
|
|
|
@ -1086,15 +1086,6 @@ void KMMainWidget::slotTroubleshootFolder() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void KMMainWidget::slotInvalidateIMAPFolders() { |
|
|
|
|
if ( KMessageBox::warningContinueCancel( this, |
|
|
|
|
i18n("Are you sure you want to refresh the IMAP cache?\n" |
|
|
|
|
"This will remove all changes that you have done " |
|
|
|
|
"locally to your IMAP folders."), |
|
|
|
|
i18n("Refresh IMAP Cache"), i18n("&Refresh") ) == KMessageBox::Continue ) |
|
|
|
|
kmkernel->acctMgr()->invalidateIMAPFolders(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
void KMMainWidget::slotExpireAll() { |
|
|
|
|
KConfig *config = KMKernel::config(); |
|
|
|
|
@ -2212,10 +2203,6 @@ void KMMainWidget::setupActions() |
|
|
|
|
this, SLOT(slotExpireAll()), |
|
|
|
|
actionCollection(), "expire_all_folders" ); |
|
|
|
|
|
|
|
|
|
(void) new KAction( i18n("&Refresh Local IMAP Cache"), "refresh", |
|
|
|
|
this, SLOT(slotInvalidateIMAPFolders()), |
|
|
|
|
actionCollection(), "file_invalidate_imap_cache" ); |
|
|
|
|
|
|
|
|
|
(void) new KAction( i18n("Empty All &Trash Folders"), 0, |
|
|
|
|
KMKernel::self(), SLOT(slotEmptyTrash()), |
|
|
|
|
actionCollection(), "empty_trash" ); |
|
|
|
|
|