cutelyst / simple-mail

An SMTP library written in C++ for Qt. Allows applications to send emails (MIME with text, html, attachments, inline files, etc.) via SMTP. Supports SSL and SMTP authentication.
GNU Lesser General Public License v2.1
213 stars 64 forks source link

Implement dot stuffing #66

Closed michaelernst closed 3 years ago

michaelernst commented 3 years ago

According to https://www.rfc-editor.org/rfc/rfc5321#section-4.5.2 in case the first char of a line is a period, one additional period has to be inserted at the beginning of the line.

In case the second period is not present the first one is simply omitted which can produce e.g. broken domain names / FQDNs.