equal
deleted
inserted
replaced
686 // have been orphaned and which have not using the following rules. |
686 // have been orphaned and which have not using the following rules. |
687 |
687 |
688 // * If the remote message is no longer there: |
688 // * If the remote message is no longer there: |
689 // (1) Then the local message is orphaned (always). |
689 // (1) Then the local message is orphaned (always). |
690 // * If the remote message is still there and it is not one of the N most recent: |
690 // * If the remote message is still there and it is not one of the N most recent: |
691 // (2) If the local message has body parts do nothing. |
691 // (2) If the local message has body parts do nothing. - This Check has been removed as per new CMail UI. |
692 // (3) If the local message does not have body parts, then it is orphaned |
692 // (3) If the local message does not have body parts, then it is orphaned |
693 // unless is is a message we have selected for download. |
693 // unless is is a message we have selected for download. |
694 // * If the remote message is still there and it is one of the N most recent: |
694 // * If the remote message is still there and it is one of the N most recent: |
695 // (4) Do nothing. |
695 // (4) Do nothing. |
696 |
696 |
732 // Here the remote uid matches the local uid, but the message falls outside |
732 // Here the remote uid matches the local uid, but the message falls outside |
733 // of the N most recent messages. See cases (2) & (3). |
733 // of the N most recent messages. See cases (2) & (3). |
734 SetEntryL((*iFolderIndex)[localloop].iMsvId); |
734 SetEntryL((*iFolderIndex)[localloop].iMsvId); |
735 TMsvEmailEntry message(iServerEntry.Entry()); |
735 TMsvEmailEntry message(iServerEntry.Entry()); |
736 // Does message have any downloaded parts? |
736 // Does message have any downloaded parts? |
737 if(!message.Complete() && |
737 // The local message does not have any body parts and |
738 !message.BodyTextComplete()) |
738 // is not selected for download, so it is orphaned. |
739 { |
739 // See case (3) above. |
740 // The local message does not have any body parts and |
740 __LOG_FORMAT((iSavedSession->LogId(), "ImapFolder: Local message (%d) is only header and not selected for download, deleting", (*iFolderIndex)[localloop].iMsvId)); |
741 // is not selected for download, so it is orphaned. |
741 removeThis = ETrue; |
742 // See case (3) above. |
742 iOrphanedMessages++; |
743 __LOG_FORMAT((iSavedSession->LogId(), "ImapFolder: Local message (%d) is only header and not selected for download, deleting", (*iFolderIndex)[localloop].iMsvId)); |
|
744 removeThis = ETrue; |
|
745 iOrphanedMessages++; |
|
746 } |
|
747 } |
743 } |
748 break; |
744 break; |
749 } |
745 } |
750 |
746 |
751 ++resultsloop; |
747 ++resultsloop; |