mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 09:52: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");
|
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");
|
||||||
|
Loading…
Reference in New Issue
Block a user