SMTP dot-stuffing within MIME boundaries

493 views Asked by At

I guess I ran into a dot-stuffing problem sending SMTP messages. What i basically want to do is to send a message with a text and a attachment part. In my example I defined a multipart/mixed message like following:

    Mime-version: 1.0
    Content-Type: multipart/mixed; boundary="YJiPVI9C2M93dRDm"

    --YJiPVI9C2M93dRDm
    Content-Type: text/plain; charset="utf-8"
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline

    Message
    .

   --YJiPVI9C2M93dRDm
   Content-Type: application/gzip
   Content-Transfer-Encoding: base64
   Content-Disposition: attachment; filename=2015-06-22-114558.tar.gz

   H4sIAFbZh1UCA+2dXW/dNhKGc72/QujVLtAmIocjSqdXbbH9AJJt0G63F0URuPZJYdT2MezjNP33
   FXkcbyQxh6TmnX4AOTdpUs3D0ejlkOKXbGv4o7b7yNqPjHHM/ZNH8F87/jxz/HP8zf+M/20sO+PZ

   --YJiPVI9C2M93dRDm--

If I send the SMTP massage with libcurl like described above i will get connection timeouts. The problem is the single point (after "Message"). I know that this is a escape sign in SMTP, but it should be interpreted as a "normal" point. So how to do this? Is the mime body correct? Do i need to masquerade the single point?

0

There are 0 answers