Revert "Decode rfc822 body structure"

This reverts commit 8f2aeb2b3c.
master
M66B 2 weeks ago
parent bded6459c8
commit 504c802115

@ -271,9 +271,9 @@ public class BODYSTRUCTURE implements Item {
throw new ParsingException( throw new ParsingException(
"BODYSTRUCTURE parse error: bad ``lines'' element"); "BODYSTRUCTURE parse error: bad ``lines'' element");
} else if (type.equalsIgnoreCase("message") && } else if (type.equalsIgnoreCase("message") &&
subtype.equalsIgnoreCase("rfc822")) { subtype.equalsIgnoreCase("rfc822") && false) {
// Nested message // Nested message
//processedType = NESTED; processedType = NESTED;
// The envelope comes next, but sadly Gmail handles nested // The envelope comes next, but sadly Gmail handles nested
// messages just like simple body parts and fails to return // messages just like simple body parts and fails to return
// the envelope and body structure of the message (sort of // the envelope and body structure of the message (sort of
@ -285,19 +285,13 @@ public class BODYSTRUCTURE implements Item {
System.out.println( System.out.println(
"DEBUG IMAP: got envelope of nested message"); "DEBUG IMAP: got envelope of nested message");
BODYSTRUCTURE[] bs = { new BODYSTRUCTURE(r) }; BODYSTRUCTURE[] bs = { new BODYSTRUCTURE(r) };
//bodies = bs; bodies = bs;
int l = r.readNumber(); lines = r.readNumber();
eu.faircode.email.Log.w("message/rfc822" +
" " + type + "/" + subtype + " " + encoding +
" bs=" + bs[0].type + "/"+ bs[0].subtype + " " + bs[0].encoding +
" lines=" + l);
if (parseDebug) if (parseDebug)
System.out.println("DEBUG IMAP: lines " + lines); System.out.println("DEBUG IMAP: lines " + lines);
/*
if (lines < 0) if (lines < 0)
throw new ParsingException( throw new ParsingException(
"BODYSTRUCTURE parse error: bad ``lines'' element"); "BODYSTRUCTURE parse error: bad ``lines'' element");
*/
} else { } else {
if (parseDebug) if (parseDebug)
System.out.println("DEBUG IMAP: " + System.out.println("DEBUG IMAP: " +

Loading…
Cancel
Save