> sSMTP does not specify the character-set in outgoing messages, which > makes some mail relays reject the messages sent by sSMTP. > [...] > The raw message content that triggered this is: > [...] > From: Martin-Éric Racine <[EMAIL PROTECTED]>
sSMTP shouldn't just specify the character set; sSMTP should implement RFC
2047, which means encoding the above as
From: =?ISO8859-1?Q?Martin-=C9ric?= Racine <[EMAIL PROTECTED]>
This is not trivial; fortunately there is code out there which can be reused.
For example, see parse_quote_2047() in Exim4's parse.c. You also need to find
out which charset is used.
Additionally, sSMTP should perhaps implement parse_fix_phrase() from the same
source, to handle any unbalanced parentheses, quotes, backslashes and other
oddities that might possibly be found in /etc/passwd or after -F on the
command line.
--
Magnus Holmgren [EMAIL PROTECTED]
(No Cc of list mail needed, thanks)
pgpsjuLPL3q8r.pgp
Description: PGP signature

