[dovecot/core] b98e12: lib-mail: message_address_write: Fix generating em...

GitHub noreply at github.com
Mon Jun 6 11:30:12 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: b98e122661d4fd3c205448d918a3b133b8ccfea5
      https://github.com/dovecot/core/commit/b98e122661d4fd3c205448d918a3b133b8ccfea5
  Author: Pali Rohár <pali.rohar at gmail.com>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    M src/lib-mail/message-address.c

  Log Message:
  -----------
  lib-mail: message_address_write: Fix generating empty group list

Empty group list ends with ": " not with ", ".

Test case:

  { { name = NULL, mailbox = "group", domain = NULL }, { name = NULL, mailbox = NULL, domain = NULL } }

converts to:

  group:;


  Commit: d56bcbb354f1495e3323c7816cf69638975a8608
      https://github.com/dovecot/core/commit/d56bcbb354f1495e3323c7816cf69638975a8608
  Author: Pali Rohár <pali.rohar at gmail.com>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    M src/lib-mail/message-address.c

  Log Message:
  -----------
  lib-mail: message_address_write: Fix generating group list with empty name

Empty name for group list must be quoted.

Test case:

  { { name = NULL, mailbox = "", domain = NULL }, { name = NULL, mailbox = NULL, domain = NULL } }

converts to:

  "":;


  Commit: f185d56a963048e25c76ec84e7b8e1ba69b022a6
      https://github.com/dovecot/core/commit/f185d56a963048e25c76ec84e7b8e1ba69b022a6
  Author: Pali Rohár <pali.rohar at gmail.com>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    M src/lib-mail/message-address.c

  Log Message:
  -----------
  lib-mail: parse_addr_spec: Like in rfc822_skip_comment() check if last_comment is not NULL

This will fix possible NULL pointer dereference when caller does not set last_comment.


  Commit: 9835bb7e5bfa160c19d715528e92128841bfd9c2
      https://github.com/dovecot/core/commit/9835bb7e5bfa160c19d715528e92128841bfd9c2
  Author: Pali Rohár <pali.rohar at gmail.com>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    M src/lib-mail/message-address.c

  Log Message:
  -----------
  lib-mail: parse_addr_spec: Email address without local-part is invalid

Add explicit invalid_syntax flag also when end of input occure because
address is without domain invalid and in this case it was not correctly
propagated.


  Commit: 91fdb25b5a77defecbbc0cb9b7f15f28e9dab1f0
      https://github.com/dovecot/core/commit/91fdb25b5a77defecbbc0cb9b7f15f28e9dab1f0
  Author: Pali Rohár <pali.rohar at gmail.com>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    M src/lib-mail/message-address.c

  Log Message:
  -----------
  lib-mail: parse_mailbox: Set display name instead mailbox when parsing failed

It does not make sense to set mailbox without domain on incorrect input.
Rather set display name which is more likely useable value.

Test case:

  test

is parsed as:

  { name = "test", mailbox = NULL, domain = NULL }


  Commit: b435147a713b1d9338a8cd99848db7c45e0a65a5
      https://github.com/dovecot/core/commit/b435147a713b1d9338a8cd99848db7c45e0a65a5
  Author: Pali Rohár <pali.rohar at gmail.com>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    M src/lib-mail/message-address.c

  Log Message:
  -----------
  lib-mail: message_address_write: Quote and escape strings if needed

ATEXT characters must be properly quoted when are in phrase.

Test case:

  { name = "test\"test", mailbox = "user", domain = "host" }

converts to:

  "test\"test" <user at host>


  Commit: 99df8a838cd9c5257ea5a2554383a9a999191e38
      https://github.com/dovecot/core/commit/99df8a838cd9c5257ea5a2554383a9a999191e38
  Author: Pali Rohár <pali.rohar at gmail.com>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    M src/lib-mail/test-message-address.c

  Log Message:
  -----------
  lib-mail: Update tests for message address


  Commit: e2e64c109827f782e9e20b50a15c7489479bcada
      https://github.com/dovecot/core/commit/e2e64c109827f782e9e20b50a15c7489479bcada
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    M src/plugins/quota/quota-count.c
    M src/plugins/quota/quota-dirsize.c
    M src/plugins/quota/quota-fs.c
    M src/plugins/quota/quota-private.h
    M src/plugins/quota/quota-storage.c
    M src/plugins/quota/quota.c

  Log Message:
  -----------
  quota: Skip reading mail sizes when quota backend doesn't need it.

If quota backend is updating the quota internally, it's just going to ignore
the looked up size. The only reason for looking up the sizes is to check
with quota_try_alloc() whether user is going over quota.


  Commit: 39dea5f2e78f6bfc3adc0655176f596ee211938f
      https://github.com/dovecot/core/commit/39dea5f2e78f6bfc3adc0655176f596ee211938f
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    M src/plugins/quota/doveadm-quota.c
    M src/plugins/quota/quota-count.c
    M src/plugins/quota/quota-dict.c
    M src/plugins/quota/quota-maildir.c
    M src/plugins/quota/quota-private.h
    M src/plugins/quota/quota-storage.c
    M src/plugins/quota/quota.c
    M src/plugins/quota/quota.h

  Log Message:
  -----------
  quota: Differentiate between forced and non-forced quota recalc

The "count" backend doesn't need to recalc quota unless an explicit "doveadm
quota recalc" command is called.


Compare: https://github.com/dovecot/core/compare/90dd3c6ed38f...39dea5f2e78f


More information about the dovecot-cvs mailing list