[dovecot/core] 12d10d: imapc: Update mail size also when istream_opened()...

GitHub noreply at github.com
Fri Mar 16 09:30:40 EET 2018


  Branch: refs/heads/master-2.2
  Home:   https://github.com/dovecot/core
  Commit: 12d10d0098fc61b72563d4e6719334bacc2a1969
      https://github.com/dovecot/core/commit/12d10d0098fc61b72563d4e6719334bacc2a1969
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-03-16 (Fri, 16 Mar 2018)

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

  Log Message:
  -----------
  imapc: Update mail size also when istream_opened() hook is called

When fetching a message body the cached message size was set. However,
if istream_opened() hook was used this wasn't done. If a client had
fetched both (RFC822.SIZE BODY.PEEK[]) and the server sent a wrong
RFC822.SIZE, that size was used for the message body size, which resulted
in "Cached message size larger than expected" errors.


  Commit: 16cd7e01d7d70b2a70e50438987b0a9f6fa6794a
      https://github.com/dovecot/core/commit/16cd7e01d7d70b2a70e50438987b0a9f6fa6794a
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2018-03-16 (Fri, 16 Mar 2018)

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

  Log Message:
  -----------
  imapc: Update mail size also when RFC822.SIZE is smaller than fetched header size

If this isn't done, istream-mail will detect that the fetched header is
larger than RFC822.SIZE and fail with "Cached message size smaller than
expected"


Compare: https://github.com/dovecot/core/compare/446c0b02a780...16cd7e01d7d7


More information about the dovecot-cvs mailing list