mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 03:32:16 -05:00
- Empty messages now generate valid MIME - Fix by brock.tice++
This commit is contained in:
parent
0df7dff688
commit
1f90bc1ea3
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user