mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Workaround base64 padding/start
This commit is contained in:
@@ -3486,6 +3486,9 @@ public class MessageHelper {
|
||||
|
||||
static byte[] decodeWord(String word, String encoding, String charset) throws IOException {
|
||||
String e = encoding.trim();
|
||||
if (e.equalsIgnoreCase("B"))
|
||||
while (word.startsWith("="))
|
||||
word = word.substring(1);
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(ASCIIUtility.getBytes(word));
|
||||
|
||||
InputStream is;
|
||||
|
||||
Reference in New Issue
Block a user