[dovecot/pigeonhole] 811f84: lib-sieve: util: rfc2822: Added rfc2822_header_wri...

GitHub noreply at github.com
Fri Dec 15 16:38:28 EET 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/pigeonhole
  Commit: 811f84f8e331d4946e050a6e2198c9b186e7eccb
      https://github.com/dovecot/pigeonhole/commit/811f84f8e331d4946e050a6e2198c9b186e7eccb
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2017-12-15 (Fri, 15 Dec 2017)

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

  Log Message:
  -----------
  lib-sieve: util: rfc2822: Added rfc2822_header_write_address() which allows adding a header with one or more addresses.

It applies UTF8 encoding only when the address string somehow contains 8-bit characters.
Sieve addresses are supposed to have any UTF8 characters in the phase MIME-encoded, not literal 8-bit characters.
However, this has been allowed from the beginning, so disabling the old behavior may break existing installations.
This function allows supporting both options.


  Commit: 1b2454cf3768a0fa41863024dcf3c1f42ebb9ba6
      https://github.com/dovecot/pigeonhole/commit/1b2454cf3768a0fa41863024dcf3c1f42ebb9ba6
  Author: Stephan Bosch <stephan.bosch at dovecot.fi>
  Date:   2017-12-15 (Fri, 15 Dec 2017)

  Changed paths:
    M src/lib-sieve/plugins/enotify/mailto/ntfy-mailto.c
    M src/lib-sieve/plugins/notify/cmd-notify.c
    M src/lib-sieve/plugins/vacation/cmd-vacation.c
    M tests/extensions/enotify/mailto.svtest
    M tests/extensions/vacation/utf-8.svtest

  Log Message:
  -----------
  lib-sieve: Fixed writing address headers to outgoing messages.

It erroneously applied another layer of MIME header encoding.
The problem is that existing Sieve scripts may rely on this behaviour; i.e. scripts may contain addresesses with literal UTF8 in the phrase part.
Therefore, this change allows both behaviors.


Compare: https://github.com/dovecot/pigeonhole/compare/fe3b7c4bff09...1b2454cf3768


More information about the dovecot-cvs mailing list