]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-mail: message_address_write: Quote and escape strings if needed
authorPali Rohár <pali.rohar@gmail.com>
Sun, 5 Jun 2016 13:48:19 +0000 (15:48 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 6 Jun 2016 11:04:23 +0000 (14:04 +0300)
commitb435147a713b1d9338a8cd99848db7c45e0a65a5
tree687a2c36f39e8646f1cd803784b5af023efc4f5e
parent91fdb25b5a77defecbbc0cb9b7f15f28e9dab1f0
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@host>
src/lib-mail/message-address.c