]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-mail: parse_mailbox: Set display name instead mailbox when parsing failed
authorPali Rohár <pali.rohar@gmail.com>
Sun, 5 Jun 2016 13:48:18 +0000 (15:48 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 6 Jun 2016 11:03:51 +0000 (14:03 +0300)
commit91fdb25b5a77defecbbc0cb9b7f15f28e9dab1f0
tree0ddf088ae70aa7f46636d2650cf156bef7cb418d
parent9835bb7e5bfa160c19d715528e92128841bfd9c2
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 }
src/lib-mail/message-address.c