1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00
- Empty messages now generate valid MIME
- Fix by brock.tice++
This commit is contained in:
Jesse Vincent 2008-10-29 04:29:29 +00:00
parent 0df7dff688
commit 1f90bc1ea3

View File

@ -73,6 +73,10 @@ public class MimeMultipart extends Multipart {
writer.write(mPreamble + "\r\n"); writer.write(mPreamble + "\r\n");
} }
if(mParts.size() == 0){
writer.write("--" + mBoundary + "\r\n");
}
for (int i = 0, count = mParts.size(); i < count; i++) { for (int i = 0, count = mParts.size(); i < count; i++) {
BodyPart bodyPart = (BodyPart)mParts.get(i); BodyPart bodyPart = (BodyPart)mParts.get(i);
writer.write("--" + mBoundary + "\r\n"); writer.write("--" + mBoundary + "\r\n");