mailhog / MailHog

Web and API based SMTP testing
MIT License
14.05k stars 1.07k forks source link

Unexpected two-byte -- parts #199

Open metametadata opened 6 years ago

metametadata commented 6 years ago

Following the example from #198, Mailhog seems to incorrectly parse MIME parts and produces numerous -- parts in the JSON output:

...
{
                                    "Headers":{

                                    },
                                    "Body":"--",
                                    "Size":2,
                                    "MIME":null
                                 }
                              ]
                           }
                        },
                        {
                           "Headers":{

                           },
                           "Body":"--",
                           "Size":2,
                           "MIME":null
                        }
                     ]
                  }
               },
               {
                  "Headers":{

                  },
                  "Body":"--",
                  "Size":2,
                  "MIME":null
               }
            ]
         },

It also can be seen in GUI:

screenshot 2018-03-06 02 38 16
vutkin commented 6 years ago

I have this issue too.

metametadata commented 6 years ago

I've mostly stopped using Mailhog HTTP API responses and switched to javax.mail for parsing.

rogervila commented 6 years ago

+1