~noskcaj/ubuntu/utopic/geary/merge2

« back to all changes in this revision

Viewing changes to src/engine/imap-engine/replay-ops/imap-engine-fetch-email.vala

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-04-10 10:57:25 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20130410105725-f532n2cfre2sq6mf
Tags: 0.3.1-0ubuntu1
* New upstream bugfix version:
  - Reduced CPU and memory footprint
  - Account dialog bugs fixed
  - Stability improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        if (email != null && usable_remote_count > 0) {
57
57
            int local_count = yield engine.local_folder.get_email_count_async(ImapDB.Folder.ListFlags.NONE,
58
58
                cancellable);
59
 
            email.update_position(email.position + (usable_remote_count - local_count));
 
59
            if (local_count < usable_remote_count)
 
60
                email.update_position(email.position + (usable_remote_count - local_count));
60
61
        }
61
62
        
62
63
        // If returned in full, done