1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04: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");
}
if(mParts.size() == 0){
writer.write("--" + mBoundary + "\r\n");
}
for (int i = 0, count = mParts.size(); i < count; i++) {
BodyPart bodyPart = (BodyPart)mParts.get(i);
writer.write("--" + mBoundary + "\r\n");
@ -80,7 +84,7 @@ public class MimeMultipart extends Multipart {
bodyPart.writeTo(out);
writer.write("\r\n");
}
writer.write("--" + mBoundary + "--\r\n");
writer.flush();
}