mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 00:23:09 +02:00
Smoke a pipe
This commit is contained in:
@@ -14,6 +14,8 @@ import static android.os.Process.THREAD_PRIORITY_BACKGROUND;
|
||||
|
||||
import com.sun.mail.imap.IMAPNestedMessage;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.InputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
@@ -261,7 +263,13 @@ public class DataHandler /*implements Transferable*/ {
|
||||
|
||||
final DataContentHandler fdch = dch;
|
||||
|
||||
// from bill s.
|
||||
if (true) {
|
||||
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
||||
fdch.writeTo(object, objectMimeType, bos);
|
||||
return new ByteArrayInputStream(bos.toByteArray());
|
||||
}
|
||||
|
||||
// from bill s.
|
||||
// ce n'est pas une pipe!
|
||||
//
|
||||
// NOTE: This block of code needs to throw exceptions, but
|
||||
|
||||
Reference in New Issue
Block a user