[dovecot/core] 8be34e: lib: strfuncs: Add t_str_oneline().

GitHub noreply at github.com
Wed Nov 7 01:00:06 EET 2018


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 8be34ea0bff4193e837f91bd73a7eda06f8fa67b
      https://github.com/dovecot/core/commit/8be34ea0bff4193e837f91bd73a7eda06f8fa67b
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-11-06 (Tue, 06 Nov 2018)

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

  Log Message:
  -----------
  lib: strfuncs: Add t_str_oneline().

This puts the string on a single line by replacing all newlines with spaces and
dropping any carriage returns


  Commit: 173f199af0dfb3fe8fbf4b8c88227f177ab4a595
      https://github.com/dovecot/core/commit/173f199af0dfb3fe8fbf4b8c88227f177ab4a595
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
    M src/lib-smtp/smtp-reply-parser.c
    M src/lib-smtp/smtp-reply-parser.h

  Log Message:
  -----------
  lib-smtp: reply: Make parsing enhanced status codes available as a separate function.


  Commit: 978448a41c3a7fff5bbc3c5909196b9eea06bb44
      https://github.com/dovecot/core/commit/978448a41c3a7fff5bbc3c5909196b9eea06bb44
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
    M src/lib-smtp/smtp-reply.c
    M src/lib-smtp/smtp-reply.h

  Log Message:
  -----------
  lib-smtp: reply: Add smtp_reply_get_text_lines_omit_prefix().

This returns a string array of the lines in the reply, omitting the prefix (the
first word), which is usually a "<domain>" value.


  Commit: 8f0bd78a1c9bd816e56520adcfe44f834ed62e99
      https://github.com/dovecot/core/commit/8f0bd78a1c9bd816e56520adcfe44f834ed62e99
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
    M src/lib-smtp/smtp-server-connection.c

  Log Message:
  -----------
  lib-smtp: server: connection: Add debug messages for protocol elements sent outside the normal reply API.


  Commit: 1f99803d9eb5585703b283b474088f4306c1c203
      https://github.com/dovecot/core/commit/1f99803d9eb5585703b283b474088f4306c1c203
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
    M src/lib-smtp/smtp-server-connection.c
    M src/lib-smtp/smtp-server-private.h

  Log Message:
  -----------
  lib-smtp: server: connection: Add smtp_server_connection_reply_lines().

This function immediately sends a reply on the connection with the indicated
status, enhanced code and text lines.


  Commit: 119278905155d3f2741274411f05efb4df0319ba
      https://github.com/dovecot/core/commit/119278905155d3f2741274411f05efb4df0319ba
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
    M src/lib-smtp/smtp-server-connection.c

  Log Message:
  -----------
  lib-smtp: server: connection: Properly handle a multi-line reason in smtp_server_connection_disconnect().

Convert it to a single line string.


  Commit: 748cebbfb01b139ce413b3a9c533dd5ac0f89b1d
      https://github.com/dovecot/core/commit/748cebbfb01b139ce413b3a9c533dd5ac0f89b1d
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
    M src/lib-smtp/smtp-server-connection.c

  Log Message:
  -----------
  lib-smtp: server: connection: Properly handle a multi-line reason in smtp_server_connection_terminate().


  Commit: 92d459811411d3c4c7d6d7cd571cc01c2288437f
      https://github.com/dovecot/core/commit/92d459811411d3c4c7d6d7cd571cc01c2288437f
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
    M src/submission/submission-client.c

  Log Message:
  -----------
  submission: client: Properly handle a multi-line reason string in client_disconnect().

Pass the multi-line string to smtp_server_connection_terminate(), yet log it as a single line.


  Commit: ffc9057dc5431483154531843fcb41ff4941dfeb
      https://github.com/dovecot/core/commit/ffc9057dc5431483154531843fcb41ff4941dfeb
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2018-11-06 (Tue, 06 Nov 2018)

  Changed paths:
    M src/submission/submission-backend-relay.c

  Log Message:
  -----------
  submission: relay backend: Forward a (possibly multi-line) 421 reply from relay server to the client.

Before, it substituted a generic 421 error reply, which is far less helpful.


Compare: https://github.com/dovecot/core/compare/e3d4f2bc2633...ffc9057dc543
      **NOTE:** This service has 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