geofft/alpine — Issue #1: Consider avoiding sending empty message part
Author: geofft
Created: 2011-12-09 23:12:26+00:00
State: open

As [reported on alpine-info](http://thread.gmane.org/gmane.mail.alpine.info/4481), if you empty the message body but include an attachment, alpine displays
> [ Empty or malformed message. Use "H" to see raw text. ]

The relevant comment in the code is:
```
/*
* If a message is multipart *and* the first part of it
* is text *and that text is empty, there is a good chance that
* there was actually something there that c-client was
* unable to parse. Here we report the empty message body
* and insert the raw RFC822.TEXT (if full-headers are
* on).
*/
```

So, maybe we should just not send that part at all. How do other clients respond if we do that?

This doesn't happen on a non-multipart message; maybe the right bug here is "c-client should more robustly give a failed-to-parse error than reporting a body size of 0".