On Mon, Feb 22, 2010 at 09:26:53PM +0100, Ralf Hildebrandt wrote: > > if (space or special characters in realname) > return encode(add_quotes(realname)) > else > return realname > fi
No, if you encode, you don't add quotes, quotes are for ASCII data that contains special characters. For non-ASCII data, you just encode, *without* quotes. > Or is it > > if (space or special characters in realname) > return add_quotes(encode(realname)) > else > return realname > fi No, you don't quote encoded data, this violates RFC 2047, which explicitly mandates no encoded text in quoted strings. The answer is that RFC-2047 encoding obviates the need for quotes. If Exchange/Outlook is breaking on correctly encoded display names, complain to Microsoft and have them fix the bug. -- Viktor. P.S. Morgan Stanley is looking for a New York City based, Senior Unix system/email administrator to architect and sustain our perimeter email environment. If you are interested, please drop me a note.