[dovecot/core] 57997b: imap: Add imap_client_command_get_reason()

GitHub noreply at github.com
Thu Apr 6 20:30:14 EEST 2017


  Branch: refs/heads/master-2.2
  Home:   https://github.com/dovecot/core
  Commit: 57997bbfe9e54b83c28cc2e73a1818674615c941
      https://github.com/dovecot/core/commit/57997bbfe9e54b83c28cc2e73a1818674615c941
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

  Changed paths:
    M src/imap/cmd-fetch.c
    M src/imap/imap-commands-util.c
    M src/imap/imap-commands-util.h

  Log Message:
  -----------
  imap: Add imap_client_command_get_reason()

All the command -> reason string conversions now go through this function.


  Commit: 5ffca783786caed5b92c137619a75a198532b1bc
      https://github.com/dovecot/core/commit/5ffca783786caed5b92c137619a75a198532b1bc
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

  Changed paths:
    M src/lib-imap/imap-util.c
    M src/lib-imap/imap-util.h

  Log Message:
  -----------
  lib-imap: Add imap_write_args_for_human()


  Commit: 82e99cd7b90ae5000517492cdc77c9b8f5c85b79
      https://github.com/dovecot/core/commit/82e99cd7b90ae5000517492cdc77c9b8f5c85b79
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

  Changed paths:
    M src/imap/imap-client.c
    M src/imap/imap-client.h

  Log Message:
  -----------
  imap: Add client_command_context.human_args

Generated with imap_write_args_for_human()


  Commit: 879cad3d74e91dbf8074eff3307284a599ea887a
      https://github.com/dovecot/core/commit/879cad3d74e91dbf8074eff3307284a599ea887a
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

  Changed paths:
    M src/imap/imap-commands-util.c

  Log Message:
  -----------
  imap: Set command reason strings using the new human_args

This way the reason string is already suitable for logging, since it's
guaranteed to be valid UTF-8 without control chars.


  Commit: 076f7f56e47f0f8b9842c4eb16929f0247e75eef
      https://github.com/dovecot/core/commit/076f7f56e47f0f8b9842c4eb16929f0247e75eef
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

  Changed paths:
    M src/auth/auth-settings.c

  Log Message:
  -----------
  auth: Update default policy string to include device id and protocol


  Commit: fab03d4e1be3598f32818719fcdbe8325bf547bf
      https://github.com/dovecot/core/commit/fab03d4e1be3598f32818719fcdbe8325bf547bf
  Author: Dmitry Yakunin <d.yakunin at rambler-co.ru>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

  Changed paths:
    M src/lib-imap-client/imapc-connection.c

  Log Message:
  -----------
  imapc: Fix memory leak in disconnected state


  Commit: 2cc26e4aa8f560815721115cab172c93fb97681b
      https://github.com/dovecot/core/commit/2cc26e4aa8f560815721115cab172c93fb97681b
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

  Changed paths:
    M src/lib-imap-client/imapc-client-private.h
    M src/lib-imap-client/imapc-client.c
    M src/lib-imap-client/imapc-client.h

  Log Message:
  -----------
  lib-imap-client: Add login_callback setter

This way it can be set before actually calling login
which might happen some time later.


  Commit: 89867170fd59650206a75083920a1679189a1487
      https://github.com/dovecot/core/commit/89867170fd59650206a75083920a1679189a1487
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

  Changed paths:
    M src/auth/passdb-imap.c
    M src/lib-imap-client/imapc-client.c
    M src/lib-imap-client/imapc-client.h
    M src/lib-storage/index/imapc/imapc-storage.c

  Log Message:
  -----------
  global: Fix imapc_client_login usage


  Commit: eedc4e47e67ab4363d6f1ff3fccbfa4977661560
      https://github.com/dovecot/core/commit/eedc4e47e67ab4363d6f1ff3fccbfa4977661560
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

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

  Log Message:
  -----------
  lib-storage: Do not clobber error with imapc


  Commit: 1b7b0f71d85506ecad23777614943b144a69c2d3
      https://github.com/dovecot/core/commit/1b7b0f71d85506ecad23777614943b144a69c2d3
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

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

  Log Message:
  -----------
  lib-storage: Return empty value in imapc_list_get_storage_name on auth error

Avoids clobbering authentication error.


  Commit: 0816664fbfe763eafe1e2bcad5430a2ee848e220
      https://github.com/dovecot/core/commit/0816664fbfe763eafe1e2bcad5430a2ee848e220
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

  Changed paths:
    M src/lib-imap-client/imapc-connection.c

  Log Message:
  -----------
  lib-imap-client: Do not reset ips when reconnecting

Avoids infinite loop


  Commit: 553fcd5942e9365ce179a9e6b14e05e38df74a04
      https://github.com/dovecot/core/commit/553fcd5942e9365ce179a9e6b14e05e38df74a04
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

  Changed paths:
    M src/auth/passdb-imap.c
    M src/lib-imap-client/imapc-client.h
    M src/lib-imap-client/imapc-connection.c
    M src/lib-storage/index/imapc/imapc-mail-fetch.c

  Log Message:
  -----------
  imapc: Use IMAPC_COMMAND_STATE_AUTH_FAILED to indicate auth failure


  Commit: ca65ac263fdae8a6e5af3658bc8b9a77a03ffec1
      https://github.com/dovecot/core/commit/ca65ac263fdae8a6e5af3658bc8b9a77a03ffec1
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

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

  Log Message:
  -----------
  lib-storage: Set internal error in imapc_list_get_hierarchy_sep


  Commit: 5ca66e6cafaa97ea8332237043533d970740d0ea
      https://github.com/dovecot/core/commit/5ca66e6cafaa97ea8332237043533d970740d0ea
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

  Changed paths:
    M src/imap-login/imap-login-client.c

  Log Message:
  -----------
  imap-login: Retain client ID only when enabled


  Commit: 12ad349ec9289bf76549dea88cd67703eb96a68a
      https://github.com/dovecot/core/commit/12ad349ec9289bf76549dea88cd67703eb96a68a
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-04-06 (Thu, 06 Apr 2017)

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

  Log Message:
  -----------
  imapc: Remove "_sec" suffix from imapc_connection_retry_interval_secs

Its type is SET_TIME, so the value doesn't have to be in seconds.


Compare: https://github.com/dovecot/core/compare/c2145f2060c7...12ad349ec928


More information about the dovecot-cvs mailing list