[dovecot/core] 043ee6: lib: Added i_stream_create_sized_range()

GitHub noreply at github.com
Thu Feb 23 11:00:15 UTC 2017


  Branch: refs/heads/master-2.2
  Home:   https://github.com/dovecot/core
  Commit: 043ee67696d8544db1dfb9698882c85afff8dc74
      https://github.com/dovecot/core/commit/043ee67696d8544db1dfb9698882c85afff8dc74
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/lib/istream-sized.c
    M src/lib/istream-sized.h

  Log Message:
  -----------
  lib: Added i_stream_create_sized_range()

This is just a small wrapper to i_stream_create_sized() to specify stream's
start offset.


  Commit: 3d304f67d92013655fbf5f29d056835eaff3b388
      https://github.com/dovecot/core/commit/3d304f67d92013655fbf5f29d056835eaff3b388
  Author: Martti Rannanjärvi <martti.rannanjarvi at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/lib/istream-sized.c

  Log Message:
  -----------
  lib: remove failed bool from sized_istream struct

This is no longer needed as we are now checking for
stream_errno also in istream.c


  Commit: f43f9f5b0e7070445bb053a73cf1c77d2999ef3f
      https://github.com/dovecot/core/commit/f43f9f5b0e7070445bb053a73cf1c77d2999ef3f
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/lib/istream-sized.c

  Log Message:
  -----------
  lib: istream-sized should log errors with its own name, not parent's name


  Commit: 6f287dc05a76deee6686390fd24794dc802aa17d
      https://github.com/dovecot/core/commit/6f287dc05a76deee6686390fd24794dc802aa17d
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/lib/istream-sized.c

  Log Message:
  -----------
  lib: istream-sized - remove explicit i_error() logging

The stream_errno is set, so it's the caller's responsibility to log the
error. There's no need to log it twice.


  Commit: 19d66fec1b3650122abdcdc6b683a9fa7ced8f1f
      https://github.com/dovecot/core/commit/19d66fec1b3650122abdcdc6b683a9fa7ced8f1f
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/lib/istream-sized.c
    M src/lib/istream-sized.h
    A src/lib/test-istream-sized.c

  Log Message:
  -----------
  lib: istream-sized - set stream_errno=EPIPE if stream is too small


  Commit: a7ce88361c69c2a5b8968029427ad32134da14db
      https://github.com/dovecot/core/commit/a7ce88361c69c2a5b8968029427ad32134da14db
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/lib/istream-sized.c

  Log Message:
  -----------
  lib: istream-sized - consistently set stream_errno=EINVAL if stream is too large

Earlier it was sometimes done and sometimes not, depending on whether the
parent istream happened to stop at the expected boundary.


  Commit: f981b71773b76e95285dd719368716cdab948075
      https://github.com/dovecot/core/commit/f981b71773b76e95285dd719368716cdab948075
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/lib/istream-sized.c
    M src/lib/istream-sized.h
    M src/lib/test-istream-sized.c

  Log Message:
  -----------
  lib: Added i_stream_create_min_sized*()


  Commit: 7e6a434ec9abb0bf252af25fd5f10bff8f1521b3
      https://github.com/dovecot/core/commit/7e6a434ec9abb0bf252af25fd5f10bff8f1521b3
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/lib-mail/istream-attachment-extractor.c

  Log Message:
  -----------
  lib-mail: istream-attachment-extractor - remove unnecessary code

It's enough to set the stream_errno.


  Commit: e5e1659ec22447d8869922426e23f60f0816f885
      https://github.com/dovecot/core/commit/e5e1659ec22447d8869922426e23f60f0816f885
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/lib-mail/istream-attachment-extractor.c

  Log Message:
  -----------
  lib-mail: istream-attachment-extractor - use EIO for internal errors

These happen only if the attachment writing failed for some reason.
The input stream itself can't have any errors, so EINVAL isn't proper.


  Commit: a540d9ca59eab432db1ef659b52a1a391a7d3f27
      https://github.com/dovecot/core/commit/a540d9ca59eab432db1ef659b52a1a391a7d3f27
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/lib-mail/test-istream-attachment.c

  Log Message:
  -----------
  lib-mail: Improve istream-attachment-extractor unit test for EIO errors


  Commit: a427bf499d15a07b9f0c566c7475e157011a24d4
      https://github.com/dovecot/core/commit/a427bf499d15a07b9f0c566c7475e157011a24d4
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/lib-mail/test-istream-attachment.c

  Log Message:
  -----------
  lib-mail: Fix memory leak in test-istream-attachment


  Commit: 83ba28bcdbfbbcbdc6d8c1d882f67e5608f113c5
      https://github.com/dovecot/core/commit/83ba28bcdbfbbcbdc6d8c1d882f67e5608f113c5
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/lib-mail/istream-attachment-connector.c
    M src/lib-mail/test-istream-attachment.c

  Log Message:
  -----------
  lib-mail: Make sure istream-attachment-connector detects wrong mail size.


  Commit: 9a19e1594d13e97cb1e0677a432de9ddf620ee73
      https://github.com/dovecot/core/commit/9a19e1594d13e97cb1e0677a432de9ddf620ee73
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/lib-mail/istream-attachment-connector.c
    M src/lib-mail/istream-attachment-connector.h
    M src/lib-mail/test-istream-attachment.c

  Log Message:
  -----------
  lib-mail: istream-attachment-connector now allows msg_size=-1 for "unknown".


  Commit: d02348d8257faacdca8706a427489532262c96d7
      https://github.com/dovecot/core/commit/d02348d8257faacdca8706a427489532262c96d7
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

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

  Log Message:
  -----------
  lib-storage: Allow mail_storage_set_error() to use existing error_string

Fixes some code that may be attempting to copy an error from one storage to
another, but actually ends up trying to copy within the same storage.


  Commit: 7e525eb504c643e8cffcb7a62cbd57a1b877aa6f
      https://github.com/dovecot/core/commit/7e525eb504c643e8cffcb7a62cbd57a1b877aa6f
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-02-23 (Thu, 23 Feb 2017)

  Changed paths:
    M src/plugins/virtual/virtual-sync.c

  Log Message:
  -----------
  virtual: Include virtual mailbox name in "Mailbox ID unexpectedly lost" error


Compare: https://github.com/dovecot/core/compare/b0cd8e156a99...7e525eb504c6


More information about the dovecot-cvs mailing list