[dovecot/core] 1dc34a: imap: Add imap_client_command_get_reason()

GitHub noreply at github.com
Tue Apr 4 17:30:10 EEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 1dc34a3c930f9371b64ca4f4ec77edd3af8e1cf1
      https://github.com/dovecot/core/commit/1dc34a3c930f9371b64ca4f4ec77edd3af8e1cf1
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-04-04 (Tue, 04 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: 72932593c2aa46767f7e43a8e20347ad989de95b
      https://github.com/dovecot/core/commit/72932593c2aa46767f7e43a8e20347ad989de95b
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-04-04 (Tue, 04 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: bf9e29ed2d95a81780effae125fe6dca688818c1
      https://github.com/dovecot/core/commit/bf9e29ed2d95a81780effae125fe6dca688818c1
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-04-04 (Tue, 04 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: 670a335d55df4b5191e92544fd876c5daad2a7e2
      https://github.com/dovecot/core/commit/670a335d55df4b5191e92544fd876c5daad2a7e2
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-04-04 (Tue, 04 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.


Compare: https://github.com/dovecot/core/compare/9778cce39bd0...670a335d55df


More information about the dovecot-cvs mailing list