Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 237391 Details for
Bug 352391
kdepim: compacting mbox shows empty folder
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to correct mbox compacting problem
kdepim-3.5.7-bug#146967.patch (text/plain), 2.29 KB, created by
Sammy
on 2007-10-25 14:51:55 UTC
(
hide
)
Description:
Patch to correct mbox compacting problem
Filename:
MIME Type:
Creator:
Sammy
Created:
2007-10-25 14:51:55 UTC
Size:
2.29 KB
patch
obsolete
>Index: kmheaders.cpp >=================================================================== >--- kmail/kmheaders.cpp (revision 680162) >+++ kmail/kmheaders.cpp (working copy) >@@ -2418,6 +2418,15 @@ int KMHeaders::currentItemIndex() > //----------------------------------------------------------------------------- > void KMHeaders::setCurrentItemByIndex(int msgIdx) > { >+ kdDebug(5006) << k_funcinfo << "idx=" << msgIdx << " size=" << mItems.size() >+ << " isopen=" << mFolder->isOpened() << endl; >+ if (!mFolder->isOpened()) >+ { >+ setFolder(mFolder); >+ kdDebug(5006) << " needed setFolder(), size=" << mItems.size() >+ << " isopen=" << mFolder->isOpened() << endl; >+ } >+ > if ((msgIdx >= 0) && (msgIdx < (int)mItems.size())) { > clearSelection(); > bool unchanged = (currentItem() == mItems[msgIdx]); >@@ -2426,6 +2435,7 @@ void KMHeaders::setCurrentItemByIndex(in > setSelectionAnchor( currentItem() ); > if (unchanged) > highlightMessage( mItems[msgIdx], false); >+ makeHeaderVisible(); > } > } > >@@ -2928,6 +2938,13 @@ SortCacheItem* KMHeaders::findParentBySu > > bool KMHeaders::readSortOrder( bool set_selection, bool forceJumpToUnread ) > { >+ if (!mFolder->isOpened()) >+ { >+ mFolder->open("kmheaders"); >+ kdDebug(5006) << "needed reopen, isopen=" << mFolder->isOpened() >+ << " count=" << mFolder->count() << endl; >+ } >+ > //all cases > Q_INT32 column, ascending, threaded, discovered_count, sorted_count, appended; > Q_INT32 deleted_count = 0; >Index: compactionjob.cpp >=================================================================== >--- kmail/compactionjob.cpp (revision 680162) >+++ kmail/compactionjob.cpp (working copy) >@@ -65,7 +65,7 @@ void MboxCompactionJob::kill() > Q_ASSERT( mCancellable ); > // We must close the folder if we opened it and got interrupted > if ( mFolderOpen && mSrcFolder && mSrcFolder->storage() ) >- mSrcFolder->storage()->close("mboxcompactjob"); >+ mSrcFolder->storage()->close("mboxcompact"); > > if ( mTmpFile ) > fclose( mTmpFile ); >@@ -124,7 +124,7 @@ int MboxCompactionJob::executeNow( bool > return errno; > } > mOpeningFolder = true; // Ignore open-notifications while opening the folder >- storage->open("mboxcompactjob"); >+ storage->open("mboxcompact"); > mOpeningFolder = false; > mFolderOpen = true; > mOffset = 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 352391
: 237391