[dovecot/core] cf747d: lib-storage: Don't enforce creation of vsize heade...

GitHub noreply at github.com
Mon Jun 4 22:30:12 EEST 2018


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: cf747d64eba2cc05c0b12fd4e87e4103db782d0a
      https://github.com/dovecot/core/commit/cf747d64eba2cc05c0b12fd4e87e4103db782d0a
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-06-04 (Mon, 04 Jun 2018)

  Changed paths:
    M src/lib-storage/index/index-mailbox-size.c

  Log Message:
  -----------
  lib-storage: Don't enforce creation of vsize header.

It's useful for caching quota=count and for STATUS (X-SIZE). If neither is
used the header shouldn't be created and kept up-to-date. If the header is
enabled, it also triggers creation of per-email vsize records.


  Commit: 153ab952f77ed25b71fa4fa9774ff3e3a776b91c
      https://github.com/dovecot/core/commit/153ab952f77ed25b71fa4fa9774ff3e3a776b91c
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-06-04 (Mon, 04 Jun 2018)

  Changed paths:
    M src/lib-storage/index/index-mail.c

  Log Message:
  -----------
  lib-storage: Don't set virtual_size from index record if it's already set

The existing virtual_size may be a correct one, while the one in the index
may be wrong. This will be an especially important fix with the next
commit, because it would make the existing inexact_total_sizes=FALSE wrong.


  Commit: 79103c27ffdf838f71c51adcebe70d6a35ce1a33
      https://github.com/dovecot/core/commit/79103c27ffdf838f71c51adcebe70d6a35ce1a33
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-06-04 (Mon, 04 Jun 2018)

  Changed paths:
    M src/lib-storage/index/index-mail.c

  Log Message:
  -----------
  lib-storage: Move code to index_mail_try_set_body_size()

This also adds a check to make sure virtual_size is set. With the current
caller it was already guaranteed to be set.


  Commit: 033801208edad3da7963dfe919250d1bd7dc1e31
      https://github.com/dovecot/core/commit/033801208edad3da7963dfe919250d1bd7dc1e31
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-06-04 (Mon, 04 Jun 2018)

  Changed paths:
    M src/lib-storage/index/imapc/imapc-mail-fetch.c
    M src/lib-storage/index/imapc/imapc-mail.c
    M src/lib-storage/index/index-mail.c
    M src/lib-storage/index/index-mail.h

  Log Message:
  -----------
  imapc: Don't use RFC822.SIZE values for message body size calculation

If the RFC822.SIZE doesn't match the exact stream size, the body size
calculation will become wrong. The only downside to this patch is that
now the body size will need to be calculated by parsing the stream, but
there shouldn't be any need to do that unless the body was already
FETCHed, so it shouldn't cause any extra IMAP traffic.


  Commit: eb480426bf2be7e28960b7ee202d4f77d354f5d8
      https://github.com/dovecot/core/commit/eb480426bf2be7e28960b7ee202d4f77d354f5d8
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-06-04 (Mon, 04 Jun 2018)

  Changed paths:
    M src/lib-storage/index/index-mail.c

  Log Message:
  -----------
  lib-storage: Set index_mail_data.body_size if it can be calculated easily

Probably doesn't help with anything currently, but makes the code more
consistent in how it works.


Compare: https://github.com/dovecot/core/compare/f1242f8f0e38...eb480426bf2b
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the dovecot-cvs mailing list