diff --git a/CHANGELOG.md b/CHANGELOG.md index 76a5c84..59548aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,11 @@ -mail-parser 0.6.2 +mail-parser 0.7.0 ================================ - Base64/QuotedPrintable decoding optimizations. - Added "ludicrous mode" Cargo option to use some unsafe code for additional performance. - Fixed support for empty messages. - Fixed raw offsets of multipart/* parts to include MIME epilogue. +- Automatic parsing of base64/qp encoded nested messages. +- Refactoring or ``MessageStream`` to use iterators more efficiently. mail-parser 0.6.1 ================================ diff --git a/Cargo.toml b/Cargo.toml index 8450c2c..510adaf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mail-parser" description = "Fast and robust e-mail parsing library for Rust" -version = "0.6.2" +version = "0.7.0" edition = "2018" authors = [ "Stalwart Labs "] license = "Apache-2.0 OR MIT" diff --git a/src/decoders/base64.rs b/src/decoders/base64.rs index ae04ebe..e56fe2d 100644 --- a/src/decoders/base64.rs +++ b/src/decoders/base64.rs @@ -11,7 +11,7 @@ use std::borrow::Cow; -use crate::parsers::message::MessageStream; +use crate::parsers::MessageStream; pub fn decode_base64(bytes: &[u8]) -> Option> { let mut chunk: u32 = 0; @@ -79,214 +79,209 @@ pub fn decode_base64(bytes: &[u8]) -> Option> { buf.into() } -//impl<'x> MessageStream<'x> { +impl<'x> MessageStream<'x> { + pub fn decode_base64_mime(&mut self, boundary: &[u8]) -> (usize, Cow<'x, [u8]>) { + let mut chunk: u32 = 0; + let mut byte_count: u8 = 0; -pub fn decode_base64_mime<'x>( - stream: &mut MessageStream<'x>, - boundary: &[u8], -) -> (usize, Cow<'x, [u8]>) { - let mut chunk: u32 = 0; - let mut byte_count: u8 = 0; + let mut buf = Vec::with_capacity(self.remaining() / 4 * 3); + let mut last_ch = b'\n'; + let mut before_last_ch = 0; + let mut end_pos = self.offset(); - let mut buf = Vec::with_capacity((stream.data.len() - stream.pos) / 4 * 3); - let mut pos = stream.pos; + self.checkpoint(); - let mut last_ch = b'\n'; - let mut end_pos = stream.pos; - let mut iter = stream.data[stream.pos..].iter(); + while let Some(&ch) = self.next() { + #[cfg(feature = "ludicrous_mode")] + let val = unsafe { + *BASE64_MAP + .get_unchecked(byte_count as usize) + .get_unchecked(ch as usize) + }; + #[cfg(not(feature = "ludicrous_mode"))] + let val = BASE64_MAP[byte_count as usize][ch as usize]; - while let Some(&ch) = iter.next() { - pos += 1; + if val < 0x01ffffff { + byte_count = (byte_count + 1) & 3; - #[cfg(feature = "ludicrous_mode")] - let val = unsafe { - *BASE64_MAP - .get_unchecked(byte_count as usize) - .get_unchecked(ch as usize) - }; - #[cfg(not(feature = "ludicrous_mode"))] - let val = BASE64_MAP[byte_count as usize][ch as usize]; + if byte_count == 1 { + chunk = val; + } else { + chunk |= val; - if val < 0x01ffffff { - byte_count = (byte_count + 1) & 3; - - if byte_count == 1 { - chunk = val; - } else { - chunk |= val; - - if byte_count == 0 { - #[cfg(feature = "ludicrous_mode")] - unsafe { - buf.extend_from_slice(chunk.to_le_bytes().get_unchecked(0..3)); + if byte_count == 0 { + #[cfg(feature = "ludicrous_mode")] + unsafe { + buf.extend_from_slice(chunk.to_le_bytes().get_unchecked(0..3)); + } + #[cfg(not(feature = "ludicrous_mode"))] + buf.extend_from_slice(&chunk.to_le_bytes()[0..3]); } - #[cfg(not(feature = "ludicrous_mode"))] - buf.extend_from_slice(&chunk.to_le_bytes()[0..3]); } - } - } else { - match ch { - b'=' => match byte_count { - 1 | 2 => { - #[cfg(feature = "ludicrous_mode")] - unsafe { - buf.push(*chunk.to_le_bytes().get_unchecked(0)); + } else { + match ch { + b'=' => match byte_count { + 1 | 2 => { + #[cfg(feature = "ludicrous_mode")] + unsafe { + buf.push(*chunk.to_le_bytes().get_unchecked(0)); + } + #[cfg(not(feature = "ludicrous_mode"))] + buf.push(chunk.to_le_bytes()[0]); + byte_count = 0; } - #[cfg(not(feature = "ludicrous_mode"))] - buf.push(chunk.to_le_bytes()[0]); - byte_count = 0; + 3 => { + #[cfg(feature = "ludicrous_mode")] + unsafe { + buf.extend_from_slice(chunk.to_le_bytes().get_unchecked(0..2)); + } + #[cfg(not(feature = "ludicrous_mode"))] + buf.extend_from_slice(&chunk.to_le_bytes()[0..2]); + byte_count = 0; + } + 0 => (), + _ => { + self.restore(); + return (usize::MAX, b""[..].into()); + } + }, + b'\n' => { + end_pos = if last_ch == b'\r' { + self.offset() - 2 + } else { + self.offset() - 1 + } } - 3 => { - #[cfg(feature = "ludicrous_mode")] - unsafe { - buf.extend_from_slice(chunk.to_le_bytes().get_unchecked(0..2)); + b' ' | b'\t' | b'\r' => (), + b'-' => { + if last_ch == b'-' { + return if !boundary.is_empty() && self.try_skip(boundary) { + buf.shrink_to_fit(); + ( + if before_last_ch == b'\n' { + end_pos + } else { + self.offset() - boundary.len() - 2 + }, + buf.into(), + ) + } else { + self.restore(); + (usize::MAX, b""[..].into()) + }; } - #[cfg(not(feature = "ludicrous_mode"))] - buf.extend_from_slice(&chunk.to_le_bytes()[0..2]); - byte_count = 0; } - 0 => (), _ => { + self.restore(); return (usize::MAX, b""[..].into()); } - }, - b'\n' => end_pos = if last_ch == b'\r' { pos - 2 } else { pos - 1 }, - b' ' | b'\t' | b'\r' => (), - b'-' => { - return if !boundary.is_empty() - && matches!(iter.next(), Some(b'-')) - && stream.data.get(pos + 1..pos + 1 + boundary.len()) == Some(boundary) - && matches!( - stream.data.get(pos + 1 + boundary.len()..), - Some([b'\n' | b'\r' | b' ' | b'\t', ..]) - | Some([b'-', b'-', ..]) - | Some([]) - | None - ) { - stream.pos = pos + boundary.len() + 1; - buf.shrink_to_fit(); - (if last_ch == b'\n' { end_pos } else { pos - 1 }, buf.into()) - } else { - (usize::MAX, b""[..].into()) - }; - } - _ => { - return (usize::MAX, b""[..].into()); } } + + before_last_ch = last_ch; + last_ch = ch; } - last_ch = ch; + buf.shrink_to_fit(); + ( + if boundary.is_empty() { + self.offset() + } else { + self.restore(); + usize::MAX + }, + buf.into(), + ) } - buf.shrink_to_fit(); - ( - if boundary.is_empty() { - stream.pos = pos; - pos - } else { - usize::MAX - }, - buf.into(), - ) -} + pub fn decode_base64_word(&mut self) -> Option> { + let mut chunk: u32 = 0; + let mut byte_count: u8 = 0; + let mut buf = Vec::with_capacity(64); -pub fn decode_base64_word(bytes: &[u8]) -> (usize, Vec) { - let mut chunk: u32 = 0; - let mut byte_count: u8 = 0; - - let mut bytes_read = 0; - - let mut buf = Vec::with_capacity(64); - let mut iter = bytes.iter(); - - while let Some(&ch) = iter.next() { - bytes_read += 1; - - match ch { - b'=' => { - match byte_count { - 1 | 2 => { - #[cfg(feature = "ludicrous_mode")] - unsafe { - buf.push(*chunk.to_le_bytes().get_unchecked(0)); + while let Some(&ch) = self.next() { + match ch { + b'=' => { + match byte_count { + 1 | 2 => { + #[cfg(feature = "ludicrous_mode")] + unsafe { + buf.push(*chunk.to_le_bytes().get_unchecked(0)); + } + #[cfg(not(feature = "ludicrous_mode"))] + buf.push(chunk.to_le_bytes()[0]); + byte_count = 0; } - #[cfg(not(feature = "ludicrous_mode"))] - buf.push(chunk.to_le_bytes()[0]); - byte_count = 0; - } - 3 => { - #[cfg(feature = "ludicrous_mode")] - unsafe { - buf.extend_from_slice(chunk.to_le_bytes().get_unchecked(0..2)); + 3 => { + #[cfg(feature = "ludicrous_mode")] + unsafe { + buf.extend_from_slice(chunk.to_le_bytes().get_unchecked(0..2)); + } + #[cfg(not(feature = "ludicrous_mode"))] + buf.extend_from_slice(&chunk.to_le_bytes()[0..2]); + byte_count = 0; + } + 0 => (), + _ => { + // Invalid + break; } - #[cfg(not(feature = "ludicrous_mode"))] - buf.extend_from_slice(&chunk.to_le_bytes()[0..2]); - byte_count = 0; } - 0 => (), - _ => { - // Invalid + } + b'?' => { + if let Some(b'=') = self.next() { + return Some(buf); + } else { + break; + } + } + b'\n' => { + if !self.next_is_space() { + break; + } + } + b' ' | b'\t' | b'\r' => (), + _ => { + #[cfg(feature = "ludicrous_mode")] + let val = unsafe { + *BASE64_MAP + .get_unchecked(byte_count as usize) + .get_unchecked(ch as usize) + }; + #[cfg(not(feature = "ludicrous_mode"))] + let val = BASE64_MAP[byte_count as usize][ch as usize]; + + if val < 0x01ffffff { + byte_count = (byte_count + 1) & 3; + + if byte_count == 1 { + chunk = val; + } else { + chunk |= val; + + if byte_count == 0 { + #[cfg(feature = "ludicrous_mode")] + unsafe { + buf.extend_from_slice(chunk.to_le_bytes().get_unchecked(0..3)); + } + #[cfg(not(feature = "ludicrous_mode"))] + buf.extend_from_slice(&chunk.to_le_bytes()[0..3]); + } + } + } else { break; } } } - b'?' => { - if let Some(b'=') = iter.next() { - return (bytes_read + 1, buf); - } else { - break; - } - } - b'\n' => { - if let Some(b' ' | b'\t') = iter.next() { - bytes_read += 1; - } else { - break; - } - } - b' ' | b'\t' | b'\r' => (), - _ => { - #[cfg(feature = "ludicrous_mode")] - let val = unsafe { - *BASE64_MAP - .get_unchecked(byte_count as usize) - .get_unchecked(ch as usize) - }; - #[cfg(not(feature = "ludicrous_mode"))] - let val = BASE64_MAP[byte_count as usize][ch as usize]; - - if val < 0x01ffffff { - byte_count = (byte_count + 1) & 3; - - if byte_count == 1 { - chunk = val; - } else { - chunk |= val; - - if byte_count == 0 { - #[cfg(feature = "ludicrous_mode")] - unsafe { - buf.extend_from_slice(chunk.to_le_bytes().get_unchecked(0..3)); - } - #[cfg(not(feature = "ludicrous_mode"))] - buf.extend_from_slice(&chunk.to_le_bytes()[0..3]); - } - } - } else { - break; - } - } } - } - (usize::MAX, buf) + None + } } -//} #[cfg(test)] mod tests { - use crate::parsers::message::MessageStream; + use crate::parsers::MessageStream; #[test] fn decode_base64() { @@ -346,7 +341,7 @@ mod tests { ), ] { let mut s = MessageStream::new(encoded_str.as_bytes()); - let (_, result) = super::decode_base64_mime(&mut s, b"boundary"); + let (_, result) = s.decode_base64_mime(b"boundary"); assert_eq!( result, @@ -366,10 +361,9 @@ mod tests { ("w6HDqcOtw7PDug================?=", "áéíóú"), ("?=", ""), ] { - let (bytes, result) = super::decode_base64_word(encoded_str.as_bytes()); - assert!(bytes != usize::MAX); + let mut s = MessageStream::new(encoded_str.as_bytes()); assert_eq!( - result, + s.decode_base64_word().unwrap(), expected_result.as_bytes(), "Failed for {:?}", encoded_str diff --git a/src/decoders/encoded_word.rs b/src/decoders/encoded_word.rs index 7e9deda..3567812 100644 --- a/src/decoders/encoded_word.rs +++ b/src/decoders/encoded_word.rs @@ -9,11 +9,9 @@ * except according to those terms. */ -use crate::{decoders::charsets::map::get_charset_decoder, parsers::message::MessageStream}; +use crate::{decoders::charsets::map::get_charset_decoder, parsers::MessageStream}; -use super::{ - base64::decode_base64_word, quoted_printable::decode_quoted_printable_word, DecodeWordFnc, -}; +use super::DecodeWordFnc; enum Rfc2047State { Init, @@ -22,89 +20,82 @@ enum Rfc2047State { Data, } -pub fn decode_rfc2047(stream: &MessageStream, start_pos: usize) -> (usize, Option) { - let mut read_pos: usize = start_pos; - let mut state = Rfc2047State::Init; +impl<'x> MessageStream<'x> { + pub fn decode_rfc2047(&mut self) -> Option { + let mut state = Rfc2047State::Init; - let mut charset_start = 0; - let mut charset_end = 0; - let mut decode_fnc: Option = None; + let mut charset_start = 0; + let mut charset_end = 0; + let mut decode_fnc: Option = None; - for ch in stream.data[start_pos..].iter() { - read_pos += 1; - - match state { - Rfc2047State::Init => { - if ch != &b'?' { - return (0, None); - } - state = Rfc2047State::Charset; - charset_start = read_pos; - charset_end = read_pos; - } - Rfc2047State::Charset => match ch { - b'?' => { - if charset_end == charset_start { - charset_end = read_pos - 1; + while let Some(ch) = self.next() { + match state { + Rfc2047State::Init => { + if ch != &b'?' { + return None; } - if (charset_end - charset_start) < 2 { - return (0, None); + state = Rfc2047State::Charset; + charset_start = self.offset(); + charset_end = self.offset(); + } + Rfc2047State::Charset => match ch { + b'?' => { + if charset_end == charset_start { + charset_end = self.offset() - 1; + } + if (charset_end - charset_start) < 2 { + return None; + } + state = Rfc2047State::Encoding; } - state = Rfc2047State::Encoding; - } - b'*' => { - if charset_end == charset_start { - charset_end = read_pos - 1; + b'*' => { + if charset_end == charset_start { + charset_end = self.offset() - 1; + } } - } - b'\n' => { - return (0, None); - } - _ => (), - }, - Rfc2047State::Encoding => { - match ch { - b'q' | b'Q' => decode_fnc = Some(decode_quoted_printable_word), - b'b' | b'B' => decode_fnc = Some(decode_base64_word), - _ => { - return (0, None); + b'\n' => { + return None; } - } - state = Rfc2047State::Data; - } - Rfc2047State::Data => { - if ch != &b'?' { - return (0, None); - } else { - break; - } - } - } - } - - if let (Some(decode_fnc), Some(enc_bytes)) = (decode_fnc, stream.data.get(read_pos..)) { - let (bytes_read, bytes) = decode_fnc(enc_bytes); - if bytes_read != usize::MAX { - return ( - (read_pos - start_pos) + bytes_read, - if let Some(decoder) = get_charset_decoder(&stream.data[charset_start..charset_end]) - { - decoder(&bytes).into() - } else { - String::from_utf8(bytes) - .unwrap_or_else(|e| String::from_utf8_lossy(e.as_bytes()).into_owned()) - .into() + _ => (), }, - ); + Rfc2047State::Encoding => { + match ch { + b'q' | b'Q' => { + decode_fnc = Some(MessageStream::decode_quoted_printable_word) + } + b'b' | b'B' => decode_fnc = Some(MessageStream::decode_base64_word), + _ => { + return None; + } + } + state = Rfc2047State::Data; + } + Rfc2047State::Data => { + if ch != &b'?' { + return None; + } else { + break; + } + } + } + } + + if let Some(bytes) = decode_fnc.and_then(|fnc| fnc(self)) { + if let Some(decoder) = get_charset_decoder(self.get_bytes(charset_start..charset_end)) { + decoder(&bytes).into() + } else { + String::from_utf8(bytes) + .unwrap_or_else(|e| String::from_utf8_lossy(e.as_bytes()).into_owned()) + .into() + } + } else { + None } } - - (0, None) } - #[cfg(test)] mod tests { - use crate::parsers::message::MessageStream; + use crate::parsers::MessageStream; #[test] fn decode_rfc2047() { @@ -176,8 +167,8 @@ mod tests { true, ), ] { - match super::decode_rfc2047(&MessageStream::new(input.as_bytes()), 0) { - (_, Some(result)) => { + match MessageStream::new(input.as_bytes()).decode_rfc2047() { + Some(result) => { //println!("Decoded '{}'", string); assert_eq!(result, expected_result); } diff --git a/src/decoders/mod.rs b/src/decoders/mod.rs index 46915a0..82ec8c4 100644 --- a/src/decoders/mod.rs +++ b/src/decoders/mod.rs @@ -11,7 +11,7 @@ use std::borrow::Cow; -use crate::parsers::message::MessageStream; +use crate::parsers::MessageStream; pub mod base64; pub mod charsets; @@ -21,4 +21,4 @@ pub mod html; pub mod quoted_printable; pub type DecodeFnc<'x> = fn(&mut MessageStream<'x>, &[u8]) -> (usize, Cow<'x, [u8]>); -pub type DecodeWordFnc<'x> = fn(&[u8]) -> (usize, Vec); +pub type DecodeWordFnc<'x> = fn(&mut MessageStream<'x>) -> Option>; diff --git a/src/decoders/quoted_printable.rs b/src/decoders/quoted_printable.rs index 85c4408..36f5655 100644 --- a/src/decoders/quoted_printable.rs +++ b/src/decoders/quoted_printable.rs @@ -11,7 +11,7 @@ use std::borrow::Cow; -use crate::parsers::message::MessageStream; +use crate::parsers::MessageStream; #[derive(PartialEq, Debug)] enum QuotedPrintableState { @@ -83,199 +83,186 @@ pub fn decode_quoted_printable(bytes: &[u8]) -> Option> { buf.into() } -pub fn decode_quoted_printable_mime<'x>( - stream: &mut MessageStream<'x>, - boundary: &[u8], -) -> (usize, Cow<'x, [u8]>) { - let mut buf = Vec::with_capacity(stream.data.len() - stream.pos); +impl<'x> MessageStream<'x> { + pub fn decode_quoted_printable_mime(&mut self, boundary: &[u8]) -> (usize, Cow<'x, [u8]>) { + let mut buf = Vec::with_capacity(128); - let mut state = QuotedPrintableState::None; - let mut hex1 = 0; + let mut state = QuotedPrintableState::None; + let mut hex1 = 0; + let mut last_ch = 0; + let mut before_last_ch = 0; + let mut end_pos = self.offset(); - let mut iter = stream.data[stream.pos..].iter().peekable(); - let mut last_ch = 0; - let mut pos = stream.pos; - let mut end_pos = stream.pos; + self.checkpoint(); - while let Some(&ch) = iter.next() { - pos += 1; - - match ch { - b'=' => { - if let QuotedPrintableState::None = state { - state = QuotedPrintableState::Eq - } else { - return (usize::MAX, b""[..].into()); + while let Some(&ch) = self.next() { + match ch { + b'=' => { + if let QuotedPrintableState::None = state { + state = QuotedPrintableState::Eq + } else { + self.restore(); + return (usize::MAX, b""[..].into()); + } } - } - b'\n' => { - end_pos = if last_ch == b'\r' { pos - 2 } else { pos - 1 }; - if QuotedPrintableState::Eq == state { - state = QuotedPrintableState::None; - } else { - buf.push(b'\n'); - } - } - b'\r' => (), - b'-' if !boundary.is_empty() - && matches!(iter.peek(), Some(b'-')) - && stream.data.get(pos + 1..pos + 1 + boundary.len()) == Some(boundary) - && matches!( - stream.data.get(pos + 1 + boundary.len()..), - Some([b'\n' | b'\r' | b' ' | b'\t', ..]) - | Some([b'-', b'-', ..]) - | Some([]) - | None - ) => - { - if last_ch == b'\n' { - buf.pop(); - } else { - end_pos = pos - 1; - } - stream.pos = pos + boundary.len() + 1; - buf.shrink_to_fit(); - return (end_pos, buf.into()); - } - _ => match state { - QuotedPrintableState::None => { - buf.push(ch); - } - QuotedPrintableState::Eq => { - hex1 = { - #[cfg(feature = "ludicrous_mode")] - unsafe { - *HEX_MAP.get_unchecked(ch as usize) - } - #[cfg(not(feature = "ludicrous_mode"))] - HEX_MAP[ch as usize] + b'\n' => { + end_pos = if last_ch == b'\r' { + self.offset() - 2 + } else { + self.offset() - 1 }; - if hex1 != -1 { - state = QuotedPrintableState::Hex1; + if QuotedPrintableState::Eq == state { + state = QuotedPrintableState::None; } else { - return (usize::MAX, b""[..].into()); + buf.push(b'\n'); } } - QuotedPrintableState::Hex1 => { - #[cfg(feature = "ludicrous_mode")] - let hex2 = unsafe { *HEX_MAP.get_unchecked(ch as usize) }; - #[cfg(not(feature = "ludicrous_mode"))] - let hex2 = HEX_MAP[ch as usize]; + b'\r' => (), + b'-' if !boundary.is_empty() && last_ch == b'-' && self.try_skip(boundary) => { + if before_last_ch == b'\n' { + buf.truncate(buf.len() - 2); + } else { + buf.truncate(buf.len() - 1); + end_pos = self.offset() - boundary.len() - 2; + } - state = QuotedPrintableState::None; - if hex2 != -1 { - buf.push(((hex1 as u8) << 4) | hex2 as u8); - } else { - return (usize::MAX, b""[..].into()); - } + return (end_pos, buf.into()); } - }, + _ => match state { + QuotedPrintableState::None => { + buf.push(ch); + } + QuotedPrintableState::Eq => { + hex1 = { + #[cfg(feature = "ludicrous_mode")] + unsafe { + *HEX_MAP.get_unchecked(ch as usize) + } + #[cfg(not(feature = "ludicrous_mode"))] + HEX_MAP[ch as usize] + }; + if hex1 != -1 { + state = QuotedPrintableState::Hex1; + } else { + self.restore(); + return (usize::MAX, b""[..].into()); + } + } + QuotedPrintableState::Hex1 => { + #[cfg(feature = "ludicrous_mode")] + let hex2 = unsafe { *HEX_MAP.get_unchecked(ch as usize) }; + #[cfg(not(feature = "ludicrous_mode"))] + let hex2 = HEX_MAP[ch as usize]; + + state = QuotedPrintableState::None; + if hex2 != -1 { + buf.push(((hex1 as u8) << 4) | hex2 as u8); + } else { + self.restore(); + return (usize::MAX, b""[..].into()); + } + } + }, + } + + before_last_ch = last_ch; + last_ch = ch; } - last_ch = ch; + ( + if boundary.is_empty() { + self.offset() + } else { + self.restore(); + usize::MAX + }, + buf.into(), + ) } - buf.shrink_to_fit(); - ( - if boundary.is_empty() { - stream.pos = pos; - pos - } else { - usize::MAX - }, - buf.into(), - ) -} + pub fn decode_quoted_printable_word(&mut self) -> Option> { + let mut buf = Vec::with_capacity(64); -pub fn decode_quoted_printable_word(bytes: &[u8]) -> (usize, Vec) { - let mut bytes_read = 0; + let mut state = QuotedPrintableState::None; + let mut hex1 = 0; - let mut buf = Vec::with_capacity(64); - - let mut state = QuotedPrintableState::None; - let mut hex1 = 0; - - let mut iter = bytes.iter().peekable(); - - while let Some(&ch) = iter.next() { - bytes_read += 1; - - match ch { - b'=' => { - if let QuotedPrintableState::None = state { - state = QuotedPrintableState::Eq - } else { - break; + while let Some(&ch) = self.next() { + match ch { + b'=' => { + if let QuotedPrintableState::None = state { + state = QuotedPrintableState::Eq + } else { + break; + } } - } - b'?' => { - if let Some(b'=') = iter.peek() { - return (bytes_read + 1, buf); - } else { - buf.push(b'?'); + b'?' => { + if let Some(b'=') = self.peek() { + self.next(); + return buf.into(); + } else { + buf.push(b'?'); + } } - } - b'\n' => { - if let Some(b' ' | b'\t') = iter.peek() { - loop { - iter.next(); - bytes_read += 1; - if !matches!(iter.peek(), Some(b' ' | b'\t')) { + b'\n' => { + if let Some(b' ' | b'\t') = self.peek() { + loop { + self.next(); + if !self.peek_next_is_space() { + break; + } + } + } else { + break; + } + } + b'_' => { + buf.push(b' '); + } + b'\r' => (), + _ => match state { + QuotedPrintableState::None => { + buf.push(ch); + } + QuotedPrintableState::Eq => { + hex1 = { + #[cfg(feature = "ludicrous_mode")] + unsafe { + *HEX_MAP.get_unchecked(ch as usize) + } + #[cfg(not(feature = "ludicrous_mode"))] + HEX_MAP[ch as usize] + }; + if hex1 != -1 { + state = QuotedPrintableState::Hex1; + } else { + // Failed break; } } - } else { - break; - } - } - b'_' => { - buf.push(b' '); - } - b'\r' => (), - _ => match state { - QuotedPrintableState::None => { - buf.push(ch); - } - QuotedPrintableState::Eq => { - hex1 = { + QuotedPrintableState::Hex1 => { #[cfg(feature = "ludicrous_mode")] - unsafe { - *HEX_MAP.get_unchecked(ch as usize) - } + let hex2 = unsafe { *HEX_MAP.get_unchecked(ch as usize) }; #[cfg(not(feature = "ludicrous_mode"))] - HEX_MAP[ch as usize] - }; - if hex1 != -1 { - state = QuotedPrintableState::Hex1; - } else { - // Failed - break; - } - } - QuotedPrintableState::Hex1 => { - #[cfg(feature = "ludicrous_mode")] - let hex2 = unsafe { *HEX_MAP.get_unchecked(ch as usize) }; - #[cfg(not(feature = "ludicrous_mode"))] - let hex2 = HEX_MAP[ch as usize]; + let hex2 = HEX_MAP[ch as usize]; - state = QuotedPrintableState::None; - if hex2 != -1 { - buf.push(((hex1 as u8) << 4) | hex2 as u8); - } else { - // Failed - break; + state = QuotedPrintableState::None; + if hex2 != -1 { + buf.push(((hex1 as u8) << 4) | hex2 as u8); + } else { + // Failed + break; + } } - } - }, + }, + } } + + None } - - (usize::MAX, buf) } - #[cfg(test)] mod tests { - use crate::parsers::message::MessageStream; + use crate::parsers::MessageStream; #[test] fn decode_quoted_printable() { @@ -378,7 +365,7 @@ mod tests { ), ] { let mut s = MessageStream::new(encoded_str.as_bytes()); - let (_, result) = super::decode_quoted_printable_mime(&mut s, b"boundary"); + let (_, result) = s.decode_quoted_printable_mime(b"boundary"); assert_eq!( result, @@ -407,13 +394,10 @@ mod tests { ("????????=", "???????"), ("\n\n", ""), ] { - let (bytes, mut result) = super::decode_quoted_printable_word(encoded_str.as_bytes()); - if bytes == usize::MAX { - result.clear(); - } + let mut s = MessageStream::new(encoded_str.as_bytes()); assert_eq!( - result, + s.decode_quoted_printable_word().unwrap_or_default(), expected_result.as_bytes(), "Failed for {:?}", encoded_str diff --git a/src/parsers/fields/address.rs b/src/parsers/fields/address.rs index 9ebf36d..a65bec0 100644 --- a/src/parsers/fields/address.rs +++ b/src/parsers/fields/address.rs @@ -11,10 +11,7 @@ use std::borrow::Cow; -use crate::{ - decoders::encoded_word::decode_rfc2047, parsers::message::MessageStream, Addr, Group, - HeaderValue, -}; +use crate::{parsers::MessageStream, Addr, Group, HeaderValue}; #[derive(PartialEq, Clone, Copy, Debug)] enum AddressState { @@ -45,45 +42,336 @@ pub struct AddressParser<'x> { result: Vec>, } -pub fn add_token<'x>( - parser: &mut AddressParser<'x>, - stream: &MessageStream<'x>, - add_trail_space: bool, -) { - if parser.token_start > 0 { - let token = String::from_utf8_lossy(&stream.data[parser.token_start - 1..parser.token_end]); - let mut add_space = false; - let list = match parser.state { - AddressState::Address => &mut parser.mail_tokens, - AddressState::Name => { - if parser.is_token_email { - &mut parser.mail_tokens - } else { - add_space = true; - &mut parser.name_tokens +impl<'x> AddressParser<'x> { + pub fn add_token(&mut self, stream: &MessageStream<'x>, add_trail_space: bool) { + if self.token_start > 0 { + let token = String::from_utf8_lossy(&stream.data[self.token_start - 1..self.token_end]); + let mut add_space = false; + let list = match self.state { + AddressState::Address => &mut self.mail_tokens, + AddressState::Name => { + if self.is_token_email { + &mut self.mail_tokens + } else { + add_space = true; + &mut self.name_tokens + } } + AddressState::Quote => &mut self.name_tokens, + AddressState::Comment => { + add_space = true; + &mut self.comment_tokens + } + }; + + if add_space && !list.is_empty() { + list.push(" ".into()); } - AddressState::Quote => &mut parser.name_tokens, - AddressState::Comment => { - add_space = true; - &mut parser.comment_tokens + + list.push(token); + + if add_trail_space { + list.push(" ".into()); } + + self.token_start = 0; + self.is_token_email = false; + self.is_token_start = true; + self.is_escaped = false; + } + } + + pub fn add_address(&mut self) { + let has_mail = !self.mail_tokens.is_empty(); + let has_name = !self.name_tokens.is_empty(); + let has_comment = !self.comment_tokens.is_empty(); + + self.addresses.push(if has_mail && has_name && has_comment { + Addr { + name: Some( + format!( + "{} ({})", + concat_tokens(&mut self.name_tokens), + concat_tokens(&mut self.comment_tokens) + ) + .into(), + ), + address: concat_tokens(&mut self.mail_tokens).into(), + } + } else if has_name && has_mail { + Addr { + name: concat_tokens(&mut self.name_tokens).into(), + address: concat_tokens(&mut self.mail_tokens).into(), + } + } else if has_mail && has_comment { + Addr { + name: concat_tokens(&mut self.comment_tokens).into(), + address: concat_tokens(&mut self.mail_tokens).into(), + } + } else if has_mail { + Addr { + name: None, + address: concat_tokens(&mut self.mail_tokens).into(), + } + } else if has_name && has_comment { + Addr { + name: concat_tokens(&mut self.comment_tokens).into(), + address: concat_tokens(&mut self.name_tokens).into(), + } + } else if has_name { + Addr { + name: concat_tokens(&mut self.name_tokens).into(), + address: None, + } + } else if has_comment { + Addr { + name: concat_tokens(&mut self.comment_tokens).into(), + address: None, + } + } else { + return; + }); + } + + pub fn add_group_details(&mut self) { + if !self.name_tokens.is_empty() { + self.group_name = concat_tokens(&mut self.name_tokens).into(); + } + + if !self.comment_tokens.is_empty() { + self.group_comment = concat_tokens(&mut self.comment_tokens).into(); + } + + if !self.mail_tokens.is_empty() { + if self.group_name.is_none() { + self.group_name = concat_tokens(&mut self.mail_tokens).into(); + } else { + self.group_name = Some( + (self.group_name.as_ref().unwrap().as_ref().to_owned() + + " " + + concat_tokens(&mut self.mail_tokens).as_ref()) + .into(), + ); + } + } + } + + pub fn add_group(&mut self) { + let has_name = self.group_name.is_some(); + let has_comment = self.group_comment.is_some(); + let has_addresses = !self.addresses.is_empty(); + + self.result + .push(if has_name && has_addresses && has_comment { + Group { + name: Some( + format!( + "{} ({})", + self.group_name.take().unwrap(), + self.group_comment.take().unwrap() + ) + .into(), + ), + addresses: std::mem::take(&mut self.addresses), + } + } else if has_addresses && has_name { + Group { + name: self.group_name.take(), + addresses: std::mem::take(&mut self.addresses), + } + } else if has_addresses { + Group { + name: self.group_comment.take(), + addresses: std::mem::take(&mut self.addresses), + } + } else if has_name { + Group { + name: self.group_name.take(), + addresses: Vec::new(), + } + } else { + return; + }); + } +} + +impl<'x> MessageStream<'x> { + pub fn parse_address(&mut self) -> HeaderValue<'x> { + let mut parser = AddressParser { + token_start: 0, + token_end: 0, + + is_token_email: false, + is_token_start: true, + is_escaped: false, + + name_tokens: Vec::with_capacity(3), + mail_tokens: Vec::with_capacity(3), + comment_tokens: Vec::with_capacity(3), + + state: AddressState::Name, + state_stack: Vec::with_capacity(5), + + addresses: Vec::new(), + group_name: None, + group_comment: None, + result: Vec::new(), }; - if add_space && !list.is_empty() { - list.push(" ".into()); + while let Some(ch) = self.next() { + match ch { + b'\n' => { + parser.add_token(self, false); + if self.try_next_is_space() { + if !parser.is_token_start { + parser.is_token_start = true; + } + continue; + } else { + break; + } + } + b'\\' if parser.state != AddressState::Name => { + if parser.token_start > 0 { + if parser.state == AddressState::Quote { + parser.token_end = self.offset() - 1; + } + parser.add_token(self, false); + } + parser.is_escaped = true; + continue; + } + b',' if parser.state == AddressState::Name => { + parser.add_token(self, false); + parser.add_address(); + continue; + } + b'<' if parser.state == AddressState::Name => { + parser.add_token(self, false); + parser.state_stack.push(AddressState::Name); + parser.state = AddressState::Address; + continue; + } + b'>' if parser.state == AddressState::Address => { + parser.add_token(self, false); + parser.state = parser.state_stack.pop().unwrap(); + continue; + } + b'"' if !parser.is_escaped => match parser.state { + AddressState::Name => { + parser.state_stack.push(AddressState::Name); + parser.state = AddressState::Quote; + parser.add_token(self, false); + continue; + } + AddressState::Quote => { + parser.add_token(self, false); + parser.state = parser.state_stack.pop().unwrap(); + continue; + } + _ => (), + }, + b'@' if parser.state == AddressState::Name => { + parser.is_token_email = true; + } + b'=' if parser.is_token_start && !parser.is_escaped && self.peek_char(b'?') => { + self.checkpoint(); + if let Some(token) = self.decode_rfc2047() { + let add_space = parser.state != AddressState::Quote; // Make borrow-checker happy + parser.add_token(self, add_space); + (if parser.state != AddressState::Comment { + &mut parser.name_tokens + } else { + &mut parser.comment_tokens + }) + .push(token.into()); + continue; + } + self.restore(); + } + b' ' | b'\t' => { + if !parser.is_token_start { + parser.is_token_start = true; + } + if parser.is_escaped { + parser.is_escaped = false; + } + if parser.state == AddressState::Quote { + if parser.token_start == 0 { + parser.token_start = self.offset(); + parser.token_end = parser.token_start; + } else { + parser.token_end = self.offset(); + } + } + continue; + } + b'\r' => continue, + b'(' if parser.state != AddressState::Quote && !parser.is_escaped => { + parser.state_stack.push(parser.state); + if parser.state != AddressState::Comment { + parser.add_token(self, false); + parser.state = AddressState::Comment; + continue; + } + } + b')' if parser.state == AddressState::Comment && !parser.is_escaped => { + let new_state = parser.state_stack.pop().unwrap(); + if parser.state != new_state { + parser.add_token(self, false); + parser.state = new_state; + continue; + } + } + b':' if parser.state == AddressState::Name && !parser.is_escaped => { + parser.add_group(); + parser.add_token(self, false); + parser.add_group_details(); + continue; + } + b';' if parser.state == AddressState::Name => { + parser.add_token(self, false); + parser.add_address(); + parser.add_group(); + continue; + } + _ => (), + } + + if parser.is_escaped { + parser.is_escaped = false; + } + + if parser.is_token_start { + parser.is_token_start = false; + } + + if parser.token_start == 0 { + parser.token_start = self.offset(); + parser.token_end = parser.token_start; + } else { + parser.token_end = self.offset(); + } } - list.push(token); + parser.add_address(); - if add_trail_space { - list.push(" ".into()); + if parser.group_name.is_some() || !parser.result.is_empty() { + parser.add_group(); + if parser.result.len() > 1 { + HeaderValue::GroupList(parser.result) + } else { + HeaderValue::Group(parser.result.pop().unwrap()) + } + } else if !parser.addresses.is_empty() { + if parser.addresses.len() > 1 { + HeaderValue::AddressList(parser.addresses) + } else { + HeaderValue::Address(parser.addresses.pop().unwrap()) + } + } else { + HeaderValue::Empty } - - parser.token_start = 0; - parser.is_token_email = false; - parser.is_token_start = true; - parser.is_escaped = false; } } @@ -97,307 +385,6 @@ fn concat_tokens<'x>(tokens: &mut Vec>) -> Cow<'x, str> { } } -pub fn add_address(parser: &mut AddressParser) { - let has_mail = !parser.mail_tokens.is_empty(); - let has_name = !parser.name_tokens.is_empty(); - let has_comment = !parser.comment_tokens.is_empty(); - - parser - .addresses - .push(if has_mail && has_name && has_comment { - Addr { - name: Some( - format!( - "{} ({})", - concat_tokens(&mut parser.name_tokens), - concat_tokens(&mut parser.comment_tokens) - ) - .into(), - ), - address: concat_tokens(&mut parser.mail_tokens).into(), - } - } else if has_name && has_mail { - Addr { - name: concat_tokens(&mut parser.name_tokens).into(), - address: concat_tokens(&mut parser.mail_tokens).into(), - } - } else if has_mail && has_comment { - Addr { - name: concat_tokens(&mut parser.comment_tokens).into(), - address: concat_tokens(&mut parser.mail_tokens).into(), - } - } else if has_mail { - Addr { - name: None, - address: concat_tokens(&mut parser.mail_tokens).into(), - } - } else if has_name && has_comment { - Addr { - name: concat_tokens(&mut parser.comment_tokens).into(), - address: concat_tokens(&mut parser.name_tokens).into(), - } - } else if has_name { - Addr { - name: concat_tokens(&mut parser.name_tokens).into(), - address: None, - } - } else if has_comment { - Addr { - name: concat_tokens(&mut parser.comment_tokens).into(), - address: None, - } - } else { - return; - }); -} - -pub fn add_group_details(parser: &mut AddressParser) { - if !parser.name_tokens.is_empty() { - parser.group_name = concat_tokens(&mut parser.name_tokens).into(); - } - - if !parser.comment_tokens.is_empty() { - parser.group_comment = concat_tokens(&mut parser.comment_tokens).into(); - } - - if !parser.mail_tokens.is_empty() { - if parser.group_name.is_none() { - parser.group_name = concat_tokens(&mut parser.mail_tokens).into(); - } else { - parser.group_name = Some( - (parser.group_name.as_ref().unwrap().as_ref().to_owned() - + " " - + concat_tokens(&mut parser.mail_tokens).as_ref()) - .into(), - ); - } - } -} - -pub fn add_group(parser: &mut AddressParser) { - let has_name = parser.group_name.is_some(); - let has_comment = parser.group_comment.is_some(); - let has_addresses = !parser.addresses.is_empty(); - - parser - .result - .push(if has_name && has_addresses && has_comment { - Group { - name: Some( - format!( - "{} ({})", - parser.group_name.take().unwrap(), - parser.group_comment.take().unwrap() - ) - .into(), - ), - addresses: std::mem::take(&mut parser.addresses), - } - } else if has_addresses && has_name { - Group { - name: parser.group_name.take(), - addresses: std::mem::take(&mut parser.addresses), - } - } else if has_addresses { - Group { - name: parser.group_comment.take(), - addresses: std::mem::take(&mut parser.addresses), - } - } else if has_name { - Group { - name: parser.group_name.take(), - addresses: Vec::new(), - } - } else { - return; - }); -} - -pub fn parse_address<'x>(stream: &mut MessageStream<'x>) -> HeaderValue<'x> { - let mut parser = AddressParser { - token_start: 0, - token_end: 0, - - is_token_email: false, - is_token_start: true, - is_escaped: false, - - name_tokens: Vec::with_capacity(3), - mail_tokens: Vec::with_capacity(3), - comment_tokens: Vec::with_capacity(3), - - state: AddressState::Name, - state_stack: Vec::with_capacity(5), - - addresses: Vec::new(), - group_name: None, - group_comment: None, - result: Vec::new(), - }; - - let mut iter = stream.data[stream.pos..].iter(); - - while let Some(ch) = iter.next() { - stream.pos += 1; - - match ch { - b'\n' => { - add_token(&mut parser, stream, false); - match stream.data.get(stream.pos) { - Some(b' ' | b'\t') => { - iter.next(); - stream.pos += 1; - if !parser.is_token_start { - parser.is_token_start = true; - } - continue; - } - _ => break, - } - } - b'\\' if parser.state != AddressState::Name => { - if parser.token_start > 0 { - if parser.state == AddressState::Quote { - parser.token_end = stream.pos - 1; - } - add_token(&mut parser, stream, false); - } - parser.is_escaped = true; - continue; - } - b',' if parser.state == AddressState::Name => { - add_token(&mut parser, stream, false); - add_address(&mut parser); - continue; - } - b'<' if parser.state == AddressState::Name => { - add_token(&mut parser, stream, false); - parser.state_stack.push(AddressState::Name); - parser.state = AddressState::Address; - continue; - } - b'>' if parser.state == AddressState::Address => { - add_token(&mut parser, stream, false); - parser.state = parser.state_stack.pop().unwrap(); - continue; - } - b'"' if !parser.is_escaped => match parser.state { - AddressState::Name => { - parser.state_stack.push(AddressState::Name); - parser.state = AddressState::Quote; - add_token(&mut parser, stream, false); - continue; - } - AddressState::Quote => { - add_token(&mut parser, stream, false); - parser.state = parser.state_stack.pop().unwrap(); - continue; - } - _ => (), - }, - b'@' if parser.state == AddressState::Name => { - parser.is_token_email = true; - } - b'=' if parser.is_token_start && !parser.is_escaped => { - if let (d_bytes_read, Some(token)) = decode_rfc2047(stream, stream.pos) { - let add_space = parser.state != AddressState::Quote; // Make borrow-checker happy - add_token(&mut parser, stream, add_space); - (if parser.state != AddressState::Comment { - &mut parser.name_tokens - } else { - &mut parser.comment_tokens - }) - .push(token.into()); - stream.pos += d_bytes_read; - iter = stream.data[stream.pos..].iter(); - continue; - } - } - b' ' | b'\t' => { - if !parser.is_token_start { - parser.is_token_start = true; - } - if parser.is_escaped { - parser.is_escaped = false; - } - if parser.state == AddressState::Quote { - if parser.token_start == 0 { - parser.token_start = stream.pos; - parser.token_end = parser.token_start; - } else { - parser.token_end = stream.pos; - } - } - continue; - } - b'\r' => continue, - b'(' if parser.state != AddressState::Quote && !parser.is_escaped => { - parser.state_stack.push(parser.state); - if parser.state != AddressState::Comment { - add_token(&mut parser, stream, false); - parser.state = AddressState::Comment; - continue; - } - } - b')' if parser.state == AddressState::Comment && !parser.is_escaped => { - let new_state = parser.state_stack.pop().unwrap(); - if parser.state != new_state { - add_token(&mut parser, stream, false); - parser.state = new_state; - continue; - } - } - b':' if parser.state == AddressState::Name && !parser.is_escaped => { - add_group(&mut parser); - add_token(&mut parser, stream, false); - add_group_details(&mut parser); - continue; - } - b';' if parser.state == AddressState::Name => { - add_token(&mut parser, stream, false); - add_address(&mut parser); - add_group(&mut parser); - continue; - } - _ => (), - } - - if parser.is_escaped { - parser.is_escaped = false; - } - - if parser.is_token_start { - parser.is_token_start = false; - } - - if parser.token_start == 0 { - parser.token_start = stream.pos; - parser.token_end = parser.token_start; - } else { - parser.token_end = stream.pos; - } - } - - add_address(&mut parser); - - if parser.group_name.is_some() || !parser.result.is_empty() { - add_group(&mut parser); - if parser.result.len() > 1 { - HeaderValue::GroupList(parser.result) - } else { - HeaderValue::Group(parser.result.pop().unwrap()) - } - } else if !parser.addresses.is_empty() { - if parser.addresses.len() > 1 { - HeaderValue::AddressList(parser.addresses) - } else { - HeaderValue::Address(parser.addresses.pop().unwrap()) - } - } else { - HeaderValue::Empty - } -} - pub fn parse_address_local_part(addr: &str) -> Option<&str> { let addr = addr.as_bytes(); let mut iter = addr.iter().enumerate(); @@ -486,8 +473,6 @@ pub fn parse_address_detail_part(addr: &str) -> Option<&str> { mod tests { #[test] fn parse_addresses() { - use crate::parsers::fields::address::parse_address; - use super::*; let inputs = [ @@ -1008,7 +993,7 @@ mod tests { for input in inputs { let str = input.0.to_string(); - let result = parse_address(&mut MessageStream::new(str.as_bytes())); + let result = MessageStream::new(str.as_bytes()).parse_address(); let expected: HeaderValue = serde_yaml::from_str(input.1).unwrap_or(HeaderValue::Empty); /*if input.0.len() >= 70 { diff --git a/src/parsers/fields/content_type.rs b/src/parsers/fields/content_type.rs index f111e45..63367c2 100644 --- a/src/parsers/fields/content_type.rs +++ b/src/parsers/fields/content_type.rs @@ -12,8 +12,8 @@ use std::borrow::Cow; use crate::{ - decoders::{charsets::map::get_charset_decoder, encoded_word::decode_rfc2047, hex::decode_hex}, - parsers::message::MessageStream, + decoders::{charsets::map::get_charset_decoder, hex::decode_hex}, + parsers::MessageStream, ContentType, HeaderValue, }; @@ -55,476 +55,470 @@ struct ContentTypeParser<'x> { is_token_start: bool, } -#[inline(always)] -fn reset_parser(parser: &mut ContentTypeParser) { - parser.token_start = 0; - parser.is_token_start = true; -} - -fn add_attribute<'x>(parser: &mut ContentTypeParser<'x>, stream: &MessageStream<'x>) -> bool { - if parser.token_start > 0 { - let mut attr = Some(String::from_utf8_lossy( - &stream.data[parser.token_start - 1..parser.token_end], - )); - - if !parser.is_lower_case { - attr.as_mut().unwrap().to_mut().make_ascii_lowercase(); - parser.is_lower_case = true; - } - - match parser.state { - ContentState::AttributeName => parser.attr_name = attr, - ContentState::Type => parser.c_type = attr, - ContentState::SubType => parser.c_subtype = attr, - _ => unreachable!(), - } - - reset_parser(parser); - true - } else { - false +impl<'x> ContentTypeParser<'x> { + #[inline(always)] + fn reset_parser(&mut self) { + self.token_start = 0; + self.is_token_start = true; } -} -fn add_attribute_parameter<'x>(parser: &mut ContentTypeParser<'x>, stream: &MessageStream<'x>) { - if parser.token_start > 0 { - let attr_part = - String::from_utf8_lossy(&stream.data[parser.token_start - 1..parser.token_end]); + fn add_attribute(&mut self, stream: &MessageStream<'x>) -> bool { + if self.token_start > 0 { + let mut attr = Some(String::from_utf8_lossy( + &stream.data[self.token_start - 1..self.token_end], + )); - if parser.attr_charset.is_none() { - parser.attr_charset = attr_part.into(); - } else { - let attr_name = parser - .attr_name - .as_ref() - .unwrap_or(&"unknown".into()) - .clone() - + "-language"; - - if !parser.attributes.iter().any(|(name, _)| name == &attr_name) { - parser.attributes.push((attr_name, attr_part)); - } else { - parser.values.push("'".into()); - parser.values.push(attr_part); + if !self.is_lower_case { + attr.as_mut().unwrap().to_mut().make_ascii_lowercase(); + self.is_lower_case = true; } - } - reset_parser(parser); - } -} - -fn add_partial_value<'x>( - parser: &mut ContentTypeParser<'x>, - stream: &MessageStream<'x>, - to_cur_pos: bool, -) { - if parser.token_start > 0 { - let in_quote = parser.state == ContentState::AttributeQuotedValue; - - parser.values.push(String::from_utf8_lossy( - &stream.data[parser.token_start - 1..if in_quote && to_cur_pos { - stream.pos - 1 - } else { - parser.token_end - }], - )); - if !in_quote { - parser.values.push(" ".into()); - } - - reset_parser(parser); - } -} - -fn add_value<'x>(parser: &mut ContentTypeParser<'x>, stream: &MessageStream<'x>) { - if parser.attr_name.is_none() { - return; - } - - let has_values = !parser.values.is_empty(); - let value = if parser.token_start > 0 { - let value = &stream.data[parser.token_start - 1..parser.token_end]; - Some(if !parser.remove_crlf { - String::from_utf8_lossy(value) - } else { - parser.remove_crlf = false; - match String::from_utf8( - value - .iter() - .filter(|&&ch| ch != b'\r' && ch != b'\n') - .copied() - .collect::>(), - ) { - Ok(value) => value.into(), - Err(err) => String::from_utf8_lossy(err.as_bytes()).into_owned().into(), + match self.state { + ContentState::AttributeName => self.attr_name = attr, + ContentState::Type => self.c_type = attr, + ContentState::SubType => self.c_subtype = attr, + _ => unreachable!(), } - }) - } else { - if !has_values { + + self.reset_parser(); + true + } else { + false + } + } + + fn add_attribute_parameter(&mut self, stream: &MessageStream<'x>) { + if self.token_start > 0 { + let attr_part = + String::from_utf8_lossy(&stream.data[self.token_start - 1..self.token_end]); + + if self.attr_charset.is_none() { + self.attr_charset = attr_part.into(); + } else { + let attr_name = + self.attr_name.as_ref().unwrap_or(&"unknown".into()).clone() + "-language"; + + if !self.attributes.iter().any(|(name, _)| name == &attr_name) { + self.attributes.push((attr_name, attr_part)); + } else { + self.values.push("'".into()); + self.values.push(attr_part); + } + } + + self.reset_parser(); + } + } + + fn add_partial_value(&mut self, stream: &MessageStream<'x>, to_cur_pos: bool) { + if self.token_start > 0 { + let in_quote = self.state == ContentState::AttributeQuotedValue; + + self.values.push(String::from_utf8_lossy( + &stream.data[self.token_start - 1..if in_quote && to_cur_pos { + stream.offset() - 1 + } else { + self.token_end + }], + )); + if !in_quote { + self.values.push(" ".into()); + } + + self.reset_parser(); + } + } + + fn add_value(&mut self, stream: &MessageStream<'x>) { + if self.attr_name.is_none() { return; } - None - }; - if !parser.is_continuation { - parser.attributes.push(( - parser.attr_name.take().unwrap(), - if !has_values { - value.unwrap() + let has_values = !self.values.is_empty(); + let value = if self.token_start > 0 { + let value = &stream.data[self.token_start - 1..self.token_end]; + Some(if !self.remove_crlf { + String::from_utf8_lossy(value) } else { - if let Some(value) = value { - parser.values.push(value); + self.remove_crlf = false; + match String::from_utf8( + value + .iter() + .filter(|&&ch| ch != b'\r' && ch != b'\n') + .copied() + .collect::>(), + ) { + Ok(value) => value.into(), + Err(err) => String::from_utf8_lossy(err.as_bytes()).into_owned().into(), } - parser.values.concat().into() - }, - )); - } else { - let attr_name = parser.attr_name.take().unwrap(); - let mut value = if let Some(value) = value { - if has_values { - Cow::from(parser.values.concat()) + value - } else { - value - } + }) } else { - parser.values.concat().into() + if !has_values { + return; + } + None }; - if parser.is_encoded_attribute { - if let (true, decoded_bytes) = decode_hex(value.as_bytes()) { - value = if let Some(decoder) = parser - .attr_charset - .as_ref() - .and_then(|c| get_charset_decoder(c.as_bytes())) - { - decoder(&decoded_bytes).into() + if !self.is_continuation { + self.attributes.push(( + self.attr_name.take().unwrap(), + if !has_values { + value.unwrap() } else { - String::from_utf8(decoded_bytes) - .unwrap_or_else(|e| String::from_utf8_lossy(e.as_bytes()).into_owned()) - .into() + if let Some(value) = value { + self.values.push(value); + } + self.values.concat().into() + }, + )); + } else { + let attr_name = self.attr_name.take().unwrap(); + let mut value = if let Some(value) = value { + if has_values { + Cow::from(self.values.concat()) + value + } else { + value } - } - parser.is_encoded_attribute = false; - } - - if parser.attr_position > 0 { - let continuation = (attr_name, parser.attr_position, value); - if let Some(continuations) = parser.continuations.as_mut() { - continuations.push(continuation); } else { - parser.continuations = Some(vec![continuation]); - } + self.values.concat().into() + }; - parser.attr_position = 0; - } else { - parser.attributes.push((attr_name, value)); - } - parser.is_continuation = false; - parser.attr_charset = None; - } - - if has_values { - parser.values.clear(); - } - - reset_parser(parser); -} - -fn add_attr_position(parser: &mut ContentTypeParser, stream: &MessageStream) -> bool { - if parser.token_start > 0 { - parser.attr_position = - String::from_utf8_lossy(&stream.data[parser.token_start - 1..parser.token_end]) - .parse() - .unwrap_or(0); - - reset_parser(parser); - true - } else { - false - } -} - -fn merge_continuations(parser: &mut ContentTypeParser) { - let continuations = parser.continuations.as_mut().unwrap(); - continuations.sort(); - for (key, _, value) in continuations.drain(..) { - if let Some((_, old_value)) = parser.attributes.iter_mut().find(|(name, _)| name == &key) { - *old_value = format!("{}{}", old_value.to_owned(), value).into(); - } else { - parser.attributes.push((key, value)); - } - } -} - -pub fn parse_content_type<'x>(stream: &mut MessageStream<'x>) -> HeaderValue<'x> { - let mut parser = ContentTypeParser { - state: ContentState::Type, - state_stack: Vec::new(), - - c_type: None, - c_subtype: None, - - attr_name: None, - attr_charset: None, - attr_position: 0, - - attributes: Vec::new(), - values: Vec::new(), - continuations: None, - - is_continuation: false, - is_encoded_attribute: false, - is_lower_case: true, - is_token_start: true, - is_escaped: false, - remove_crlf: false, - - token_start: 0, - token_end: 0, - }; - - let mut iter = stream.data[stream.pos..].iter(); - - while let Some(ch) = iter.next() { - stream.pos += 1; - match ch { - b' ' | b'\t' => { - if !parser.is_token_start { - parser.is_token_start = true; - } - if let ContentState::AttributeQuotedValue = parser.state { - if parser.token_start == 0 { - parser.token_start = stream.pos; - parser.token_end = parser.token_start; - } else { - parser.token_end = stream.pos; - } - } - continue; - } - b'A'..=b'Z' => { - if parser.is_lower_case { - if let ContentState::Type - | ContentState::SubType - | ContentState::AttributeName = parser.state + if self.is_encoded_attribute { + if let (true, decoded_bytes) = decode_hex(value.as_bytes()) { + value = if let Some(decoder) = self + .attr_charset + .as_ref() + .and_then(|c| get_charset_decoder(c.as_bytes())) { - parser.is_lower_case = false; + decoder(&decoded_bytes).into() + } else { + String::from_utf8(decoded_bytes) + .unwrap_or_else(|e| String::from_utf8_lossy(e.as_bytes()).into_owned()) + .into() } } + self.is_encoded_attribute = false; } - b'\n' => { - let next_is_space = matches!(stream.data.get(stream.pos), Some(b' ' | b'\t')); - match parser.state { - ContentState::Type | ContentState::AttributeName | ContentState::SubType => { - add_attribute(&mut parser, stream); - } - ContentState::AttributeValue => { - add_value(&mut parser, stream); - } - ContentState::AttributeQuotedValue => { - if next_is_space { - parser.remove_crlf = true; - continue; - } else { - add_value(&mut parser, stream); - } - } - _ => (), - } - if next_is_space { - parser.state = ContentState::AttributeName; - stream.pos += 1; - iter.next(); - - if !parser.is_token_start { - parser.is_token_start = true; - } - continue; + if self.attr_position > 0 { + let continuation = (attr_name, self.attr_position, value); + if let Some(continuations) = self.continuations.as_mut() { + continuations.push(continuation); } else { - if parser.continuations.is_some() { - merge_continuations(&mut parser); - } + self.continuations = Some(vec![continuation]); + } - return if let Some(content_type) = parser.c_type { - HeaderValue::ContentType(ContentType { - c_type: content_type, - c_subtype: parser.c_subtype.take(), - attributes: if !parser.attributes.is_empty() { - Some(parser.attributes) - } else { - None - }, - }) - } else { - HeaderValue::Empty - }; - } + self.attr_position = 0; + } else { + self.attributes.push((attr_name, value)); } - b'/' if parser.state == ContentState::Type => { - add_attribute(&mut parser, stream); - parser.state = ContentState::SubType; - continue; - } - b';' => match parser.state { - ContentState::Type | ContentState::SubType | ContentState::AttributeName => { - add_attribute(&mut parser, stream); - parser.state = ContentState::AttributeName; - continue; - } - ContentState::AttributeValue => { - if !parser.is_escaped { - add_value(&mut parser, stream); - parser.state = ContentState::AttributeName; - } else { - parser.is_escaped = false; - } - continue; - } - _ => (), - }, - b'*' if parser.state == ContentState::AttributeName => { - if !parser.is_continuation { - parser.is_continuation = add_attribute(&mut parser, stream); - } else if !parser.is_encoded_attribute { - add_attr_position(&mut parser, stream); - parser.is_encoded_attribute = true; - } else { - // Malformed data, reset parser. - reset_parser(&mut parser); - } - continue; - } - b'=' => match parser.state { - ContentState::AttributeName => { - if !parser.is_continuation { - if !add_attribute(&mut parser, stream) { - continue; - } - } else if !parser.is_encoded_attribute { - /* If is_continuation=true && is_encoded_attribute=false, - the last character was a '*' which means encoding */ - parser.is_encoded_attribute = !add_attr_position(&mut parser, stream); - } else { - reset_parser(&mut parser); - } - parser.state = ContentState::AttributeValue; - continue; - } - ContentState::AttributeValue | ContentState::AttributeQuotedValue - if parser.is_token_start => - { - if let (d_bytes_read, Some(token)) = decode_rfc2047(stream, stream.pos) { - add_partial_value(&mut parser, stream, false); - parser.values.push(token.into()); - stream.pos += d_bytes_read; - iter = stream.data[stream.pos..].iter(); - continue; - } - } - _ => (), - }, - b'\"' => match parser.state { - ContentState::AttributeValue => { - if !parser.is_token_start { - parser.is_token_start = true; - } - parser.state = ContentState::AttributeQuotedValue; - continue; - } - ContentState::AttributeQuotedValue => { - if !parser.is_escaped { - add_value(&mut parser, stream); - parser.state = ContentState::AttributeName; - continue; - } else { - parser.is_escaped = false; - } - } - _ => continue, - }, - b'\\' => match parser.state { - ContentState::AttributeQuotedValue | ContentState::AttributeValue => { - if !parser.is_escaped { - add_partial_value(&mut parser, stream, true); - parser.is_escaped = true; - continue; - } else { - parser.is_escaped = false; - } - } - ContentState::Comment => parser.is_escaped = !parser.is_escaped, - _ => continue, - }, - b'\'' - if parser.is_encoded_attribute - && !parser.is_escaped - && (parser.state == ContentState::AttributeValue - || parser.state == ContentState::AttributeQuotedValue) => + self.is_continuation = false; + self.attr_charset = None; + } + + if has_values { + self.values.clear(); + } + + self.reset_parser(); + } + + fn add_attr_position(&mut self, stream: &MessageStream) -> bool { + if self.token_start > 0 { + self.attr_position = + String::from_utf8_lossy(&stream.data[self.token_start - 1..self.token_end]) + .parse() + .unwrap_or(0); + + self.reset_parser(); + true + } else { + false + } + } + + fn merge_continuations(&mut self) { + let continuations = self.continuations.as_mut().unwrap(); + continuations.sort(); + for (key, _, value) in continuations.drain(..) { + if let Some((_, old_value)) = self.attributes.iter_mut().find(|(name, _)| name == &key) { - add_attribute_parameter(&mut parser, stream); - continue; + *old_value = format!("{}{}", old_value.to_owned(), value).into(); + } else { + self.attributes.push((key, value)); } - b'(' if parser.state != ContentState::AttributeQuotedValue => { - if !parser.is_escaped { + } + } +} + +impl<'x> MessageStream<'x> { + pub fn parse_content_type(&mut self) -> HeaderValue<'x> { + let mut parser = ContentTypeParser { + state: ContentState::Type, + state_stack: Vec::new(), + + c_type: None, + c_subtype: None, + + attr_name: None, + attr_charset: None, + attr_position: 0, + + attributes: Vec::new(), + values: Vec::new(), + continuations: None, + + is_continuation: false, + is_encoded_attribute: false, + is_lower_case: true, + is_token_start: true, + is_escaped: false, + remove_crlf: false, + + token_start: 0, + token_end: 0, + }; + + while let Some(ch) = self.next() { + match ch { + b' ' | b'\t' => { + if !parser.is_token_start { + parser.is_token_start = true; + } + if let ContentState::AttributeQuotedValue = parser.state { + if parser.token_start == 0 { + parser.token_start = self.offset(); + parser.token_end = parser.token_start; + } else { + parser.token_end = self.offset(); + } + } + continue; + } + b'A'..=b'Z' => { + if parser.is_lower_case { + if let ContentState::Type + | ContentState::SubType + | ContentState::AttributeName = parser.state + { + parser.is_lower_case = false; + } + } + } + b'\n' => { + let next_is_space = self.peek_next_is_space(); match parser.state { ContentState::Type | ContentState::AttributeName | ContentState::SubType => { - add_attribute(&mut parser, stream); + parser.add_attribute(self); } ContentState::AttributeValue => { - add_value(&mut parser, stream); + parser.add_value(self); + } + ContentState::AttributeQuotedValue => { + if next_is_space { + parser.remove_crlf = true; + continue; + } else { + parser.add_value(self); + } } _ => (), } - parser.state_stack.push(parser.state); - parser.state = ContentState::Comment; - } else { - parser.is_escaped = false; + if next_is_space { + parser.state = ContentState::AttributeName; + self.next(); + + if !parser.is_token_start { + parser.is_token_start = true; + } + continue; + } else { + if parser.continuations.is_some() { + parser.merge_continuations(); + } + + return if let Some(content_type) = parser.c_type { + HeaderValue::ContentType(ContentType { + c_type: content_type, + c_subtype: parser.c_subtype.take(), + attributes: if !parser.attributes.is_empty() { + Some(parser.attributes) + } else { + None + }, + }) + } else { + HeaderValue::Empty + }; + } } - continue; - } - b')' if parser.state == ContentState::Comment => { - if !parser.is_escaped { - parser.state = parser.state_stack.pop().unwrap(); - reset_parser(&mut parser); - } else { - parser.is_escaped = false; + b'/' if parser.state == ContentState::Type => { + parser.add_attribute(self); + parser.state = ContentState::SubType; + continue; } - continue; + b';' => match parser.state { + ContentState::Type | ContentState::SubType | ContentState::AttributeName => { + parser.add_attribute(self); + parser.state = ContentState::AttributeName; + continue; + } + ContentState::AttributeValue => { + if !parser.is_escaped { + parser.add_value(self); + parser.state = ContentState::AttributeName; + } else { + parser.is_escaped = false; + } + continue; + } + _ => (), + }, + b'*' if parser.state == ContentState::AttributeName => { + if !parser.is_continuation { + parser.is_continuation = parser.add_attribute(self); + } else if !parser.is_encoded_attribute { + parser.add_attr_position(self); + parser.is_encoded_attribute = true; + } else { + // Malformed data, reset parser. + parser.reset_parser(); + } + continue; + } + b'=' => match parser.state { + ContentState::AttributeName => { + if !parser.is_continuation { + if !parser.add_attribute(self) { + continue; + } + } else if !parser.is_encoded_attribute { + /* If is_continuation=true && is_encoded_attribute=false, + the last character was a '*' which means encoding */ + parser.is_encoded_attribute = !parser.add_attr_position(self); + } else { + parser.reset_parser(); + } + parser.state = ContentState::AttributeValue; + continue; + } + ContentState::AttributeValue | ContentState::AttributeQuotedValue + if parser.is_token_start && self.peek_char(b'?') => + { + self.checkpoint(); + if let Some(token) = self.decode_rfc2047() { + parser.add_partial_value(self, false); + parser.values.push(token.into()); + continue; + } + self.restore(); + } + _ => (), + }, + b'\"' => match parser.state { + ContentState::AttributeValue => { + if !parser.is_token_start { + parser.is_token_start = true; + } + parser.state = ContentState::AttributeQuotedValue; + continue; + } + ContentState::AttributeQuotedValue => { + if !parser.is_escaped { + parser.add_value(self); + parser.state = ContentState::AttributeName; + continue; + } else { + parser.is_escaped = false; + } + } + _ => continue, + }, + b'\\' => match parser.state { + ContentState::AttributeQuotedValue | ContentState::AttributeValue => { + if !parser.is_escaped { + parser.add_partial_value(self, true); + parser.is_escaped = true; + continue; + } else { + parser.is_escaped = false; + } + } + ContentState::Comment => parser.is_escaped = !parser.is_escaped, + _ => continue, + }, + b'\'' + if parser.is_encoded_attribute + && !parser.is_escaped + && (parser.state == ContentState::AttributeValue + || parser.state == ContentState::AttributeQuotedValue) => + { + parser.add_attribute_parameter(self); + continue; + } + b'(' if parser.state != ContentState::AttributeQuotedValue => { + if !parser.is_escaped { + match parser.state { + ContentState::Type + | ContentState::AttributeName + | ContentState::SubType => { + parser.add_attribute(self); + } + ContentState::AttributeValue => { + parser.add_value(self); + } + _ => (), + } + + parser.state_stack.push(parser.state); + parser.state = ContentState::Comment; + } else { + parser.is_escaped = false; + } + continue; + } + b')' if parser.state == ContentState::Comment => { + if !parser.is_escaped { + parser.state = parser.state_stack.pop().unwrap(); + parser.reset_parser(); + } else { + parser.is_escaped = false; + } + continue; + } + b'\r' => continue, + _ => (), + } + + if parser.is_escaped { + parser.is_escaped = false; + } + + if parser.is_token_start { + parser.is_token_start = false; + } + + if parser.token_start == 0 { + parser.token_start = self.offset(); + parser.token_end = parser.token_start; + } else { + parser.token_end = self.offset(); } - b'\r' => continue, - _ => (), } - if parser.is_escaped { - parser.is_escaped = false; - } - - if parser.is_token_start { - parser.is_token_start = false; - } - - if parser.token_start == 0 { - parser.token_start = stream.pos; - parser.token_end = parser.token_start; - } else { - parser.token_end = stream.pos; - } + HeaderValue::Empty } - - HeaderValue::Empty } - #[cfg(test)] mod tests { use std::{borrow::Cow, collections::HashMap}; use serde::{Deserialize, Serialize}; - use crate::{parsers::message::MessageStream, HeaderValue}; + use crate::{parsers::MessageStream, HeaderValue}; #[derive(Serialize, Deserialize, PartialEq, Eq, Debug)] pub struct ContentTypeMap<'x> { @@ -541,8 +535,6 @@ mod tests { #[test] fn parse_content_fields() { - use super::parse_content_type; - let inputs = [ ( @@ -1571,7 +1563,7 @@ mod tests { let str = input.0.to_string(); // TODO: Redo tests without using hashmaps. - let result = match parse_content_type(&mut MessageStream::new(str.as_bytes())) { + let result = match MessageStream::new(str.as_bytes()).parse_content_type() { HeaderValue::ContentType(ct) => HeaderValueMap::ContentType(ContentTypeMap { c_type: ct.c_type, c_subtype: ct.c_subtype, diff --git a/src/parsers/fields/date.rs b/src/parsers/fields/date.rs index a09a762..dde6548 100644 --- a/src/parsers/fields/date.rs +++ b/src/parsers/fields/date.rs @@ -11,15 +11,12 @@ use std::fmt; -use crate::{parsers::message::MessageStream, DateTime, HeaderValue}; +use crate::{parsers::MessageStream, DateTime, HeaderValue}; impl DateTime { /// Parses an RFC822 date pub fn parse_rfc822(&self, value: &str) -> Option { - match parse_date(&mut MessageStream { - data: value.as_bytes(), - pos: 0, - }) { + match MessageStream::new(value.as_bytes()).parse_date() { HeaderValue::DateTime(dt) => dt.into(), _ => None, } @@ -107,142 +104,137 @@ impl fmt::Display for DateTime { } } -pub fn parse_date<'x>(stream: &mut MessageStream<'x>) -> HeaderValue<'x> { - let mut pos = 0; - let mut parts = [0u32; 7]; - let mut parts_sizes = [ - 2u32, // Day (0) - 2u32, // Month (1) - 4u32, // Year (2) - 2u32, // Hour (3) - 2u32, // Minute (4) - 2u32, // Second (5) - 4u32, // TZ (6) - ]; - let mut month_hash: usize = 0; - let mut month_pos: usize = 0; +impl<'x> MessageStream<'x> { + pub fn parse_date(&mut self) -> HeaderValue<'x> { + let mut pos = 0; + let mut parts = [0u32; 7]; + let mut parts_sizes = [ + 2u32, // Day (0) + 2u32, // Month (1) + 4u32, // Year (2) + 2u32, // Hour (3) + 2u32, // Minute (4) + 2u32, // Second (5) + 4u32, // TZ (6) + ]; + let mut month_hash: usize = 0; + let mut month_pos: usize = 0; - let mut is_plus = true; - let mut is_new_token = true; - let mut ignore = true; - let mut comment_count = 0; + let mut is_plus = true; + let mut is_new_token = true; + let mut ignore = true; + let mut comment_count = 0; - let mut iter = stream.data[stream.pos..].iter(); + while let Some(ch) = self.next() { + let mut next_part = false; - while let Some(ch) = iter.next() { - let mut next_part = false; - stream.pos += 1; - - match ch { - b'\n' => match stream.data.get(stream.pos) { - Some(b' ' | b'\t') => { - iter.next(); - stream.pos += 1; - - if !is_new_token && !ignore && comment_count == 0 { - next_part = true; + match ch { + b'\n' => { + if self.try_next_is_space() { + if !is_new_token && !ignore && comment_count == 0 { + next_part = true; + } else { + continue; + } } else { - continue; + break; } } - _ => break, - }, - _ if comment_count > 0 => { - if *ch == b')' { - comment_count -= 1; - } else if *ch == b'(' { + _ if comment_count > 0 => { + if *ch == b')' { + comment_count -= 1; + } else if *ch == b'(' { + comment_count += 1; + } else if *ch == b'\\' { + self.try_skip_char(b')'); + } + continue; + } + b'0'..=b'9' => { + if pos < 7 && parts_sizes[pos] > 0 { + parts_sizes[pos] -= 1; + parts[pos] += (*ch - b'0') as u32 * u32::pow(10, parts_sizes[pos]); + + if ignore { + ignore = false; + } + } + if is_new_token { + is_new_token = false; + } + } + b':' => { + if !is_new_token && !ignore && (pos == 3 || pos == 4) { + next_part = true; + } + } + b'+' => { + pos = 6; + } + b'-' => { + is_plus = false; + pos = 6; + } + b' ' | b'\t' => { + if !is_new_token && !ignore { + next_part = true; + } + } + b'a'..=b'z' | b'A'..=b'Z' => { + if pos == 1 { + if (1..=2).contains(&month_pos) { + month_hash += MONTH_HASH + [(if *ch <= b'Z' { *ch + 32 } else { *ch }) as usize] + as usize; + } + month_pos += 1; + } + if is_new_token { + is_new_token = false; + } + } + b'(' => { comment_count += 1; - } else if *ch == b'\\' { - if let Some(b')') = stream.data.get(stream.pos) { - stream.pos += 1; - } + is_new_token = true; + continue; } - continue; + b',' | b'\r' => (), + _ => (), } - b'0'..=b'9' => { + + if next_part { if pos < 7 && parts_sizes[pos] > 0 { - parts_sizes[pos] -= 1; - parts[pos] += (*ch - b'0') as u32 * u32::pow(10, parts_sizes[pos]); - - if ignore { - ignore = false; - } + parts[pos] /= u32::pow(10, parts_sizes[pos]); } - if is_new_token { - is_new_token = false; - } - } - b':' => { - if !is_new_token && !ignore && (pos == 3 || pos == 4) { - next_part = true; - } - } - b'+' => { - pos = 6; - } - b'-' => { - is_plus = false; - pos = 6; - } - b' ' | b'\t' => { - if !is_new_token && !ignore { - next_part = true; - } - } - b'a'..=b'z' | b'A'..=b'Z' => { - if pos == 1 { - if (1..=2).contains(&month_pos) { - month_hash += MONTH_HASH - [(if *ch <= b'Z' { *ch + 32 } else { *ch }) as usize] - as usize; - } - month_pos += 1; - } - if is_new_token { - is_new_token = false; - } - } - b'(' => { - comment_count += 1; + pos += 1; is_new_token = true; - continue; } - b',' | b'\r' => (), - _ => (), } - if next_part { - if pos < 7 && parts_sizes[pos] > 0 { - parts[pos] /= u32::pow(10, parts_sizes[pos]); - } - pos += 1; - is_new_token = true; + if pos >= 6 { + HeaderValue::DateTime(DateTime { + year: if (1..=99).contains(&parts[2]) { + parts[2] + 1900 + } else { + parts[2] + } as u16, + month: if month_pos == 3 && month_hash <= 30 { + MONTH_MAP[month_hash] as u8 + } else { + parts[1] as u8 + }, + day: parts[0] as u8, + hour: parts[3] as u8, + minute: parts[4] as u8, + second: parts[5] as u8, + tz_hour: (parts[6] / 100) as u8, + tz_minute: (parts[6] % 100) as u8, + tz_before_gmt: !is_plus, + }) + } else { + HeaderValue::Empty } } - - if pos >= 6 { - HeaderValue::DateTime(DateTime { - year: if (1..=99).contains(&parts[2]) { - parts[2] + 1900 - } else { - parts[2] - } as u16, - month: if month_pos == 3 && month_hash <= 30 { - MONTH_MAP[month_hash] as u8 - } else { - parts[1] as u8 - }, - day: parts[0] as u8, - hour: parts[3] as u8, - minute: parts[4] as u8, - second: parts[5] as u8, - tz_hour: (parts[6] / 100) as u8, - tz_minute: (parts[6] % 100) as u8, - tz_before_gmt: !is_plus, - }) - } else { - HeaderValue::Empty - } } static MONTH_HASH: &[u8] = &[ @@ -267,10 +259,7 @@ pub static MONTH_MAP: &[u8; 31] = &[ mod tests { use chrono::{FixedOffset, LocalResult, SecondsFormat, TimeZone, Utc}; - use crate::{ - parsers::{fields::date::parse_date, message::MessageStream}, - HeaderValue, - }; + use crate::{parsers::MessageStream, HeaderValue}; #[test] fn parse_dates() { @@ -335,7 +324,7 @@ mod tests { ]; for (input, expected_result) in inputs { - match parse_date(&mut MessageStream::new(input.as_bytes())) { + match MessageStream::new(input.as_bytes()).parse_date() { HeaderValue::DateTime(datetime) => { assert_eq!(expected_result, datetime.to_rfc3339()); diff --git a/src/parsers/fields/id.rs b/src/parsers/fields/id.rs index 16557cd..f7430d6 100644 --- a/src/parsers/fields/id.rs +++ b/src/parsers/fields/id.rs @@ -9,82 +9,75 @@ * except according to those terms. */ -use crate::{parsers::message::MessageStream, HeaderValue}; +use crate::{parsers::MessageStream, HeaderValue}; -pub fn parse_id<'x>(stream: &mut MessageStream<'x>) -> HeaderValue<'x> { - let mut token_start: usize = 0; - let mut token_end: usize = 0; - let mut token_invalid_start: usize = 0; // Handle broken clients - let mut token_invalid_end: usize = 0; // Handle broken clients - let mut is_id_part = false; - let mut ids = Vec::new(); +impl<'x> MessageStream<'x> { + pub fn parse_id(&mut self) -> HeaderValue<'x> { + let mut token_start: usize = 0; + let mut token_end: usize = 0; + let mut token_invalid_start: usize = 0; // Handle broken clients + let mut token_invalid_end: usize = 0; // Handle broken clients + let mut is_id_part = false; + let mut ids = Vec::new(); - let mut iter = stream.data[stream.pos..].iter(); - - while let Some(ch) = iter.next() { - stream.pos += 1; - match ch { - b'\n' => match stream.data.get(stream.pos) { - Some(b' ' | b'\t') => { - iter.next(); - stream.pos += 1; - continue; - } - _ => { - return match ids.len() { - 1 => HeaderValue::Text(ids.pop().unwrap()), - 0 => { - if token_invalid_start > 0 { - HeaderValue::Text(String::from_utf8_lossy( - &stream.data[token_invalid_start - 1..token_invalid_end], - )) - } else { - HeaderValue::Empty + while let Some(&ch) = self.next() { + match ch { + b'\n' => { + if !self.try_next_is_space() { + return match ids.len() { + 1 => HeaderValue::Text(ids.pop().unwrap()), + 0 => { + if token_invalid_start > 0 { + HeaderValue::Text(String::from_utf8_lossy( + self.get_bytes(token_invalid_start - 1..token_invalid_end), + )) + } else { + HeaderValue::Empty + } } - } - _ => HeaderValue::TextList(ids), - }; + _ => HeaderValue::TextList(ids), + }; + } else { + continue; + } } - }, - b'<' => { - is_id_part = true; - continue; - } - b'>' => { - is_id_part = false; - if token_start > 0 { - ids.push(String::from_utf8_lossy( - &stream.data[token_start - 1..token_end], - )); - token_start = 0; - } else { + b'<' => { + is_id_part = true; continue; } + b'>' => { + is_id_part = false; + if token_start > 0 { + ids.push(String::from_utf8_lossy( + self.get_bytes(token_start - 1..token_end), + )); + token_start = 0; + } else { + continue; + } + } + b' ' | b'\t' | b'\r' => continue, + _ => {} } - b' ' | b'\t' | b'\r' => continue, - _ => {} - } - if is_id_part { - if token_start == 0 { - token_start = stream.pos; + if is_id_part { + if token_start == 0 { + token_start = self.offset(); + } + token_end = self.offset(); + } else { + if token_invalid_start == 0 { + token_invalid_start = self.offset(); + } + token_invalid_end = self.offset(); } - token_end = stream.pos; - } else { - if token_invalid_start == 0 { - token_invalid_start = stream.pos; - } - token_invalid_end = stream.pos; } + + HeaderValue::Empty } - - HeaderValue::Empty } - #[cfg(test)] mod tests { - use crate::parsers::fields::id::parse_id; - use crate::parsers::message::MessageStream; - use crate::HeaderValue; + use crate::{parsers::MessageStream, HeaderValue}; #[test] fn parse_message_ids() { @@ -132,7 +125,7 @@ mod tests { for input in inputs { let str = input.0.to_string(); - match parse_id(&mut MessageStream::new(str.as_bytes())) { + match MessageStream::new(str.as_bytes()).parse_id() { HeaderValue::TextList(ids) => { assert_eq!(ids, input.1, "Failed to parse '{:?}'", input.0); } diff --git a/src/parsers/fields/list.rs b/src/parsers/fields/list.rs index f144334..06d91d8 100644 --- a/src/parsers/fields/list.rs +++ b/src/parsers/fields/list.rs @@ -11,7 +11,7 @@ use std::borrow::Cow; -use crate::{decoders::encoded_word::decode_rfc2047, parsers::message::MessageStream, HeaderValue}; +use crate::{parsers::MessageStream, HeaderValue}; struct ListParser<'x> { token_start: usize, @@ -21,116 +21,105 @@ struct ListParser<'x> { list: Vec>, } -fn add_token<'x>(parser: &mut ListParser<'x>, stream: &MessageStream<'x>, add_space: bool) { - if parser.token_start > 0 { - if !parser.tokens.is_empty() { - parser.tokens.push(" ".into()); - } - parser.tokens.push(String::from_utf8_lossy( - &stream.data[parser.token_start - 1..parser.token_end], - )); +impl<'x> ListParser<'x> { + fn add_token(&mut self, stream: &MessageStream<'x>, add_space: bool) { + if self.token_start > 0 { + if !self.tokens.is_empty() { + self.tokens.push(" ".into()); + } + self.tokens.push(String::from_utf8_lossy( + &stream.data[self.token_start - 1..self.token_end], + )); - if add_space { - parser.tokens.push(" ".into()); - } + if add_space { + self.tokens.push(" ".into()); + } - parser.token_start = 0; - parser.is_token_start = true; + self.token_start = 0; + self.is_token_start = true; + } + } + + fn add_tokens_to_list(&mut self) { + if !self.tokens.is_empty() { + self.list.push(if self.tokens.len() == 1 { + self.tokens.pop().unwrap() + } else { + let value = self.tokens.concat(); + self.tokens.clear(); + value.into() + }); + } } } -fn add_tokens_to_list(parser: &mut ListParser) { - if !parser.tokens.is_empty() { - parser.list.push(if parser.tokens.len() == 1 { - parser.tokens.pop().unwrap() - } else { - let value = parser.tokens.concat(); - parser.tokens.clear(); - value.into() - }); - } -} +impl<'x> MessageStream<'x> { + pub fn parse_comma_separared(&mut self) -> HeaderValue<'x> { + let mut parser = ListParser { + token_start: 0, + token_end: 0, + is_token_start: true, + tokens: Vec::new(), + list: Vec::new(), + }; -pub fn parse_comma_separared<'x>(stream: &mut MessageStream<'x>) -> HeaderValue<'x> { - let mut parser = ListParser { - token_start: 0, - token_end: 0, - is_token_start: true, - tokens: Vec::new(), - list: Vec::new(), - }; - - let mut iter = stream.data[stream.pos..].iter(); - - while let Some(ch) = iter.next() { - stream.pos += 1; - match ch { - b'\n' => { - add_token(&mut parser, stream, false); - - match stream.data.get(stream.pos) { - Some(b' ' | b'\t') => { - if !parser.is_token_start { - parser.is_token_start = true; - } - iter.next(); - stream.pos += 1; - continue; - } - _ => { - add_tokens_to_list(&mut parser); + while let Some(ch) = self.next() { + match ch { + b'\n' => { + parser.add_token(self, false); + if !self.try_next_is_space() { + parser.add_tokens_to_list(); return match parser.list.len() { 1 => HeaderValue::Text(parser.list.pop().unwrap()), 0 => HeaderValue::Empty, _ => HeaderValue::TextList(parser.list), }; + } else { + continue; } } - } - b' ' | b'\t' => { - if !parser.is_token_start { - parser.is_token_start = true; - } - continue; - } - b'=' if parser.is_token_start => { - if let (bytes_read, Some(token)) = decode_rfc2047(stream, stream.pos) { - add_token(&mut parser, stream, true); - parser.tokens.push(token.into()); - stream.pos += bytes_read; - iter = stream.data[stream.pos..].iter(); + b' ' | b'\t' => { + if !parser.is_token_start { + parser.is_token_start = true; + } continue; } + b'=' if parser.is_token_start && self.peek_char(b'?') => { + self.checkpoint(); + if let Some(token) = self.decode_rfc2047() { + parser.add_token(self, true); + parser.tokens.push(token.into()); + continue; + } + self.restore(); + } + b',' => { + parser.add_token(self, false); + parser.add_tokens_to_list(); + continue; + } + b'\r' => continue, + _ => (), } - b',' => { - add_token(&mut parser, stream, false); - add_tokens_to_list(&mut parser); - continue; + + if parser.is_token_start { + parser.is_token_start = false; } - b'\r' => continue, - _ => (), + + if parser.token_start == 0 { + parser.token_start = self.offset(); + } + + parser.token_end = self.offset(); } - if parser.is_token_start { - parser.is_token_start = false; - } - - if parser.token_start == 0 { - parser.token_start = stream.pos; - } - - parser.token_end = stream.pos; + HeaderValue::Empty } - - HeaderValue::Empty } - #[cfg(test)] mod tests { - use crate::parsers::fields::list::parse_comma_separared; - use crate::parsers::message::MessageStream; - use crate::HeaderValue; + use crate::{parsers::MessageStream, HeaderValue}; #[test] fn parse_comma_separated_text() { @@ -174,7 +163,7 @@ mod tests { for input in inputs { let str = input.0.to_string(); - match parse_comma_separared(&mut MessageStream::new(str.as_bytes())) { + match MessageStream::new(str.as_bytes()).parse_comma_separared() { HeaderValue::TextList(ids) => { assert_eq!(ids, input.1, "Failed to parse '{:?}'", input.0); } diff --git a/src/parsers/fields/raw.rs b/src/parsers/fields/raw.rs index 5cf1f5d..8dc34dd 100644 --- a/src/parsers/fields/raw.rs +++ b/src/parsers/fields/raw.rs @@ -9,61 +9,46 @@ * except according to those terms. */ -use crate::{parsers::message::MessageStream, HeaderValue}; +use crate::{parsers::MessageStream, HeaderValue}; -pub fn parse_raw<'x>(stream: &mut MessageStream<'x>) -> HeaderValue<'x> { - let mut token_start: usize = 0; - let mut token_end: usize = 0; +impl<'x> MessageStream<'x> { + pub fn parse_raw(&mut self) -> HeaderValue<'x> { + let mut token_start: usize = 0; + let mut token_end: usize = 0; - let mut iter = stream.data[stream.pos..].iter(); - - while let Some(ch) = iter.next() { - stream.pos += 1; - match ch { - b'\n' => match stream.data.get(stream.pos) { - Some(b' ' | b'\t') => { - iter.next(); - stream.pos += 1; - continue; - } - _ => { - return if token_start > 0 { - HeaderValue::Text(String::from_utf8_lossy( - &stream.data[token_start - 1..token_end], - )) + while let Some(ch) = self.next() { + match ch { + b'\n' => { + if !self.try_next_is_space() { + return if token_start > 0 { + HeaderValue::Text(String::from_utf8_lossy( + self.get_bytes(token_start - 1..token_end), + )) + } else { + HeaderValue::Empty + }; } else { - HeaderValue::Empty - }; + continue; + } } - }, - b' ' | b'\t' | b'\r' => continue, - _ => (), + b' ' | b'\t' | b'\r' => continue, + _ => (), + } + + if token_start == 0 { + token_start = self.offset(); + } + + token_end = self.offset(); } - if token_start == 0 { - token_start = stream.pos; - } - - token_end = stream.pos; + HeaderValue::Empty } - HeaderValue::Empty -} - -pub fn parse_and_ignore(stream: &mut MessageStream) { - let mut iter = stream.data[stream.pos..].iter(); - - while let Some(ch) = iter.next() { - stream.pos += 1; - - if ch == &b'\n' { - match stream.data.get(stream.pos) { - Some(b' ' | b'\t') => { - iter.next(); - stream.pos += 1; - continue; - } - _ => break, + pub fn parse_and_ignore(&mut self) { + while let Some(&ch) = self.next() { + if ch == b'\n' && !self.try_next_is_space() { + break; } } } @@ -71,9 +56,7 @@ pub fn parse_and_ignore(stream: &mut MessageStream) { #[cfg(test)] mod tests { - use crate::parsers::fields::raw::parse_raw; - use crate::parsers::message::MessageStream; - use crate::Message; + use crate::{parsers::MessageStream, Message}; #[test] fn parse_raw_text() { @@ -97,7 +80,7 @@ mod tests { for input in inputs { let str = input.0.to_string(); assert_eq!( - parse_raw(&mut MessageStream::new(str.as_bytes())).unwrap_text(), + MessageStream::new(str.as_bytes()).parse_raw().unwrap_text(), input.1, "Failed for '{:?}'", input.0 diff --git a/src/parsers/fields/unstructured.rs b/src/parsers/fields/unstructured.rs index 73f8d6c..abd6cf3 100644 --- a/src/parsers/fields/unstructured.rs +++ b/src/parsers/fields/unstructured.rs @@ -11,91 +11,87 @@ use std::borrow::Cow; -use crate::{decoders::encoded_word::decode_rfc2047, parsers::message::MessageStream, HeaderValue}; +use crate::{parsers::MessageStream, HeaderValue}; struct UnstructuredParser<'x> { token_start: usize, token_end: usize, tokens: Vec>, } -fn add_token<'x>(parser: &mut UnstructuredParser<'x>, stream: &MessageStream<'x>, add_space: bool) { - if parser.token_start > 0 { - if !parser.tokens.is_empty() { - parser.tokens.push(" ".into()); - } - parser.tokens.push(String::from_utf8_lossy( - &stream.data[parser.token_start - 1..parser.token_end], - )); +impl<'x> UnstructuredParser<'x> { + fn add_token(&mut self, stream: &MessageStream<'x>, add_space: bool) { + if self.token_start > 0 { + if !self.tokens.is_empty() { + self.tokens.push(" ".into()); + } + self.tokens.push(String::from_utf8_lossy( + stream.get_bytes(self.token_start - 1..self.token_end), + )); - if add_space { - parser.tokens.push(" ".into()); - } + if add_space { + self.tokens.push(" ".into()); + } - parser.token_start = 0; + self.token_start = 0; + } } } -pub fn parse_unstructured<'x>(stream: &mut MessageStream<'x>) -> HeaderValue<'x> { - let mut parser = UnstructuredParser { - token_start: 0, - token_end: 0, - tokens: Vec::new(), - }; +impl<'x> MessageStream<'x> { + pub fn parse_unstructured(&mut self) -> HeaderValue<'x> { + let mut parser = UnstructuredParser { + token_start: 0, + token_end: 0, + tokens: Vec::new(), + }; - let mut iter = stream.data[stream.pos..].iter(); + while let Some(ch) = self.next() { + match ch { + b'\n' => { + parser.add_token(self, false); - while let Some(ch) = iter.next() { - stream.pos += 1; - match ch { - b'\n' => { - add_token(&mut parser, stream, false); - - match stream.data.get(stream.pos) { - Some(b' ' | b'\t') => { - iter.next(); - stream.pos += 1; - continue; - } - _ => { + if !self.try_next_is_space() { return match parser.tokens.len() { 1 => HeaderValue::Text(parser.tokens.pop().unwrap()), 0 => HeaderValue::Empty, _ => HeaderValue::Text(parser.tokens.concat().into()), }; + } else { + continue; } } - } - b' ' | b'\t' | b'\r' => { - continue; - } - b'=' => { - if let (bytes_read, Some(token)) = decode_rfc2047(stream, stream.pos) { - add_token(&mut parser, stream, true); - parser.tokens.push(token.into()); - stream.pos += bytes_read; - iter = stream.data[stream.pos..].iter(); + b' ' | b'\t' | b'\r' => { continue; } + b'=' if self.peek_char(b'?') => { + self.checkpoint(); + if let Some(token) = self.decode_rfc2047() { + parser.add_token(self, true); + parser.tokens.push(token.into()); + continue; + } + self.restore(); + } + _ => (), } - _ => (), + + if parser.token_start == 0 { + parser.token_start = self.offset(); + } + + parser.token_end = self.offset(); } - if parser.token_start == 0 { - parser.token_start = stream.pos; - } - - parser.token_end = stream.pos; + HeaderValue::Empty } - - HeaderValue::Empty } #[cfg(test)] mod tests { + use crate::parsers::MessageStream; + #[test] fn parse_unstructured() { - use crate::parsers::message::MessageStream; - let inputs = [ ("Saying Hello\n", "Saying Hello", true), ("Re: Saying Hello\r\n", "Re: Saying Hello", true), @@ -195,7 +191,9 @@ mod tests { for (input, expected_result, _) in inputs { assert_eq!( - super::parse_unstructured(&mut MessageStream::new(input.as_bytes()),).unwrap_text(), + MessageStream::new(input.as_bytes()) + .parse_unstructured() + .unwrap_text(), expected_result, "Failed to parse '{:?}'", input diff --git a/src/parsers/header.rs b/src/parsers/header.rs index 8b67651..cbe0335 100644 --- a/src/parsers/header.rs +++ b/src/parsers/header.rs @@ -9,154 +9,172 @@ * except according to those terms. */ -use std::borrow::Cow; - use crate::{Header, HeaderName, HeaderValue, RfcHeader}; -use super::{ - fields::{ - address::parse_address, - content_type::parse_content_type, - date::parse_date, - id::parse_id, - list::parse_comma_separared, - raw::{parse_and_ignore, parse_raw}, - unstructured::parse_unstructured, - }, - message::MessageStream, -}; +use super::MessageStream; -#[derive(Debug, PartialEq, Eq)] -pub enum HeaderParserResult<'x> { - Rfc(RfcHeader), - Other(Cow<'x, str>), - Lf, - Eof, -} +impl<'x> MessageStream<'x> { + pub fn parse_headers(&mut self, headers: &mut Vec>) -> bool { + loop { + loop { + match self.peek() { + Some(b'\n') => { + self.next(); + return true; + } + None => return false, + Some(ch) if !ch.is_ascii_whitespace() => { + break; + } + _ => { + self.next(); + } + } + } -pub fn parse_headers<'x>(headers: &mut Vec>, stream: &mut MessageStream<'x>) -> bool { - loop { - let offset_field = stream.pos; - let (bytes_read, result) = parse_header_name(&stream.data[stream.pos..]); - stream.pos += bytes_read; + let offset_field = self.offset(); - match result { - HeaderParserResult::Rfc(name) => { - let (_, parser) = { + if let Some(header_name) = self.parse_header_name() { + if let HeaderName::Rfc(rfc_name) = &header_name { + let from_offset = self.offset(); + let value = match rfc_name { + RfcHeader::Subject + | RfcHeader::Comments + | RfcHeader::ContentDescription + | RfcHeader::ContentLocation + | RfcHeader::ContentTransferEncoding => self.parse_unstructured(), + RfcHeader::From + | RfcHeader::To + | RfcHeader::Cc + | RfcHeader::Bcc + | RfcHeader::ReplyTo + | RfcHeader::Sender + | RfcHeader::ResentTo + | RfcHeader::ResentFrom + | RfcHeader::ResentBcc + | RfcHeader::ResentCc + | RfcHeader::ResentSender + | RfcHeader::ListArchive + | RfcHeader::ListHelp + | RfcHeader::ListId + | RfcHeader::ListOwner + | RfcHeader::ListPost + | RfcHeader::ListSubscribe + | RfcHeader::ListUnsubscribe => self.parse_address(), + RfcHeader::Date | RfcHeader::ResentDate => self.parse_date(), + RfcHeader::MessageId + | RfcHeader::References + | RfcHeader::InReplyTo + | RfcHeader::ReturnPath + | RfcHeader::ContentId + | RfcHeader::ResentMessageId => self.parse_id(), + RfcHeader::Keywords | RfcHeader::ContentLanguage => { + self.parse_comma_separared() + } + RfcHeader::Received | RfcHeader::MimeVersion => self.parse_raw(), + RfcHeader::ContentType | RfcHeader::ContentDisposition => { + self.parse_content_type() + } + }; + + headers.push(Header { + name: header_name, + value, + offset_field, + offset_start: from_offset, + offset_end: self.offset(), + }); + } else { + let from_offset = self.offset(); + self.parse_and_ignore(); + + headers.push(Header { + name: header_name, + value: HeaderValue::Text(String::from_utf8_lossy( + self.get_bytes(from_offset..self.offset()), + )), + offset_field, + offset_start: from_offset, + offset_end: self.offset(), + }); + } + } else if self.is_eof() { + return false; + } + } + } + + pub fn parse_header_name(&mut self) -> Option> { + let mut token_start: usize = 0; + let mut token_end: usize = 0; + let mut token_len: usize = 0; + let mut token_hash: usize = 0; + let mut last_ch: u8 = 0; + + while let Some(&ch) = self.next() { + match ch { + b':' => { + if token_start != 0 { + break; + } + } + b'\n' => { + return None; + } + _ => { + if !ch.is_ascii_whitespace() { + if token_start == 0 { + token_start = self.offset(); + token_end = token_start; + } else { + token_end = self.offset(); + last_ch = ch; + } + + if let 0 | 9 = token_len { + token_hash += { + #[cfg(feature = "ludicrous_mode")] + unsafe { + *HDR_HASH.get_unchecked(ch.to_ascii_lowercase() as usize) + } + + #[cfg(not(feature = "ludicrous_mode"))] + HDR_HASH[ch.to_ascii_lowercase() as usize] + } as usize; + } + token_len += 1; + } + } + } + } + + if token_start != 0 { + let field = self.get_bytes(token_start - 1..token_end); + + if (2..=25).contains(&token_len) { + token_hash += token_len + { #[cfg(feature = "ludicrous_mode")] unsafe { - HDR_PARSER.get_unchecked(name as usize) + *HDR_HASH.get_unchecked(last_ch.to_ascii_lowercase() as usize) } #[cfg(not(feature = "ludicrous_mode"))] - HDR_PARSER[name as usize] - }; - let from_offset = stream.pos; + HDR_HASH[last_ch.to_ascii_lowercase() as usize] + } as usize; - headers.push(Header { - name: HeaderName::Rfc(name), - value: parser(stream), - offset_field, - offset_start: from_offset, - offset_end: stream.pos, - }); - } - HeaderParserResult::Other(name) => { - let from_offset = stream.pos; - parse_and_ignore(stream); + if (4..=72).contains(&token_hash) { + let token_hash = token_hash - 4; - headers.push(Header { - name: HeaderName::Other(name), - value: HeaderValue::Text(String::from_utf8_lossy( - &stream.data[from_offset..stream.pos], - )), - offset_field, - offset_start: from_offset, - offset_end: stream.pos, - }); - } - HeaderParserResult::Lf => return true, - HeaderParserResult::Eof => return false, - } - } -} - -pub fn parse_header_name(data: &[u8]) -> (usize, HeaderParserResult) { - let mut token_start: usize = 0; - let mut token_end: usize = 0; - let mut token_len: usize = 0; - let mut token_hash: usize = 0; - let mut last_ch: u8 = 0; - let mut bytes_read: usize = 0; - - for &ch in data.iter() { - bytes_read += 1; - - match ch { - b':' => { - if token_start != 0 { - break; - } - } - b'\n' => { - return (bytes_read - 1, HeaderParserResult::Lf); - } - _ => { - if !ch.is_ascii_whitespace() { - if token_start == 0 { - token_start = bytes_read; - token_end = token_start; - } else { - token_end = bytes_read; - last_ch = ch; + if field.eq_ignore_ascii_case(HDR_NAMES[token_hash]) { + return Some(HeaderName::Rfc(HDR_MAP[token_hash])); } - - if let 0 | 9 = token_len { - token_hash += { - #[cfg(feature = "ludicrous_mode")] - unsafe { - *HDR_HASH.get_unchecked(ch.to_ascii_lowercase() as usize) - } - - #[cfg(not(feature = "ludicrous_mode"))] - HDR_HASH[ch.to_ascii_lowercase() as usize] - } as usize; - } - token_len += 1; } } + Some(HeaderName::Other(String::from_utf8_lossy(field))) + } else { + None } } - - if token_start != 0 { - let field = &data[token_start - 1..token_end]; - - if (2..=25).contains(&token_len) { - token_hash += token_len + { - #[cfg(feature = "ludicrous_mode")] - unsafe { - *HDR_HASH.get_unchecked(last_ch.to_ascii_lowercase() as usize) - } - - #[cfg(not(feature = "ludicrous_mode"))] - HDR_HASH[last_ch.to_ascii_lowercase() as usize] - } as usize; - - if (4..=72).contains(&token_hash) { - let token_hash = token_hash - 4; - - if field.eq_ignore_ascii_case(HDR_NAMES[token_hash]) { - return (bytes_read, HeaderParserResult::Rfc(HDR_MAP[token_hash])); - } - } - } - return ( - bytes_read, - HeaderParserResult::Other(String::from_utf8_lossy(field)), - ); - } else { - (bytes_read, HeaderParserResult::Eof) - } } impl RfcHeader { @@ -210,95 +228,81 @@ impl From for u8 { } } -impl<'x> From> for HeaderName<'x> { - fn from(result: HeaderParserResult<'x>) -> Self { - match result { - HeaderParserResult::Rfc(header) => HeaderName::Rfc(header), - HeaderParserResult::Other(header) => HeaderName::Other(header), - _ => HeaderName::Other("".into()), - } - } -} - #[cfg(test)] mod tests { - use crate::{parsers::header::parse_header_name, RfcHeader}; - - use super::HeaderParserResult; + use crate::{parsers::MessageStream, HeaderName, RfcHeader}; #[test] fn header_name_parse() { let inputs = [ - ("From: ", HeaderParserResult::Rfc(RfcHeader::From)), - ("receiVED: ", HeaderParserResult::Rfc(RfcHeader::Received)), - (" subject : ", HeaderParserResult::Rfc(RfcHeader::Subject)), + ("From: ", HeaderName::Rfc(RfcHeader::From)), + ("receiVED: ", HeaderName::Rfc(RfcHeader::Received)), + (" subject : ", HeaderName::Rfc(RfcHeader::Subject)), ( "X-Custom-Field : ", - HeaderParserResult::Other("X-Custom-Field".into()), - ), - (" T : ", HeaderParserResult::Other("T".into())), - ( - "mal formed: ", - HeaderParserResult::Other("mal formed".into()), - ), - ( - "MIME-version : ", - HeaderParserResult::Rfc(RfcHeader::MimeVersion), + HeaderName::Other("X-Custom-Field".into()), ), + (" T : ", HeaderName::Other("T".into())), + ("mal formed: ", HeaderName::Other("mal formed".into())), + ("MIME-version : ", HeaderName::Rfc(RfcHeader::MimeVersion)), ]; - for input in inputs { - let str = input.0.to_string(); - let (_, result) = parse_header_name(str.as_bytes()); - assert_eq!(input.1, result, "Failed to parse '{:?}'", input.0); + for (input, expected_result) in inputs { + assert_eq!( + expected_result, + MessageStream::new(input.as_bytes()) + .parse_header_name() + .unwrap(), + "Failed to parse '{:?}'", + input + ); } } } -#[allow(clippy::type_complexity)] -static HDR_PARSER: &[( - bool, - for<'x, 'y> fn(&mut MessageStream<'x>) -> HeaderValue<'x>, -)] = &[ - (false, parse_unstructured), // Subject = 0, - (false, parse_address), // From = 1, - (false, parse_address), // To = 2, - (false, parse_address), // Cc = 3, - (false, parse_date), // Date = 4, - (false, parse_address), // Bcc = 5, - (false, parse_address), // ReplyTo = 6, - (false, parse_address), // Sender = 7, - (true, parse_unstructured), // Comments = 8, - (false, parse_id), // InReplyTo = 9, - (true, parse_comma_separared), // Keywords = 10, - (true, parse_raw), // Received = 11, - (false, parse_id), // MessageId = 12, - (true, parse_id), // References = 13, (RFC 5322 recommends One) - (false, parse_id), // ReturnPath = 14, - (false, parse_raw), // MimeVersion = 15, - (false, parse_unstructured), // ContentDescription = 16, - (false, parse_id), // ContentId = 17, - (false, parse_comma_separared), // ContentLanguage = 18 - (false, parse_unstructured), // ContentLocation = 19 - (false, parse_unstructured), // ContentTransferEncoding = 20, - (false, parse_content_type), // ContentType = 21, - (false, parse_content_type), // ContentDisposition = 22, - (true, parse_address), // ResentTo = 23, - (true, parse_address), // ResentFrom = 24, - (true, parse_address), // ResentBcc = 25, - (true, parse_address), // ResentCc = 26, - (true, parse_address), // ResentSender = 27, - (true, parse_date), // ResentDate = 28, - (true, parse_id), // ResentMessageId = 29, - (false, parse_address), // ListArchive = 30, - (false, parse_address), // ListHelp = 31, - (false, parse_address), // ListId = 32, - (false, parse_address), // ListOwner = 33, - (false, parse_address), // ListPost = 34, - (false, parse_address), // ListSubscribe = 35, - (false, parse_address), // ListUnsubscribe = 36, - (true, parse_raw), // Other = 37, -]; +/* +type ParserFnc<'x> = fn(&mut MessageStream<'x>) -> HeaderValue<'x>; + +static HDR_PARSER: &[(bool, for<'x> fn(&mut MessageStream<'x>) -> HeaderValue<'x>] = &[ + (false, MessageStream::parse_unstructured), // Subject = 0, + (false, MessageStream::parse_address), // From = 1, + (false, MessageStream::parse_address), // To = 2, + (false, MessageStream::parse_address), // Cc = 3, + (false, MessageStream::parse_date), // Date = 4, + (false, MessageStream::parse_address), // Bcc = 5, + (false, MessageStream::parse_address), // ReplyTo = 6, + (false, MessageStream::parse_address), // Sender = 7, + (true, MessageStream::parse_unstructured), // Comments = 8, + (false, MessageStream::parse_id), // InReplyTo = 9, + (true, MessageStream::parse_comma_separared), // Keywords = 10, + (true, MessageStream::parse_raw), // Received = 11, + (false, MessageStream::parse_id), // MessageId = 12, + (true, MessageStream::parse_id), // References = 13, (RFC 5322 recommends One) + (false, MessageStream::parse_id), // ReturnPath = 14, + (false, MessageStream::parse_raw), // MimeVersion = 15, + (false, MessageStream::parse_unstructured), // ContentDescription = 16, + (false, MessageStream::parse_id), // ContentId = 17, + (false, MessageStream::parse_comma_separared), // ContentLanguage = 18 + (false, MessageStream::parse_unstructured), // ContentLocation = 19 + (false, MessageStream::parse_unstructured), // ContentTransferEncoding = 20, + (false, MessageStream::parse_content_type), // ContentType = 21, + (false, MessageStream::parse_content_type), // ContentDisposition = 22, + (true, MessageStream::parse_address), // ResentTo = 23, + (true, MessageStream::parse_address), // ResentFrom = 24, + (true, MessageStream::parse_address), // ResentBcc = 25, + (true, MessageStream::parse_address), // ResentCc = 26, + (true, MessageStream::parse_address), // ResentSender = 27, + (true, MessageStream::parse_date), // ResentDate = 28, + (true, MessageStream::parse_id), // ResentMessageId = 29, + (false, MessageStream::parse_address), // ListArchive = 30, + (false, MessageStream::parse_address), // ListHelp = 31, + (false, MessageStream::parse_address), // ListId = 32, + (false, MessageStream::parse_address), // ListOwner = 33, + (false, MessageStream::parse_address), // ListPost = 34, + (false, MessageStream::parse_address), // ListSubscribe = 35, + (false, MessageStream::parse_address), // ListUnsubscribe = 36, + (true, MessageStream::parse_raw), // Other = 37, +];*/ static HDR_HASH: &[u8] = &[ 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, diff --git a/src/parsers/message.rs b/src/parsers/message.rs index 928eb59..8264b99 100644 --- a/src/parsers/message.rs +++ b/src/parsers/message.rs @@ -9,24 +9,15 @@ * except according to those terms. */ -use std::{borrow::Cow, iter::Peekable, slice::Iter}; +use std::borrow::Cow; use crate::{ - decoders::{ - base64::decode_base64_mime, charsets::map::get_charset_decoder, - quoted_printable::decode_quoted_printable_mime, DecodeFnc, - }, - parsers::mime::seek_next_part_offset, + decoders::{charsets::map::get_charset_decoder, DecodeFnc}, ContentType, Encoding, GetHeader, HeaderValue, Message, MessagePart, MessagePartId, PartType, RfcHeader, }; -use super::{ - header::parse_headers, - mime::{ - get_mime_part, seek_crlf, seek_next_part, seek_part_end, skip_crlf, skip_multipart_end, - }, -}; +use super::MessageStream; const MAX_NESTED_ENCODED: usize = 3; @@ -120,24 +111,6 @@ impl MessageParserState { } } -pub struct MessageStream<'x> { - pub data: &'x [u8], - //pub iter: Peekable>, - pub pos: usize, - //pub restore_pos: usize, -} - -impl<'x> MessageStream<'x> { - pub fn new(data: &'x [u8]) -> MessageStream<'x> { - MessageStream { - data, - //iter: data.iter().peekable(), - pos: 0, - //restore_pos: 0, - } - } -} - impl<'x> Message<'x> { fn new() -> Message<'x> { Message { @@ -172,10 +145,11 @@ impl<'x> Message<'x> { 'outer: loop { // Parse headers - state.offset_header = stream.pos; - if !parse_headers(&mut part_headers, &mut stream) { + state.offset_header = stream.offset(); + if !stream.parse_headers(&mut part_headers) { break; } + state.offset_body = stream.offset(); state.parts += 1; state.sub_part_ids.push(message.parts.len()); @@ -191,9 +165,7 @@ impl<'x> Message<'x> { if let Some(mime_boundary) = content_type.map_or_else(|| None, |f| f.get_attribute("boundary")) { - state.offset_body = seek_crlf(&stream, stream.pos); - - if seek_next_part(&mut stream, mime_boundary.as_bytes()) { + if stream.seek_next_part(mime_boundary.as_bytes()) { let part_id = message.parts.len(); let new_state = MessageParserState { in_alternative: state.in_alternative @@ -219,7 +191,7 @@ impl<'x> Message<'x> { }); state_stack.push((state, None)); state = new_state; - skip_crlf(&mut stream); + stream.skip_crlf(); continue; } else { mime_type = MimeType::TextOther; @@ -228,21 +200,21 @@ impl<'x> Message<'x> { } } - skip_crlf(&mut stream); - state.offset_body = stream.pos; - let (mut encoding, decode_fnc): (Encoding, DecodeFnc) = match part_headers .get_rfc(&RfcHeader::ContentTransferEncoding) { Some(HeaderValue::Text(encoding)) if encoding.eq_ignore_ascii_case("base64") => { - (Encoding::Base64, decode_base64_mime) + (Encoding::Base64, MessageStream::decode_base64_mime) } Some(HeaderValue::Text(encoding)) if encoding.eq_ignore_ascii_case("quoted-printable") => { - (Encoding::QuotedPrintable, decode_quoted_printable_mime) + ( + Encoding::QuotedPrintable, + MessageStream::decode_quoted_printable_mime, + ) } - _ => (Encoding::None, get_mime_part), + _ => (Encoding::None, MessageStream::get_mime_part), }; if mime_type == MimeType::Message && encoding == Encoding::None { @@ -284,7 +256,7 @@ impl<'x> Message<'x> { is_text = true; let (offset_end, boundary_found) = - seek_part_end(&mut stream, state.mime_boundary.as_deref()); + stream.seek_part_end(state.mime_boundary.as_deref()); state.offset_end = offset_end; bytes = stream.data[state.offset_body..state.offset_end].into(); @@ -432,7 +404,7 @@ impl<'x> Message<'x> { .mime_boundary .as_ref() .map(|b| { - let pos = stream.pos.saturating_sub(b.len() + 2); + let pos = stream.offset().saturating_sub(b.len() + 2); stream.data.get(pos - 2).map_or(pos - 1, |&ch| { if ch == b'\r' { pos - 2 @@ -441,7 +413,7 @@ impl<'x> Message<'x> { } }) }) - .unwrap_or(stream.pos); + .unwrap_or_else(|| stream.offset()); message.raw_message = raw_message.into(); //raw_message[state.offset_header..offset_end].as_ref().into(); @@ -461,7 +433,7 @@ impl<'x> Message<'x> { } } - if skip_multipart_end(&mut stream) { + if stream.is_multipart_end() { // End of MIME part reached if MimeType::MultipartAlernative == state.mime_type @@ -499,7 +471,7 @@ impl<'x> Message<'x> { if let Some(ref mime_boundary) = state.mime_boundary { // Ancestor has a MIME boundary, seek it. if let Some(offset) = - seek_next_part_offset(&mut stream, mime_boundary) + stream.seek_next_part_offset(mime_boundary) { part.offset_end = offset; continue 'inner; @@ -508,19 +480,18 @@ impl<'x> Message<'x> { } // This part has no boundary, update end offset - part.offset_end = seek_crlf(&stream, stream.pos); + part.offset_end = stream.offset(); } else { debug_assert!(false, "Invalid part ID, could not find multipart."); } break 'outer; } else { - skip_crlf(&mut stream); // Headers of next part expected next, break inner look. break 'inner; } } - } else if stream.pos >= stream.data.len() { + } else if stream.offset() >= stream.data.len() { break 'outer; } } @@ -528,18 +499,18 @@ impl<'x> Message<'x> { // Corrupted MIME message, try to recover whatever is possible. while let Some((prev_state, prev_message)) = state_stack.pop() { if let Some(mut prev_message) = prev_message { - message.raw_message = raw_message[state.offset_header..stream.pos].as_ref().into(); + message.raw_message = raw_message.into(); //raw_message[state.offset_header..stream.offset()].as_ref().into(); if let Some(part) = prev_message.parts.get_mut(state.part_id) { part.body = PartType::Message(message); - part.offset_end = stream.pos; + part.offset_end = stream.offset(); } else { debug_assert!(false, "Invalid part ID, could not find message."); } message = prev_message; } else if let Some(part) = message.parts.get_mut(state.part_id) { - part.offset_end = stream.pos; + part.offset_end = stream.offset(); part.body = PartType::Multipart(state.sub_part_ids); } else { debug_assert!(false, "This should not have happened."); @@ -588,12 +559,14 @@ mod tests { for file_name in fs::read_dir(&test_dir).unwrap() { let mut file_name = file_name.unwrap().path(); if file_name.extension().map_or(false, |e| e == "eml") { - let raw_message = fs::read(&file_name).unwrap(); + let raw_original = fs::read(&file_name).unwrap(); + tests_run += 1; + + // Test without CRs + let raw_message = strip_crlf(&raw_original); file_name.set_extension("json"); let expected_result = fs::read(&file_name).unwrap(); - tests_run += 1; - let message = Message::parse(&raw_message).unwrap(); let json_message = serde_json::to_string_pretty(&message).unwrap(); @@ -605,6 +578,23 @@ mod tests { file_name.display() ); } + + // Test with CRs + let raw_message = add_crlf(&raw_original); + file_name.set_extension("crlf.json"); + let expected_result = fs::read(&file_name).unwrap(); + + let message = Message::parse(&raw_message).unwrap(); + let json_message = serde_json::to_string_pretty(&message).unwrap(); + + if json_message.as_bytes() != expected_result { + file_name.set_extension("crlf.failed"); + fs::write(&file_name, json_message.as_bytes()).unwrap(); + panic!( + "Test failed, parsed message saved to {}", + file_name.display() + ); + } } } @@ -615,4 +605,29 @@ mod tests { ); } } + + fn add_crlf(bytes: &[u8]) -> Vec { + let mut result = Vec::with_capacity(bytes.len()); + let mut last_ch = 0; + for &ch in bytes { + if ch == b'\n' && last_ch != b'\r' { + result.push(b'\r'); + } + result.push(ch); + last_ch = ch; + } + + result + } + + fn strip_crlf(bytes: &[u8]) -> Vec { + let mut result = Vec::with_capacity(bytes.len()); + for &ch in bytes { + if !ch != b'\r' { + result.push(ch); + } + } + + result + } } diff --git a/src/parsers/mime.rs b/src/parsers/mime.rs index 701ac41..1749df4 100644 --- a/src/parsers/mime.rs +++ b/src/parsers/mime.rs @@ -11,186 +11,162 @@ use std::borrow::Cow; -use super::message::MessageStream; +use super::MessageStream; -pub fn seek_next_part(stream: &mut MessageStream, boundary: &[u8]) -> bool { - if !boundary.is_empty() { - let mut pos = stream.pos; +impl<'x> MessageStream<'x> { + pub fn seek_next_part(&mut self, boundary: &[u8]) -> bool { + if !boundary.is_empty() { + let mut last_ch = 0; - let mut iter = stream.data[stream.pos..].iter().peekable(); - while let Some(&ch) = iter.next() { - pos += 1; + self.checkpoint(); - if ch == b'-' - && matches!(iter.peek(), Some(b'-')) - && stream.data.get(pos + 1..pos + 1 + boundary.len()) == Some(boundary) - { - stream.pos = pos + boundary.len() + 1; - return true; - } - } - } - - false -} - -pub fn seek_next_part_offset(stream: &mut MessageStream, boundary: &[u8]) -> Option { - let mut pos = stream.pos; - let mut last_ch = b'\n'; - let mut iter = stream.data[stream.pos..].iter().peekable(); - let mut offset_pos = stream.pos; - - while let Some(&ch) = iter.next() { - pos += 1; - - if ch == b'\n' { - offset_pos = if last_ch == b'\r' { pos - 2 } else { pos - 1 }; - } else if ch == b'-' - && matches!(iter.peek(), Some(b'-')) - && stream.data.get(pos + 1..pos + 1 + boundary.len()) == Some(boundary) - { - stream.pos = pos + boundary.len() + 1; - return offset_pos.into(); - } - - last_ch = ch; - } - - None -} - -pub fn get_mime_part<'x>( - stream: &mut MessageStream<'x>, - boundary: &[u8], -) -> (usize, Cow<'x, [u8]>) { - let mut last_ch = b'\n'; - let start_pos = stream.pos; - let mut end_pos = stream.pos; - let mut pos = stream.pos; - - let mut iter = stream.data[stream.pos..].iter().peekable(); - while let Some(&ch) = iter.next() { - pos += 1; - - if ch == b'\n' { - end_pos = if last_ch == b'\r' { pos - 2 } else { pos - 1 }; - } else if ch == b'-' - && !boundary.is_empty() - && matches!(iter.peek(), Some(b'-')) - && stream.data.get(pos + 1..pos + 1 + boundary.len()) == Some(boundary) - && matches!( - stream.data.get(pos + 1 + boundary.len()..), - Some([b'\n' | b'\r' | b' ' | b'\t', ..]) | Some([b'-', b'-', ..]) | Some([]) | None - ) - { - stream.pos = pos + boundary.len() + 1; - if last_ch != b'\n' { - end_pos = pos - 1; - } - return (end_pos, stream.data[start_pos..end_pos].into()); - } - - last_ch = ch; - } - - ( - if boundary.is_empty() { - stream.pos = pos; - stream.pos - } else { - usize::MAX - }, - stream.data[start_pos..pos].into(), - ) -} - -pub fn seek_part_end<'x>(stream: &mut MessageStream<'x>, boundary: Option<&[u8]>) -> (usize, bool) { - let mut last_ch = b'\n'; - let mut end_pos = stream.pos; - - if let Some(boundary) = boundary { - let mut iter = stream.data[stream.pos..].iter().peekable(); - while let Some(&ch) = iter.next() { - stream.pos += 1; - - if ch == b'\n' { - end_pos = if last_ch == b'\r' { - stream.pos - 2 - } else { - stream.pos - 1 - }; - } else if ch == b'-' - && matches!(iter.peek(), Some(b'-')) - && stream - .data - .get(stream.pos + 1..stream.pos + 1 + boundary.len()) - == Some(boundary) - && matches!( - stream.data.get(stream.pos + 1 + boundary.len()..), - Some([b'\n' | b'\r' | b' ' | b'\t', ..]) - | Some([b'-', b'-', ..]) - | Some([]) - | None - ) - { - if last_ch != b'\n' { - end_pos = stream.pos - 1; + while let Some(&ch) = self.next() { + if ch == b'-' && last_ch == b'-' && self.try_skip(boundary) { + return true; } - stream.pos += boundary.len() + 1; - return (end_pos, true); + + last_ch = ch; + } + + self.restore(); + } + + false + } + + pub fn seek_next_part_offset(&mut self, boundary: &[u8]) -> Option { + let mut last_ch = b'\n'; + let mut offset_pos = self.offset(); + self.checkpoint(); + + while let Some(&ch) = self.next() { + if ch == b'\n' { + offset_pos = if last_ch == b'\r' { + self.offset() - 2 + } else { + self.offset() - 1 + }; + } else if ch == b'-' && last_ch == b'-' && self.try_skip(boundary) { + return offset_pos.into(); } last_ch = ch; } - (stream.pos, false) - } else { - stream.pos = stream.data.len(); - (stream.pos, true) - } -} + self.restore(); -pub fn skip_multipart_end(stream: &mut MessageStream) -> bool { - match stream.data.get(stream.pos..stream.pos + 2) { - Some(b"--") => { - if let Some(byte) = stream.data.get(stream.pos + 2) { - if !(*byte).is_ascii_whitespace() { - return false; + None + } + + pub fn get_mime_part(&mut self, boundary: &[u8]) -> (usize, Cow<'x, [u8]>) { + let mut last_ch = b'\n'; + let mut before_last_ch = 0; + let start_pos = self.offset(); + let mut end_pos = self.offset(); + + self.checkpoint(); + + while let Some(&ch) = self.next() { + if ch == b'\n' { + end_pos = if last_ch == b'\r' { + self.offset() - 2 + } else { + self.offset() - 1 + }; + } else if ch == b'-' + && !boundary.is_empty() + && last_ch == b'-' + && self.try_skip(boundary) + { + if before_last_ch != b'\n' { + end_pos = self.offset() - boundary.len() - 2; } + return (end_pos, self.get_bytes(start_pos..end_pos).into()); } - stream.pos += 2; - true - } - _ => false, - } -} -#[inline(always)] -pub fn skip_crlf(stream: &mut MessageStream) { - for ch in &stream.data[stream.pos..] { - match ch { - b'\r' | b' ' | b'\t' => stream.pos += 1, - b'\n' => { - stream.pos += 1; - break; - } - _ => break, + before_last_ch = last_ch; + last_ch = ch; } - } -} -#[inline(always)] -pub fn seek_crlf(stream: &MessageStream, mut start_pos: usize) -> usize { - for ch in &stream.data[start_pos..] { - match ch { - b'\r' | b' ' | b'\t' => start_pos += 1, - b'\n' => { - start_pos += 1; - break; + ( + if boundary.is_empty() { + self.offset() + } else { + self.restore(); + usize::MAX + }, + self.get_bytes(start_pos..self.len()).into(), + ) + } + + pub fn seek_part_end(&mut self, boundary: Option<&[u8]>) -> (usize, bool) { + let mut last_ch = b'\n'; + let mut before_last_ch = 0; + let mut end_pos = self.offset(); + + if let Some(boundary) = boundary { + while let Some(&ch) = self.next() { + if ch == b'\n' { + end_pos = if last_ch == b'\r' { + self.offset() - 2 + } else { + self.offset() - 1 + }; + } else if ch == b'-' && last_ch == b'-' && self.try_skip(boundary) { + if before_last_ch != b'\n' { + end_pos = self.offset() - boundary.len() - 2; + } + return (end_pos, true); + } + + before_last_ch = last_ch; + last_ch = ch; } - _ => break, + + (self.offset(), false) + } else { + self.seek_end(); + (self.offset(), true) } } - start_pos + pub fn is_multipart_end(&mut self) -> bool { + self.checkpoint(); + + match (self.next(), self.peek()) { + (Some(&a), Some(&&b)) if a == b'\r' && b == b'\n' => { + self.next(); + false + } + (Some(&a), Some(&&b)) if a == b'-' && b == b'-' => { + self.next(); + true + } + (Some(&a), _) if a == b'\n' => false, + (Some(&a), _) if a.is_ascii_whitespace() => { + self.skip_crlf(); + false + } + _ => { + self.restore(); + false + } + } + } + + #[inline(always)] + pub fn skip_crlf(&mut self) { + while let Some(ch) = self.peek() { + match ch { + b'\r' | b' ' | b'\t' => { + self.next(); + } + b'\n' => { + self.next(); + break; + } + _ => break, + } + } + } } diff --git a/src/parsers/mod.rs b/src/parsers/mod.rs index 8047ce7..aebeb0c 100644 --- a/src/parsers/mod.rs +++ b/src/parsers/mod.rs @@ -9,7 +9,7 @@ * except according to those terms. */ -use std::{iter::Peekable, slice::Iter}; +use std::{iter::Peekable, ops::Range, slice::Iter}; pub mod fields; pub mod header; @@ -17,7 +17,7 @@ pub mod message; pub mod mime; pub mod preview; -/*pub struct MessageStream<'x> { +pub struct MessageStream<'x> { data: &'x [u8], iter: Peekable>, pos: usize, @@ -41,17 +41,17 @@ impl<'x> MessageStream<'x> { #[inline(always)] pub fn offset(&self) -> usize { - self.pos + std::cmp::min(self.pos, self.data.len()) } #[inline(always)] pub fn remaining(&self) -> usize { - self.data.len() - self.pos + self.data.len() - self.offset() } #[inline(always)] pub fn checkpoint(&mut self) { - self.restore_pos = self.pos; + self.restore_pos = self.offset(); } #[inline(always)] @@ -65,6 +65,85 @@ impl<'x> MessageStream<'x> { pub fn reset(&mut self) { self.restore_pos = 0; } + + #[inline(always)] + pub fn peek_bytes(&self, len: usize) -> Option<&[u8]> { + let pos = self.offset(); + self.data.get(pos..pos + len) + } + + #[inline(always)] + pub fn peek_char(&mut self, ch: u8) -> bool { + matches!(self.peek(), Some(&&ch_) if ch_ == ch) + } + + #[inline(always)] + pub fn skip_bytes(&mut self, len: usize) { + self.pos += len; + self.iter = self.data[self.pos..].iter().peekable(); + } + + #[inline(always)] + pub fn try_skip(&mut self, bytes: &[u8]) -> bool { + if self.peek_bytes(bytes.len()) == Some(bytes) { + self.skip_bytes(bytes.len()); + true + } else { + false + } + } + + #[inline(always)] + pub fn try_skip_char(&mut self, ch: u8) -> bool { + if self.peek_char(ch) { + self.next(); + true + } else { + false + } + } + + #[inline(always)] + pub fn get_bytes(&self, range: Range) -> &'x [u8] { + &self.data[range] + } + + #[inline(always)] + pub fn seek_end(&mut self) { + self.pos = self.data.len(); + self.iter = [][..].iter().peekable(); + } + + #[inline(always)] + pub fn next_is_space(&mut self) -> bool { + matches!(self.next(), Some(b' ' | b'\t')) + } + + #[inline(always)] + pub fn peek_next_is_space(&mut self) -> bool { + matches!(self.peek(), Some(b' ' | b'\t')) + } + + #[inline(always)] + pub fn try_next_is_space(&mut self) -> bool { + if self.peek_next_is_space() { + self.next(); + true + } else { + false + } + } + + #[allow(clippy::len_without_is_empty)] + #[inline(always)] + pub fn len(&self) -> usize { + self.data.len() + } + + #[inline(always)] + pub fn is_eof(&mut self) -> bool { + self.iter.peek().is_none() + } } impl<'x> Iterator for MessageStream<'x> { @@ -76,4 +155,3 @@ impl<'x> Iterator for MessageStream<'x> { self.iter.next() } } -*/ diff --git a/tests/legacy/000.crlf.json b/tests/legacy/000.crlf.json new file mode 100644 index 0000000..55f6158 --- /dev/null +++ b/tests/legacy/000.crlf.json @@ -0,0 +1,1662 @@ +{ + "html_body": [], + "text_body": [], + "attachments": [ + 0 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "jblow@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 76 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Microsoft Outlook 00" + }, + "offset_field": 76, + "offset_start": 84, + "offset_end": 125 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 35, + "second": 5, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 125, + "offset_start": 130, + "offset_end": 164 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGKEKECHAA.doug@example.com" + }, + "offset_field": 164, + "offset_start": 175, + "offset_end": 225 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 225, + "offset_start": 238, + "offset_end": 244 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "redball.png" + ] + ] + } + }, + "offset_field": 244, + "offset_start": 257, + "offset_end": 291 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 291, + "offset_start": 317, + "offset_end": 326 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "redball.png" + ] + ] + } + }, + "offset_field": 326, + "offset_start": 346, + "offset_end": 385 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 385, + "offset_start": 396, + "offset_end": 409 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 409, + "offset_start": 427, + "offset_end": 436 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 436, + "offset_start": 445, + "offset_end": 498 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 498, + "offset_start": 509, + "offset_end": 518 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 518, + "offset_start": 528, + "offset_end": 576 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 0, + "offset_body": 578, + "offset_end": 2570 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/001.crlf.json b/tests/legacy/001.crlf.json new file mode 100644 index 0000000..a8efe06 --- /dev/null +++ b/tests/legacy/001.crlf.json @@ -0,0 +1,196 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "AddressList": [ + { + "name": "Joe Blow", + "address": "jblow@example.com" + }, + { + "name": "Jürgen Schmürgen", + "address": "schmuergen@example.com" + } + ] + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 149 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche (Microsoft Outlook 00)" + }, + "offset_field": 149, + "offset_start": 157, + "offset_end": 228 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 18, + "second": 39, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 228, + "offset_start": 233, + "offset_end": 267 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGMEKCCHAA.doug@example.com" + }, + "offset_field": 267, + "offset_start": 278, + "offset_end": 328 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 328, + "offset_start": 341, + "offset_end": 347 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "utf-7" + ] + ] + } + }, + "offset_field": 347, + "offset_start": 360, + "offset_end": 392 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 392, + "offset_start": 418, + "offset_end": 437 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 437, + "offset_start": 448, + "offset_end": 461 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 461, + "offset_start": 479, + "offset_end": 488 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 488, + "offset_start": 497, + "offset_end": 550 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 550, + "offset_start": 561, + "offset_end": 570 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 570, + "offset_start": 580, + "offset_end": 628 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n" + }, + "offset_header": 0, + "offset_body": 630, + "offset_end": 1525 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/002.crlf.json b/tests/legacy/002.crlf.json new file mode 100644 index 0000000..eda3387 --- /dev/null +++ b/tests/legacy/002.crlf.json @@ -0,0 +1,168 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519003052.00a89c40@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 2 (High)\r\n" + }, + "offset_field": 170, + "offset_start": 181, + "offset_end": 192 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 0, + "minute": 31, + "second": 0, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 192, + "offset_start": 197, + "offset_end": 231 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 231, + "offset_start": 234, + "offset_end": 290 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 290, + "offset_start": 295, + "offset_end": 332 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 332, + "offset_start": 340, + "offset_end": 387 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 387, + "offset_start": 400, + "offset_end": 406 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 406, + "offset_start": 419, + "offset_end": 453 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 453, + "offset_start": 479, + "offset_end": 498 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\nDie Hasen und die\nFrösche
\n
\n
Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben."
\n
\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.
\n
\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir."
\n
\n
\n\n" + }, + "offset_header": 0, + "offset_body": 500, + "offset_end": 1499 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/003.crlf.json b/tests/legacy/003.crlf.json new file mode 100644 index 0000000..117f60c --- /dev/null +++ b/tests/legacy/003.crlf.json @@ -0,0 +1,244 @@ +{ + "html_body": [ + 2 + ], + "text_body": [ + 1 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519002557.00a88870@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 2 (High)\r\n" + }, + "offset_field": 170, + "offset_start": 181, + "offset_end": 192 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 0, + "minute": 29, + "second": 55, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 192, + "offset_start": 197, + "offset_end": 231 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 231, + "offset_start": 234, + "offset_end": 290 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 290, + "offset_start": 295, + "offset_end": 332 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 332, + "offset_start": 340, + "offset_end": 387 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 387, + "offset_start": 400, + "offset_end": 406 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "=====================_714967308==_.ALT" + ] + ] + } + }, + "offset_field": 406, + "offset_start": 419, + "offset_end": 496 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 498, + "offset_end": 2627 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 540, + "offset_start": 553, + "offset_end": 588 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 588, + "offset_start": 614, + "offset_end": 633 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n" + }, + "offset_header": 540, + "offset_body": 635, + "offset_end": 1444 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 1488, + "offset_start": 1501, + "offset_end": 1535 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 1535, + "offset_start": 1561, + "offset_end": 1580 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\nDie Hasen und die\nFrösche
\n
\n
Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben."
\n
\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.
\n
\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir."
\n
\n
\n" + }, + "offset_header": 1488, + "offset_body": 1582, + "offset_end": 2579 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/004.crlf.json b/tests/legacy/004.crlf.json new file mode 100644 index 0000000..f476ea3 --- /dev/null +++ b/tests/legacy/004.crlf.json @@ -0,0 +1,157 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519011207.00a8cd70@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 5 (Lowest)\r\n" + }, + "offset_field": 170, + "offset_start": 181, + "offset_end": 194 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 1, + "minute": 13, + "second": 19, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 194, + "offset_start": 199, + "offset_end": 233 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "blow@example.com" + } + }, + "offset_field": 233, + "offset_start": 236, + "offset_end": 266 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 266, + "offset_start": 271, + "offset_end": 308 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "The Hare and the Tortoise" + }, + "offset_field": 308, + "offset_start": 316, + "offset_end": 344 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 344, + "offset_start": 357, + "offset_end": 363 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 363, + "offset_start": 376, + "offset_end": 409 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n\r\n" + }, + "offset_header": 0, + "offset_body": 411, + "offset_end": 1177 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/005.crlf.json b/tests/legacy/005.crlf.json new file mode 100644 index 0000000..7fae915 --- /dev/null +++ b/tests/legacy/005.crlf.json @@ -0,0 +1,190 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 96 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche (Microsoft Outlook 00)" + }, + "offset_field": 96, + "offset_start": 104, + "offset_end": 175 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 20, + "second": 24, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 175, + "offset_start": 180, + "offset_end": 214 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGCEKDCHAA.doug@example.com" + }, + "offset_field": 214, + "offset_start": 225, + "offset_end": 275 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 275, + "offset_start": 288, + "offset_end": 294 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "utf-7" + ] + ] + } + }, + "offset_field": 294, + "offset_start": 307, + "offset_end": 339 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 339, + "offset_start": 365, + "offset_end": 384 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 384, + "offset_start": 395, + "offset_end": 408 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 408, + "offset_start": 426, + "offset_end": 435 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 435, + "offset_start": 444, + "offset_end": 497 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 497, + "offset_start": 508, + "offset_end": 517 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 517, + "offset_start": 527, + "offset_end": 575 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n" + }, + "offset_header": 0, + "offset_body": 577, + "offset_end": 1470 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/006.crlf.json b/tests/legacy/006.crlf.json new file mode 100644 index 0000000..7843719 --- /dev/null +++ b/tests/legacy/006.crlf.json @@ -0,0 +1,3085 @@ +{ + "html_body": [], + "text_body": [], + "attachments": [ + 1, + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "jblow@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 76 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Microsoft Outlook 00" + }, + "offset_field": 76, + "offset_start": 84, + "offset_end": 125 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 36, + "second": 13, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 125, + "offset_start": 130, + "offset_end": 164 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGOEKECHAA.doug@example.com" + }, + "offset_field": 164, + "offset_start": 175, + "offset_end": 225 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 225, + "offset_start": 238, + "offset_end": 244 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "----=_NextPart_000_0004_01BFC037.28F2FA90" + ] + ] + } + }, + "offset_field": 244, + "offset_start": 257, + "offset_end": 331 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 331, + "offset_start": 342, + "offset_end": 355 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 355, + "offset_start": 373, + "offset_end": 382 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 382, + "offset_start": 391, + "offset_end": 444 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 444, + "offset_start": 455, + "offset_end": 464 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 464, + "offset_start": 474, + "offset_end": 522 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 524, + "offset_end": 4809 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 617, + "offset_start": 630, + "offset_end": 665 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 665, + "offset_start": 691, + "offset_end": 700 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 700, + "offset_start": 720, + "offset_end": 760 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 617, + "offset_body": 762, + "offset_end": 2578 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "redball.png" + ] + ] + } + }, + "offset_field": 2625, + "offset_start": 2638, + "offset_end": 2672 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 2672, + "offset_start": 2698, + "offset_end": 2707 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "redball.png" + ] + ] + } + }, + "offset_field": 2707, + "offset_start": 2727, + "offset_end": 2766 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 2625, + "offset_body": 2768, + "offset_end": 4760 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/007.crlf.json b/tests/legacy/007.crlf.json new file mode 100644 index 0000000..c052ef4 --- /dev/null +++ b/tests/legacy/007.crlf.json @@ -0,0 +1,190 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Jürgen Schmürgen", + "address": "schmuergen@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 112 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche (Microsoft Outlook 00)" + }, + "offset_field": 112, + "offset_start": 120, + "offset_end": 194 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 15, + "second": 35, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 194, + "offset_start": 199, + "offset_end": 233 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGIEKCCHAA.doug@example.com" + }, + "offset_field": 233, + "offset_start": 244, + "offset_end": 294 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 294, + "offset_start": 307, + "offset_end": 313 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 313, + "offset_start": 326, + "offset_end": 363 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 363, + "offset_start": 389, + "offset_end": 408 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 408, + "offset_start": 419, + "offset_end": 432 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 432, + "offset_start": 450, + "offset_end": 459 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 459, + "offset_start": 468, + "offset_end": 521 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 521, + "offset_start": 532, + "offset_end": 541 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 541, + "offset_start": 551, + "offset_end": 599 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n" + }, + "offset_header": 0, + "offset_body": 601, + "offset_end": 1410 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/008.crlf.json b/tests/legacy/008.crlf.json new file mode 100644 index 0000000..e85a3c6 --- /dev/null +++ b/tests/legacy/008.crlf.json @@ -0,0 +1,4495 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2, + 3, + 4 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 99 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Microsoft Outlook 00" + }, + "offset_field": 99, + "offset_start": 107, + "offset_end": 148 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 32, + "second": 47, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 148, + "offset_start": 153, + "offset_end": 187 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGGEKECHAA.doug@example.com" + }, + "offset_field": 187, + "offset_start": 198, + "offset_end": 248 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 248, + "offset_start": 261, + "offset_end": 267 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "----=_NextPart_000_0002_01BFC036.AE309650" + ] + ] + } + }, + "offset_field": 267, + "offset_start": 280, + "offset_end": 354 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 354, + "offset_start": 365, + "offset_end": 378 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 378, + "offset_start": 396, + "offset_end": 405 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 405, + "offset_start": 414, + "offset_end": 467 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 467, + "offset_start": 478, + "offset_end": 487 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 487, + "offset_start": 497, + "offset_end": 545 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3, + 4 + ] + }, + "offset_header": 0, + "offset_body": 547, + "offset_end": 7747 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 640, + "offset_start": 653, + "offset_end": 690 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 690, + "offset_start": 716, + "offset_end": 735 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n" + }, + "offset_header": 640, + "offset_body": 737, + "offset_end": 1536 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 1583, + "offset_start": 1596, + "offset_end": 1631 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 1631, + "offset_start": 1657, + "offset_end": 1666 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 1666, + "offset_start": 1686, + "offset_end": 1726 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 1583, + "offset_body": 1728, + "offset_end": 3544 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "greenball.png" + ] + ] + } + }, + "offset_field": 3591, + "offset_start": 3604, + "offset_end": 3640 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 3640, + "offset_start": 3666, + "offset_end": 3675 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "greenball.png" + ] + ] + } + }, + "offset_field": 3675, + "offset_start": 3695, + "offset_end": 3736 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 33, + 0, + 0, + 8, + 0, + 0, + 49, + 0, + 0, + 66, + 0, + 0, + 82, + 0, + 0, + 90, + 0, + 0, + 74, + 0, + 8, + 99, + 0, + 8, + 115, + 0, + 8, + 123, + 0, + 16, + 140, + 0, + 8, + 107, + 0, + 0, + 57, + 0, + 0, + 99, + 0, + 16, + 148, + 0, + 16, + 156, + 0, + 33, + 165, + 0, + 16, + 165, + 0, + 33, + 173, + 0, + 66, + 189, + 24, + 99, + 198, + 49, + 99, + 198, + 57, + 82, + 198, + 33, + 41, + 206, + 0, + 24, + 189, + 0, + 16, + 173, + 0, + 24, + 173, + 0, + 33, + 189, + 0, + 148, + 214, + 99, + 173, + 214, + 123, + 132, + 214, + 82, + 74, + 222, + 24, + 33, + 214, + 0, + 24, + 198, + 0, + 24, + 181, + 0, + 0, + 41, + 0, + 66, + 206, + 16, + 206, + 231, + 148, + 222, + 231, + 173, + 198, + 231, + 148, + 148, + 231, + 99, + 82, + 231, + 33, + 33, + 222, + 0, + 24, + 206, + 0, + 82, + 222, + 33, + 156, + 231, + 107, + 214, + 239, + 156, + 189, + 239, + 140, + 132, + 239, + 82, + 66, + 239, + 16, + 173, + 239, + 123, + 165, + 222, + 115, + 90, + 239, + 41, + 33, + 231, + 0, + 24, + 214, + 0, + 49, + 231, + 0, + 82, + 239, + 33, + 107, + 239, + 57, + 74, + 239, + 24, + 41, + 231, + 0, + 41, + 239, + 0, + 49, + 239, + 0, + 8, + 132, + 0, + 16, + 181, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 41, + 213, + 249, + 217, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 109, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 194, + 32, + 20, + 7, + 112, + 15, + 108, + 200, + 128, + 193, + 4, + 215, + 227, + 92, + 169, + 219, + 40, + 43, + 233, + 185, + 180, + 44, + 179, + 239, + 255, + 153, + 136, + 185, + 135, + 179, + 44, + 239, + 171, + 157, + 243, + 59, + 247, + 50, + 248, + 223, + 94, + 175, + 45, + 91, + 85, + 239, + 79, + 89, + 0, + 61, + 207, + 131, + 16, + 248, + 127, + 24, + 162, + 62, + 198, + 1, + 38, + 125, + 228, + 129, + 223, + 104, + 17, + 166, + 44, + 228, + 156, + 135, + 34, + 32, + 200, + 235, + 182, + 218, + 104, + 16, + 74, + 53, + 28, + 14, + 227, + 88, + 114, + 129, + 163, + 46, + 34, + 202, + 213, + 193, + 225, + 209, + 241, + 201, + 105, + 50, + 138, + 57, + 195, + 8, + 182, + 6, + 49, + 79, + 207, + 78, + 206, + 199, + 227, + 201, + 52, + 203, + 11, + 197, + 5, + 209, + 205, + 153, + 54, + 98, + 170, + 184, + 152, + 92, + 206, + 174, + 174, + 111, + 230, + 38, + 73, + 85, + 24, + 68, + 94, + 125, + 25, + 224, + 218, + 178, + 219, + 187, + 251, + 217, + 195, + 227, + 83, + 102, + 146, + 34, + 118, + 141, + 205, + 137, + 222, + 64, + 22, + 103, + 211, + 235, + 231, + 151, + 199, + 215, + 197, + 210, + 153, + 27, + 138, + 81, + 53, + 212, + 106, + 161, + 242, + 236, + 237, + 125, + 181, + 250, + 248, + 52, + 89, + 94, + 255, + 13, + 216, + 14, + 181, + 145, + 80, + 137, + 89, + 172, + 191, + 214, + 243, + 165, + 201, + 147, + 34, + 85, + 27, + 209, + 26, + 18, + 50, + 49, + 217, + 124, + 153, + 153, + 146, + 70, + 138, + 135, + 148, + 104, + 191, + 182, + 1, + 143, + 19, + 99, + 202, + 38, + 71, + 169, + 228, + 44, + 168, + 110, + 239, + 76, + 227, + 80, + 165, + 73, + 94, + 202, + 119, + 170, + 228, + 182, + 13, + 84, + 137, + 88, + 216, + 119, + 207, + 50, + 74, + 11, + 39, + 177, + 35, + 70, + 113, + 4, + 253, + 218, + 124, + 77, + 4, + 151, + 42, + 142, + 149, + 146, + 114, + 195, + 202, + 247, + 4, + 77, + 146, + 22, + 34, + 66, + 203, + 16, + 56, + 223, + 132, + 130, + 146, + 14, + 185, + 70, + 23, + 94, + 64, + 25, + 99, + 66, + 208, + 160, + 223, + 210, + 214, + 172, + 15, + 116, + 68, + 48, + 198, + 212, + 69, + 171, + 97, + 67, + 182, + 222, + 19, + 0, + 53, + 66, + 145, + 70, + 94, + 181, + 19, + 157, + 189, + 113, + 31, + 190, + 15, + 97, + 185, + 44, + 173, + 52, + 217, + 218, + 255, + 170, + 183, + 31, + 187, + 219, + 180, + 87, + 118, + 241, + 159, + 245, + 221, + 133, + 31, + 205, + 97, + 231, + 141, + 210, + 8, + 44, + 44, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 3591, + "offset_body": 3738, + "offset_end": 5516 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "redball.png" + ] + ] + } + }, + "offset_field": 5563, + "offset_start": 5576, + "offset_end": 5610 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 5610, + "offset_start": 5636, + "offset_end": 5645 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "redball.png" + ] + ] + } + }, + "offset_field": 5645, + "offset_start": 5665, + "offset_end": 5704 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 5563, + "offset_body": 5706, + "offset_end": 7698 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/009.crlf.json b/tests/legacy/009.crlf.json new file mode 100644 index 0000000..dc93790 --- /dev/null +++ b/tests/legacy/009.crlf.json @@ -0,0 +1,183 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519010441.00a8d140@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "Disposition-Notification-To" + }, + "value": { + "Text": " \r\n" + }, + "offset_field": 113, + "offset_start": 141, + "offset_end": 166 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 166, + "offset_start": 175, + "offset_end": 223 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 1 (Highest)\r\n" + }, + "offset_field": 223, + "offset_start": 234, + "offset_end": 248 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 1, + "minute": 6, + "second": 18, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 248, + "offset_start": 253, + "offset_end": 287 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Jürgen Schmürgen", + "address": "jschmuergen@example.com" + } + }, + "offset_field": 287, + "offset_start": 290, + "offset_end": 373 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 373, + "offset_start": 378, + "offset_end": 415 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 415, + "offset_start": 423, + "offset_end": 468 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 468, + "offset_start": 481, + "offset_end": 487 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ], + [ + "format", + "flowed" + ] + ] + } + }, + "offset_field": 487, + "offset_start": 500, + "offset_end": 550 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 550, + "offset_start": 576, + "offset_end": 595 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein \nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, \nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der \nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; \nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte \neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste \nuntertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein \nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, \nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n" + }, + "offset_header": 0, + "offset_body": 597, + "offset_end": 1422 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/010.crlf.json b/tests/legacy/010.crlf.json new file mode 100644 index 0000000..ff4be60 --- /dev/null +++ b/tests/legacy/010.crlf.json @@ -0,0 +1,168 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519010842.00a8c7f0@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 1 (Highest)\r\n" + }, + "offset_field": 170, + "offset_start": 181, + "offset_end": 195 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 1, + "minute": 10, + "second": 27, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 195, + "offset_start": 200, + "offset_end": 234 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz M�ller", + "address": "mueller@example.com" + } + }, + "offset_field": 234, + "offset_start": 237, + "offset_end": 274 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 274, + "offset_start": 279, + "offset_end": 316 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Fr�sche" + }, + "offset_field": 316, + "offset_start": 324, + "offset_end": 352 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 352, + "offset_start": 365, + "offset_end": 371 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 371, + "offset_start": 384, + "offset_end": 419 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "8bit" + }, + "offset_field": 419, + "offset_start": 445, + "offset_end": 452 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n\r\n\r\n" + }, + "offset_header": 0, + "offset_body": 454, + "offset_end": 1203 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/011.crlf.json b/tests/legacy/011.crlf.json new file mode 100644 index 0000000..8d71554 --- /dev/null +++ b/tests/legacy/011.crlf.json @@ -0,0 +1,157 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519001217.00a85b60@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 0, + "minute": 17, + "second": 39, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 170, + "offset_start": 175, + "offset_end": 209 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Jürgen Schmürgen", + "address": "jschmuergen@example.com" + } + }, + "offset_field": 209, + "offset_start": 212, + "offset_end": 299 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 299, + "offset_start": 304, + "offset_end": 341 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 341, + "offset_start": 349, + "offset_end": 396 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 396, + "offset_start": 409, + "offset_end": 415 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 415, + "offset_start": 428, + "offset_end": 463 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 463, + "offset_start": 489, + "offset_end": 508 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n" + }, + "offset_header": 0, + "offset_body": 510, + "offset_end": 1321 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/012.crlf.json b/tests/legacy/012.crlf.json new file mode 100644 index 0000000..ae0f0b4 --- /dev/null +++ b/tests/legacy/012.crlf.json @@ -0,0 +1,190 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 101 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche (Microsoft Outlook 00)" + }, + "offset_field": 101, + "offset_start": 109, + "offset_end": 185 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 30, + "second": 20, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 185, + "offset_start": 190, + "offset_end": 224 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGCEKECHAA.doug@example.com" + }, + "offset_field": 224, + "offset_start": 235, + "offset_end": 285 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 285, + "offset_start": 298, + "offset_end": 304 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "Windows-1252" + ] + ] + } + }, + "offset_field": 304, + "offset_start": 317, + "offset_end": 356 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 356, + "offset_start": 382, + "offset_end": 401 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 401, + "offset_start": 412, + "offset_end": 425 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 425, + "offset_start": 443, + "offset_end": 452 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 452, + "offset_start": 461, + "offset_end": 514 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 514, + "offset_start": 525, + "offset_end": 534 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 534, + "offset_start": 544, + "offset_end": 592 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n" + }, + "offset_header": 0, + "offset_body": 594, + "offset_end": 1401 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/013.crlf.json b/tests/legacy/013.crlf.json new file mode 100644 index 0000000..2cd865b --- /dev/null +++ b/tests/legacy/013.crlf.json @@ -0,0 +1,190 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Jürgen Schmürgen", + "address": "schmuergen@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 112 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche (Microsoft Outlook 00)" + }, + "offset_field": 112, + "offset_start": 120, + "offset_end": 194 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 13, + "second": 51, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 194, + "offset_start": 199, + "offset_end": 233 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGEEKCCHAA.doug@example.com" + }, + "offset_field": 233, + "offset_start": 244, + "offset_end": 294 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 294, + "offset_start": 307, + "offset_end": 313 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 313, + "offset_start": 326, + "offset_end": 363 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "8bit" + }, + "offset_field": 363, + "offset_start": 389, + "offset_end": 396 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 396, + "offset_start": 407, + "offset_end": 420 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 420, + "offset_start": 438, + "offset_end": 447 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 447, + "offset_start": 456, + "offset_end": 509 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 509, + "offset_start": 520, + "offset_end": 529 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 529, + "offset_start": 539, + "offset_end": 587 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n" + }, + "offset_header": 0, + "offset_body": 589, + "offset_end": 1341 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/014.crlf.json b/tests/legacy/014.crlf.json new file mode 100644 index 0000000..0504121 --- /dev/null +++ b/tests/legacy/014.crlf.json @@ -0,0 +1,266 @@ +{ + "html_body": [ + 2 + ], + "text_body": [ + 1 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "jblow@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 76 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Microsoft Outlook 00" + }, + "offset_field": 76, + "offset_start": 84, + "offset_end": 125 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 38, + "second": 28, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 125, + "offset_start": 130, + "offset_end": 164 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGCEKFCHAA.doug@example.com" + }, + "offset_field": 164, + "offset_start": 175, + "offset_end": 225 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 225, + "offset_start": 238, + "offset_end": 244 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "----=_NextPart_000_0005_01BFC037.799BEF60" + ] + ] + } + }, + "offset_field": 244, + "offset_start": 257, + "offset_end": 337 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 337, + "offset_start": 348, + "offset_end": 361 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 361, + "offset_start": 379, + "offset_end": 388 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 388, + "offset_start": 397, + "offset_end": 450 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 450, + "offset_start": 461, + "offset_end": 470 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 470, + "offset_start": 480, + "offset_end": 528 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 530, + "offset_end": 2903 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 623, + "offset_start": 636, + "offset_end": 673 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 673, + "offset_start": 699, + "offset_end": 718 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n" + }, + "offset_header": 623, + "offset_body": 720, + "offset_end": 1521 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 1568, + "offset_start": 1581, + "offset_end": 1617 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 1617, + "offset_start": 1643, + "offset_end": 1662 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\n\n\n\n\n

The Hare and the Tortoise
 
A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing:  \"Though you be swift as the wind, I will beat you in a \nrace.\"  The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal.  On the day appointed for the race the two started \ntogether.  The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course.  The Hare, lying down by \nthe wayside, fell fast asleep.  At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. 
 
Slow but steady wins the race.  \n
\n" + }, + "offset_header": 1568, + "offset_body": 1664, + "offset_end": 2854 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/015.crlf.json b/tests/legacy/015.crlf.json new file mode 100644 index 0000000..b6c2469 --- /dev/null +++ b/tests/legacy/015.crlf.json @@ -0,0 +1,5998 @@ +{ + "html_body": [ + 4 + ], + "text_body": [ + 3 + ], + "attachments": [ + 5, + 6, + 7, + 8 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 2 (High)\r\n" + }, + "offset_field": 170, + "offset_start": 181, + "offset_end": 192 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 0, + "minute": 36, + "second": 58, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 192, + "offset_start": 197, + "offset_end": 231 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 231, + "offset_start": 234, + "offset_end": 288 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 288, + "offset_start": 293, + "offset_end": 330 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 330, + "offset_start": 338, + "offset_end": 383 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 383, + "offset_start": 396, + "offset_end": 402 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "=====================_715392540==_" + ] + ] + } + }, + "offset_field": 402, + "offset_start": 415, + "offset_end": 482 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 7, + 8 + ] + }, + "offset_header": 0, + "offset_body": 484, + "offset_end": 11502 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "related", + "attributes": [ + [ + "type", + "multipart/alternative" + ], + [ + "boundary", + "=====================_715392540==_.REL" + ] + ] + } + }, + "offset_field": 522, + "offset_start": 535, + "offset_end": 640 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 5, + 6 + ] + }, + "offset_header": 522, + "offset_body": 642, + "offset_end": 7504 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "=====================_715392550==_.ALT" + ] + ] + } + }, + "offset_field": 684, + "offset_start": 697, + "offset_end": 774 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 3, + 4 + ] + }, + "offset_header": 684, + "offset_body": 776, + "offset_end": 3160 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 818, + "offset_start": 831, + "offset_end": 866 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 866, + "offset_start": 892, + "offset_end": 911 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n2aa3ed95.png2aa3edd1.png" + }, + "offset_header": 818, + "offset_body": 913, + "offset_end": 1746 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 1790, + "offset_start": 1803, + "offset_end": 1837 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 1837, + "offset_start": 1863, + "offset_end": 1882 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\nDie Hasen und die\nFrösche
\n
\n
Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben."
\n
\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.
\n
\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir."
\n
\n
\"2aa3ed95.png\"\"2aa3edd1.png\"\n" + }, + "offset_header": 1790, + "offset_body": 1884, + "offset_end": 3114 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "2aa3ed95.png" + ] + ] + } + }, + "offset_field": 3204, + "offset_start": 3217, + "offset_end": 3250 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.2" + }, + "offset_field": 3250, + "offset_start": 3261, + "offset_end": 3316 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 3316, + "offset_start": 3342, + "offset_end": 3351 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "2aa3ed95.png" + ] + ] + } + }, + "offset_field": 3351, + "offset_start": 3371, + "offset_end": 3405 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 3204, + "offset_body": 3407, + "offset_end": 5221 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "2aa3edd1.png" + ] + ] + } + }, + "offset_field": 5265, + "offset_start": 5278, + "offset_end": 5311 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "4.2.0.58.20000519003556.00a918e0@pop.example.com.3" + }, + "offset_field": 5311, + "offset_start": 5322, + "offset_end": 5377 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 5377, + "offset_start": 5403, + "offset_end": 5412 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "2aa3edd1.png" + ] + ] + } + }, + "offset_field": 5412, + "offset_start": 5432, + "offset_end": 5466 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 5265, + "offset_body": 5468, + "offset_end": 7458 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 7544, + "offset_start": 7557, + "offset_end": 7590 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 7590, + "offset_start": 7616, + "offset_end": 7625 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 7625, + "offset_start": 7645, + "offset_end": 7683 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 7544, + "offset_body": 7685, + "offset_end": 9499 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "greenball.png" + ] + ] + } + }, + "offset_field": 9539, + "offset_start": 9552, + "offset_end": 9586 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 9586, + "offset_start": 9612, + "offset_end": 9621 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "greenball.png" + ] + ] + } + }, + "offset_field": 9621, + "offset_start": 9641, + "offset_end": 9680 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 33, + 0, + 0, + 8, + 0, + 0, + 49, + 0, + 0, + 66, + 0, + 0, + 82, + 0, + 0, + 90, + 0, + 0, + 74, + 0, + 8, + 99, + 0, + 8, + 115, + 0, + 8, + 123, + 0, + 16, + 140, + 0, + 8, + 107, + 0, + 0, + 57, + 0, + 0, + 99, + 0, + 16, + 148, + 0, + 16, + 156, + 0, + 33, + 165, + 0, + 16, + 165, + 0, + 33, + 173, + 0, + 66, + 189, + 24, + 99, + 198, + 49, + 99, + 198, + 57, + 82, + 198, + 33, + 41, + 206, + 0, + 24, + 189, + 0, + 16, + 173, + 0, + 24, + 173, + 0, + 33, + 189, + 0, + 148, + 214, + 99, + 173, + 214, + 123, + 132, + 214, + 82, + 74, + 222, + 24, + 33, + 214, + 0, + 24, + 198, + 0, + 24, + 181, + 0, + 0, + 41, + 0, + 66, + 206, + 16, + 206, + 231, + 148, + 222, + 231, + 173, + 198, + 231, + 148, + 148, + 231, + 99, + 82, + 231, + 33, + 33, + 222, + 0, + 24, + 206, + 0, + 82, + 222, + 33, + 156, + 231, + 107, + 214, + 239, + 156, + 189, + 239, + 140, + 132, + 239, + 82, + 66, + 239, + 16, + 173, + 239, + 123, + 165, + 222, + 115, + 90, + 239, + 41, + 33, + 231, + 0, + 24, + 214, + 0, + 49, + 231, + 0, + 82, + 239, + 33, + 107, + 239, + 57, + 74, + 239, + 24, + 41, + 231, + 0, + 41, + 239, + 0, + 49, + 239, + 0, + 8, + 132, + 0, + 16, + 181, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 41, + 213, + 249, + 217, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 109, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 194, + 32, + 20, + 7, + 112, + 15, + 108, + 200, + 128, + 193, + 4, + 215, + 227, + 92, + 169, + 219, + 40, + 43, + 233, + 185, + 180, + 44, + 179, + 239, + 255, + 153, + 136, + 185, + 135, + 179, + 44, + 239, + 171, + 157, + 243, + 59, + 247, + 50, + 248, + 223, + 94, + 175, + 45, + 91, + 85, + 239, + 79, + 89, + 0, + 61, + 207, + 131, + 16, + 248, + 127, + 24, + 162, + 62, + 198, + 1, + 38, + 125, + 228, + 129, + 223, + 104, + 17, + 166, + 44, + 228, + 156, + 135, + 34, + 32, + 200, + 235, + 182, + 218, + 104, + 16, + 74, + 53, + 28, + 14, + 227, + 88, + 114, + 129, + 163, + 46, + 34, + 202, + 213, + 193, + 225, + 209, + 241, + 201, + 105, + 50, + 138, + 57, + 195, + 8, + 182, + 6, + 49, + 79, + 207, + 78, + 206, + 199, + 227, + 201, + 52, + 203, + 11, + 197, + 5, + 209, + 205, + 153, + 54, + 98, + 170, + 184, + 152, + 92, + 206, + 174, + 174, + 111, + 230, + 38, + 73, + 85, + 24, + 68, + 94, + 125, + 25, + 224, + 218, + 178, + 219, + 187, + 251, + 217, + 195, + 227, + 83, + 102, + 146, + 34, + 118, + 141, + 205, + 137, + 222, + 64, + 22, + 103, + 211, + 235, + 231, + 151, + 199, + 215, + 197, + 210, + 153, + 27, + 138, + 81, + 53, + 212, + 106, + 161, + 242, + 236, + 237, + 125, + 181, + 250, + 248, + 52, + 89, + 94, + 255, + 13, + 216, + 14, + 181, + 145, + 80, + 137, + 89, + 172, + 191, + 214, + 243, + 165, + 201, + 147, + 34, + 85, + 27, + 209, + 26, + 18, + 50, + 49, + 217, + 124, + 153, + 153, + 146, + 70, + 138, + 135, + 148, + 104, + 191, + 182, + 1, + 143, + 19, + 99, + 202, + 38, + 71, + 169, + 228, + 44, + 168, + 110, + 239, + 76, + 227, + 80, + 165, + 73, + 94, + 202, + 119, + 170, + 228, + 182, + 13, + 84, + 137, + 88, + 216, + 119, + 207, + 50, + 74, + 11, + 39, + 177, + 35, + 70, + 113, + 4, + 253, + 218, + 124, + 77, + 4, + 151, + 42, + 142, + 149, + 146, + 114, + 195, + 202, + 247, + 4, + 77, + 146, + 22, + 34, + 66, + 203, + 16, + 56, + 223, + 132, + 130, + 146, + 14, + 185, + 70, + 23, + 94, + 64, + 25, + 99, + 66, + 208, + 160, + 223, + 210, + 214, + 172, + 15, + 116, + 68, + 48, + 198, + 212, + 69, + 171, + 97, + 67, + 182, + 222, + 19, + 0, + 53, + 66, + 145, + 70, + 94, + 181, + 19, + 157, + 189, + 113, + 31, + 190, + 15, + 97, + 185, + 44, + 173, + 52, + 217, + 218, + 255, + 170, + 183, + 31, + 187, + 219, + 180, + 87, + 118, + 241, + 159, + 245, + 221, + 133, + 31, + 205, + 97, + 231, + 141, + 210, + 8, + 44, + 44, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 9539, + "offset_body": 9682, + "offset_end": 11458 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/016.crlf.json b/tests/legacy/016.crlf.json new file mode 100644 index 0000000..9b01e2f --- /dev/null +++ b/tests/legacy/016.crlf.json @@ -0,0 +1,3359 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2, + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519005150.00a85230@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 0, + "minute": 53, + "second": 25, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 170, + "offset_start": 175, + "offset_end": 209 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Jürgen Schmürgen", + "address": "jschmuergen@example.com" + } + }, + "offset_field": 209, + "offset_start": 212, + "offset_end": 295 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 295, + "offset_start": 300, + "offset_end": 337 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 337, + "offset_start": 345, + "offset_end": 390 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 390, + "offset_start": 403, + "offset_end": 409 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "=====================_716373961==_" + ] + ] + } + }, + "offset_field": 409, + "offset_start": 422, + "offset_end": 489 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3 + ] + }, + "offset_header": 0, + "offset_body": 491, + "offset_end": 4873 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 529, + "offset_start": 542, + "offset_end": 577 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 577, + "offset_start": 603, + "offset_end": 622 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n" + }, + "offset_header": 529, + "offset_body": 624, + "offset_end": 1433 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "application", + "c_subtype": "mac-binhex40", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 1473, + "offset_start": 1486, + "offset_end": 1534 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 1534, + "offset_start": 1554, + "offset_end": 1592 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 13, + 10, + 40, + 84, + 104, + 105, + 115, + 32, + 102, + 105, + 108, + 101, + 32, + 109, + 117, + 115, + 116, + 32, + 98, + 101, + 32, + 99, + 111, + 110, + 118, + 101, + 114, + 116, + 101, + 100, + 32, + 119, + 105, + 116, + 104, + 32, + 66, + 105, + 110, + 72, + 101, + 120, + 32, + 52, + 46, + 48, + 41, + 13, + 10, + 58, + 36, + 39, + 42, + 88, + 71, + 64, + 57, + 76, + 66, + 64, + 97, + 88, + 44, + 82, + 34, + 90, + 67, + 96, + 34, + 35, + 53, + 56, + 106, + 34, + 69, + 64, + 52, + 91, + 70, + 96, + 33, + 33, + 33, + 33, + 33, + 38, + 44, + 51, + 33, + 33, + 33, + 33, + 34, + 39, + 100, + 83, + 80, + 51, + 54, + 78, + 70, + 48, + 35, + 75, + 83, + 43, + 33, + 33, + 33, + 33, + 36, + 56, + 80, + 13, + 10, + 41, + 52, + 38, + 41, + 33, + 33, + 33, + 33, + 69, + 33, + 33, + 33, + 33, + 39, + 96, + 74, + 36, + 33, + 33, + 33, + 33, + 90, + 74, + 83, + 37, + 67, + 96, + 33, + 33, + 33, + 96, + 34, + 51, + 54, + 38, + 52, + 38, + 114, + 114, + 114, + 114, + 33, + 33, + 33, + 41, + 33, + 33, + 33, + 51, + 33, + 33, + 33, + 66, + 33, + 33, + 33, + 33, + 33, + 33, + 74, + 84, + 33, + 34, + 34, + 13, + 10, + 35, + 33, + 34, + 34, + 43, + 33, + 33, + 74, + 97, + 33, + 34, + 34, + 53, + 35, + 35, + 38, + 99, + 35, + 35, + 80, + 108, + 35, + 35, + 81, + 37, + 35, + 35, + 38, + 86, + 33, + 34, + 75, + 68, + 33, + 33, + 74, + 106, + 35, + 35, + 38, + 77, + 37, + 36, + 81, + 70, + 39, + 37, + 43, + 80, + 39, + 37, + 43, + 89, + 39, + 37, + 43, + 101, + 37, + 36, + 81, + 80, + 37, + 36, + 39, + 13, + 10, + 56, + 33, + 34, + 75, + 53, + 37, + 36, + 39, + 45, + 43, + 57, + 43, + 101, + 49, + 64, + 50, + 39, + 49, + 64, + 50, + 49, + 43, + 57, + 86, + 49, + 39, + 37, + 86, + 49, + 39, + 37, + 44, + 49, + 39, + 37, + 43, + 112, + 51, + 81, + 91, + 39, + 72, + 106, + 99, + 64, + 82, + 44, + 104, + 72, + 77, + 44, + 65, + 72, + 66, + 106, + 54, + 82, + 45, + 64, + 91, + 72, + 41, + 57, + 44, + 13, + 10, + 72, + 39, + 37, + 86, + 64, + 39, + 37, + 44, + 39, + 37, + 36, + 39, + 80, + 33, + 33, + 33, + 75, + 99, + 90, + 73, + 91, + 106, + 113, + 114, + 91, + 82, + 45, + 69, + 91, + 56, + 83, + 54, + 91, + 43, + 57, + 86, + 82, + 37, + 36, + 81, + 89, + 53, + 82, + 91, + 49, + 86, + 70, + 108, + 72, + 84, + 70, + 108, + 91, + 64, + 83, + 99, + 91, + 37, + 36, + 39, + 70, + 64, + 83, + 54, + 13, + 10, + 64, + 86, + 71, + 69, + 82, + 99, + 90, + 114, + 91, + 77, + 44, + 104, + 91, + 53, + 82, + 91, + 91, + 39, + 36, + 81, + 80, + 39, + 37, + 86, + 39, + 77, + 44, + 104, + 82, + 89, + 72, + 73, + 91, + 80, + 44, + 104, + 91, + 33, + 33, + 33, + 84, + 64, + 83, + 99, + 82, + 70, + 107, + 65, + 91, + 68, + 106, + 99, + 91, + 35, + 35, + 81, + 45, + 45, + 64, + 50, + 91, + 43, + 57, + 86, + 13, + 10, + 91, + 35, + 35, + 38, + 108, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 13, + 10, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 13, + 10, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 13, + 10, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 13, + 10, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 13, + 10, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 13, + 10, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 13, + 10, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 13, + 10, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 13, + 10, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 13, + 10, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 13, + 10, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 33, + 96, + 54, + 41, + 48, + 57, + 51, + 33, + 33, + 33, + 33, + 38, + 100, + 56, + 78, + 106, + 54, + 33, + 37, + 36, + 81, + 102, + 39, + 66, + 33, + 33, + 33, + 33, + 13, + 10, + 64, + 71, + 37, + 57, + 66, + 71, + 38, + 48, + 91, + 67, + 82, + 52, + 104, + 66, + 65, + 42, + 80, + 33, + 39, + 71, + 84, + 67, + 77, + 42, + 96, + 69, + 81, + 70, + 74, + 45, + 76, + 105, + 96, + 44, + 77, + 37, + 112, + 65, + 86, + 106, + 83, + 33, + 33, + 33, + 34, + 76, + 37, + 80, + 37, + 51, + 57, + 52, + 105, + 82, + 40, + 65, + 53, + 69, + 57, + 72, + 69, + 45, + 34, + 74, + 13, + 10, + 39, + 105, + 34, + 42, + 49, + 74, + 35, + 66, + 51, + 56, + 84, + 49, + 39, + 99, + 33, + 80, + 45, + 84, + 96, + 56, + 76, + 102, + 85, + 85, + 44, + 102, + 107, + 97, + 91, + 102, + 104, + 99, + 106, + 114, + 108, + 109, + 83, + 72, + 112, + 42, + 64, + 108, + 44, + 40, + 40, + 81, + 98, + 113, + 70, + 70, + 106, + 100, + 108, + 41, + 72, + 51, + 67, + 77, + 66, + 66, + 37, + 43, + 37, + 51, + 13, + 10, + 83, + 70, + 43, + 49, + 71, + 34, + 36, + 76, + 43, + 41, + 57, + 39, + 35, + 96, + 105, + 113, + 45, + 97, + 105, + 53, + 81, + 37, + 42, + 43, + 97, + 43, + 37, + 40, + 69, + 107, + 40, + 42, + 49, + 42, + 104, + 89, + 35, + 35, + 77, + 38, + 57, + 43, + 53, + 81, + 53, + 100, + 33, + 104, + 85, + 78, + 78, + 98, + 44, + 44, + 114, + 89, + 73, + 36, + 109, + 85, + 85, + 80, + 80, + 45, + 13, + 10, + 48, + 76, + 33, + 69, + 37, + 54, + 49, + 112, + 112, + 49, + 99, + 99, + 107, + 73, + 82, + 96, + 98, + 68, + 101, + 86, + 67, + 107, + 53, + 96, + 98, + 69, + 104, + 88, + 39, + 45, + 67, + 104, + 88, + 40, + 106, + 108, + 102, + 84, + 102, + 73, + 82, + 109, + 107, + 67, + 88, + 38, + 105, + 83, + 96, + 91, + 35, + 81, + 107, + 75, + 39, + 89, + 97, + 70, + 71, + 82, + 104, + 114, + 71, + 64, + 13, + 10, + 50, + 72, + 57, + 50, + 57, + 96, + 80, + 43, + 64, + 74, + 104, + 78, + 45, + 41, + 77, + 43, + 52, + 101, + 99, + 114, + 108, + 114, + 89, + 73, + 91, + 81, + 101, + 80, + 54, + 101, + 78, + 43, + 34, + 75, + 64, + 88, + 44, + 66, + 108, + 85, + 109, + 91, + 69, + 107, + 108, + 91, + 104, + 114, + 96, + 89, + 57, + 66, + 90, + 104, + 88, + 100, + 112, + 38, + 80, + 85, + 56, + 34, + 104, + 114, + 13, + 10, + 113, + 114, + 86, + 91, + 97, + 90, + 112, + 64, + 76, + 100, + 105, + 53, + 91, + 99, + 41, + 100, + 70, + 67, + 78, + 113, + 76, + 82, + 70, + 102, + 73, + 65, + 97, + 84, + 50, + 70, + 81, + 86, + 54, + 44, + 37, + 105, + 39, + 53, + 106, + 71, + 101, + 101, + 66, + 34, + 56, + 51, + 33, + 90, + 86, + 43, + 66, + 114, + 112, + 71, + 104, + 84, + 108, + 44, + 43, + 76, + 57, + 69, + 57, + 80, + 13, + 10, + 64, + 89, + 99, + 65, + 51, + 56, + 81, + 82, + 35, + 114, + 50, + 80, + 64, + 67, + 81, + 43, + 76, + 84, + 82, + 65, + 71, + 51, + 78, + 81, + 43, + 36, + 83, + 77, + 36, + 78, + 75, + 88, + 44, + 70, + 106, + 68, + 85, + 84, + 52, + 52, + 53, + 44, + 77, + 85, + 86, + 112, + 39, + 89, + 64, + 52, + 39, + 68, + 101, + 42, + 38, + 76, + 33, + 76, + 98, + 97, + 57, + 89, + 90, + 90, + 13, + 10, + 88, + 89, + 53, + 86, + 101, + 75, + 48, + 70, + 101, + 73, + 105, + 74, + 96, + 34, + 112, + 52, + 43, + 43, + 67, + 101, + 53, + 96, + 83, + 88, + 83, + 39, + 51, + 76, + 43, + 42, + 75, + 112, + 99, + 51, + 76, + 80, + 112, + 42, + 67, + 98, + 50, + 74, + 71, + 66, + 86, + 86, + 88, + 96, + 75, + 78, + 109, + 70, + 38, + 105, + 106, + 96, + 99, + 90, + 40, + 72, + 99, + 68, + 64, + 101, + 13, + 10, + 113, + 48, + 81, + 35, + 53, + 52, + 106, + 33, + 33, + 40, + 35, + 66, + 35, + 69, + 67, + 50, + 40, + 33, + 34, + 81, + 36, + 77, + 51, + 82, + 73, + 106, + 72, + 101, + 90, + 114, + 64, + 90, + 33, + 105, + 34, + 82, + 33, + 69, + 51, + 104, + 38, + 69, + 86, + 68, + 82, + 107, + 57, + 50, + 106, + 76, + 44, + 91, + 77, + 90, + 96, + 50, + 114, + 33, + 52, + 52, + 56, + 99, + 48, + 76, + 13, + 10, + 67, + 68, + 51, + 107, + 114, + 33, + 33, + 33, + 33, + 42, + 65, + 52, + 38, + 64, + 40, + 52, + 36, + 69, + 102, + 101, + 89, + 67, + 64, + 106, + 100, + 33, + 39, + 48, + 88, + 68, + 65, + 33, + 98, + 67, + 102, + 80, + 81, + 41, + 40, + 66, + 90, + 45, + 35, + 105, + 102, + 41, + 39, + 42, + 106, + 41, + 38, + 80, + 102, + 67, + 65, + 45, + 74, + 56, + 39, + 80, + 82, + 71, + 64, + 57, + 13, + 10, + 100, + 48, + 82, + 45, + 108, + 91, + 33, + 33, + 33, + 33, + 33, + 34, + 42, + 52, + 56, + 106, + 37, + 86, + 78, + 42, + 74, + 74, + 89, + 113, + 100, + 33, + 33, + 33, + 33, + 58, + 13, + 10 + ] + }, + "offset_header": 1473, + "offset_body": 1594, + "offset_end": 3523 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "application", + "c_subtype": "mac-binhex40", + "attributes": [ + [ + "name", + "HasenundFr�sche.txt" + ] + ] + } + }, + "offset_field": 3563, + "offset_start": 3576, + "offset_end": 3631 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "HasenundFr�sche.txt" + ] + ] + } + }, + "offset_field": 3631, + "offset_start": 3651, + "offset_end": 3696 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 13, + 10, + 40, + 84, + 104, + 105, + 115, + 32, + 102, + 105, + 108, + 101, + 32, + 109, + 117, + 115, + 116, + 32, + 98, + 101, + 32, + 99, + 111, + 110, + 118, + 101, + 114, + 116, + 101, + 100, + 32, + 119, + 105, + 116, + 104, + 32, + 66, + 105, + 110, + 72, + 101, + 120, + 32, + 52, + 46, + 48, + 41, + 13, + 10, + 58, + 37, + 100, + 75, + 75, + 70, + 102, + 57, + 90, + 71, + 64, + 106, + 78, + 52, + 82, + 44, + 102, + 70, + 102, + 48, + 83, + 67, + 53, + 106, + 100, + 72, + 40, + 51, + 33, + 57, + 37, + 57, + 66, + 57, + 40, + 52, + 100, + 72, + 40, + 51, + 33, + 33, + 33, + 33, + 33, + 33, + 90, + 45, + 33, + 33, + 33, + 33, + 33, + 52, + 80, + 106, + 37, + 68, + 64, + 56, + 74, + 53, + 39, + 38, + 13, + 10, + 99, + 67, + 64, + 105, + 74, + 71, + 64, + 106, + 78, + 41, + 39, + 52, + 84, + 67, + 53, + 34, + 39, + 70, + 91, + 67, + 99, + 66, + 102, + 75, + 80, + 36, + 51, + 101, + 37, + 68, + 64, + 56, + 74, + 53, + 39, + 38, + 99, + 67, + 64, + 105, + 74, + 68, + 102, + 97, + 75, + 67, + 104, + 52, + 80, + 69, + 76, + 34, + 80, + 68, + 64, + 106, + 99, + 71, + 35, + 36, + 109, + 66, + 81, + 57, + 13, + 10, + 98, + 41, + 39, + 80, + 83, + 70, + 81, + 56, + 74, + 69, + 64, + 82, + 73, + 69, + 39, + 80, + 77, + 68, + 39, + 56, + 74, + 54, + 39, + 38, + 82, + 67, + 54, + 88, + 74, + 41, + 82, + 71, + 84, + 70, + 76, + 34, + 88, + 67, + 64, + 42, + 80, + 69, + 76, + 41, + 88, + 41, + 40, + 48, + 96, + 70, + 81, + 38, + 77, + 68, + 35, + 34, + 80, + 68, + 64, + 105, + 74, + 56, + 81, + 57, + 13, + 10, + 78, + 69, + 81, + 57, + 98, + 44, + 35, + 33, + 76, + 68, + 64, + 105, + 74, + 70, + 104, + 52, + 80, + 71, + 39, + 57, + 98, + 41, + 37, + 67, + 101, + 70, + 81, + 48, + 83, + 71, + 35, + 34, + 102, + 69, + 104, + 41, + 74, + 54, + 64, + 57, + 90, + 70, + 102, + 48, + 83, + 67, + 64, + 105, + 74, + 71, + 64, + 106, + 78, + 41, + 38, + 52, + 84, + 67, + 65, + 42, + 80, + 69, + 76, + 96, + 13, + 10, + 74, + 67, + 64, + 80, + 90, + 67, + 53, + 34, + 35, + 67, + 65, + 57, + 100, + 67, + 53, + 34, + 78, + 67, + 65, + 41, + 74, + 53, + 40, + 57, + 90, + 67, + 39, + 56, + 88, + 41, + 39, + 52, + 80, + 70, + 76, + 34, + 34, + 67, + 39, + 97, + 80, + 70, + 76, + 96, + 74, + 68, + 81, + 37, + 74, + 67, + 81, + 38, + 99, + 71, + 35, + 34, + 75, + 69, + 39, + 97, + 80, + 70, + 76, + 34, + 13, + 10, + 53, + 66, + 65, + 57, + 76, + 71, + 39, + 80, + 80, + 70, + 81, + 56, + 75, + 41, + 38, + 57, + 90, + 70, + 102, + 57, + 98, + 67, + 53, + 34, + 99, + 71, + 39, + 57, + 100, + 67, + 53, + 34, + 34, + 69, + 81, + 71, + 99, + 71, + 35, + 34, + 84, + 70, + 104, + 51, + 74, + 106, + 40, + 42, + 82, + 67, + 65, + 41, + 74, + 66, + 64, + 97, + 99, + 41, + 39, + 52, + 80, + 70, + 76, + 34, + 13, + 10, + 56, + 69, + 102, + 51, + 74, + 70, + 102, + 57, + 88, + 66, + 82, + 48, + 100, + 44, + 76, + 34, + 34, + 71, + 64, + 66, + 88, + 41, + 39, + 97, + 75, + 104, + 104, + 51, + 74, + 71, + 64, + 106, + 99, + 41, + 39, + 57, + 84, + 69, + 76, + 34, + 81, + 114, + 40, + 41, + 74, + 66, + 64, + 97, + 88, + 67, + 64, + 101, + 75, + 69, + 35, + 34, + 99, + 71, + 39, + 57, + 98, + 66, + 81, + 57, + 13, + 10, + 90, + 44, + 76, + 41, + 74, + 36, + 51, + 101, + 42, + 69, + 76, + 34, + 80, + 68, + 64, + 106, + 80, + 69, + 53, + 34, + 90, + 66, + 64, + 75, + 80, + 69, + 76, + 34, + 56, + 67, + 64, + 80, + 77, + 68, + 35, + 34, + 104, + 69, + 102, + 97, + 88, + 71, + 39, + 57, + 90, + 41, + 40, + 48, + 84, + 67, + 53, + 34, + 99, + 68, + 64, + 48, + 83, + 41, + 39, + 106, + 101, + 69, + 76, + 34, + 13, + 10, + 80, + 70, + 82, + 50, + 78, + 71, + 64, + 67, + 80, + 69, + 77, + 88, + 74, + 70, + 102, + 80, + 80, + 41, + 39, + 57, + 84, + 69, + 40, + 52, + 80, + 69, + 76, + 34, + 84, + 68, + 39, + 100, + 74, + 72, + 82, + 56, + 108, + 41, + 39, + 38, + 88, + 69, + 39, + 57, + 84, + 69, + 76, + 34, + 78, + 66, + 65, + 45, + 74, + 66, + 65, + 65, + 73, + 67, + 65, + 42, + 91, + 70, + 81, + 52, + 13, + 10, + 80, + 69, + 82, + 52, + 88, + 68, + 64, + 48, + 83, + 67, + 53, + 34, + 40, + 67, + 65, + 54, + 102, + 70, + 102, + 56, + 74, + 71, + 64, + 106, + 78, + 41, + 39, + 80, + 83, + 70, + 81, + 56, + 74, + 71, + 104, + 57, + 90, + 67, + 39, + 57, + 98, + 66, + 81, + 38, + 98, + 67, + 53, + 34, + 40, + 67, + 65, + 48, + 100, + 66, + 64, + 97, + 100, + 41, + 39, + 57, + 98, + 70, + 102, + 48, + 13, + 10, + 83, + 70, + 81, + 57, + 77, + 68, + 104, + 52, + 80, + 41, + 39, + 57, + 84, + 69, + 81, + 56, + 74, + 54, + 64, + 57, + 90, + 67, + 102, + 56, + 74, + 52, + 82, + 44, + 102, + 70, + 102, + 48, + 83, + 67, + 53, + 96, + 74, + 67, + 39, + 80, + 80, + 41, + 39, + 38, + 89, + 41, + 38, + 57, + 81, + 67, + 65, + 41, + 74, + 70, + 102, + 40, + 73, + 67, + 64, + 105, + 88, + 41, + 40, + 48, + 13, + 10, + 91, + 41, + 40, + 48, + 80, + 68, + 40, + 41, + 88, + 41, + 39, + 52, + 75, + 104, + 98, + 34, + 99, + 68, + 64, + 56, + 74, + 66, + 65, + 57, + 81, + 70, + 98, + 34, + 99, + 66, + 102, + 75, + 90, + 67, + 64, + 97, + 88, + 70, + 104, + 52, + 80, + 41, + 40, + 57, + 90, + 71, + 39, + 57, + 98, + 71, + 39, + 38, + 101, + 66, + 102, + 75, + 100, + 67, + 64, + 105, + 90, + 41, + 33, + 100, + 13, + 10, + 48, + 41, + 78, + 75, + 75, + 69, + 40, + 51, + 76, + 44, + 35, + 34, + 98, + 68, + 64, + 57, + 81, + 41, + 39, + 106, + 101, + 69, + 76, + 34, + 80, + 66, + 81, + 57, + 90, + 41, + 39, + 52, + 84, + 67, + 65, + 48, + 80, + 70, + 76, + 34, + 54, + 70, + 40, + 42, + 80, + 66, + 102, + 75, + 80, + 70, + 76, + 96, + 74, + 41, + 82, + 71, + 84, + 70, + 76, + 34, + 104, + 69, + 102, + 97, + 13, + 10, + 88, + 67, + 64, + 105, + 74, + 67, + 39, + 38, + 99, + 41, + 37, + 57, + 98, + 70, + 113, + 52, + 101, + 67, + 81, + 57, + 90, + 41, + 39, + 106, + 91, + 66, + 102, + 74, + 74, + 67, + 64, + 80, + 90, + 41, + 40, + 71, + 80, + 69, + 81, + 80, + 82, + 41, + 39, + 38, + 101, + 67, + 82, + 48, + 77, + 68, + 39, + 80, + 80, + 66, + 81, + 57, + 90, + 44, + 35, + 34, + 78, + 67, + 64, + 106, + 13, + 10, + 90, + 41, + 39, + 38, + 101, + 66, + 102, + 74, + 74, + 71, + 64, + 106, + 99, + 41, + 39, + 69, + 109, + 70, + 81, + 48, + 83, + 71, + 39, + 57, + 90, + 44, + 35, + 34, + 104, + 68, + 64, + 56, + 74, + 68, + 64, + 75, + 98, + 41, + 40, + 48, + 80, + 68, + 40, + 51, + 88, + 41, + 39, + 57, + 84, + 69, + 81, + 80, + 82, + 67, + 53, + 34, + 56, + 68, + 64, + 57, + 98, + 67, + 53, + 96, + 13, + 10, + 74, + 71, + 102, + 57, + 88, + 66, + 102, + 75, + 80, + 41, + 39, + 38, + 88, + 70, + 102, + 109, + 74, + 71, + 102, + 112, + 83, + 69, + 35, + 34, + 90, + 69, + 102, + 48, + 83, + 41, + 40, + 57, + 90, + 67, + 102, + 99, + 109, + 66, + 102, + 89, + 88, + 68, + 64, + 48, + 83, + 67, + 65, + 41, + 74, + 70, + 102, + 57, + 84, + 69, + 76, + 34, + 89, + 114, + 40, + 48, + 99, + 67, + 64, + 105, + 13, + 10, + 74, + 66, + 64, + 97, + 99, + 41, + 40, + 71, + 84, + 70, + 76, + 105, + 76, + 41, + 33, + 100, + 48, + 57, + 39, + 56, + 33, + 33, + 33, + 58, + 13, + 10 + ] + }, + "offset_header": 3563, + "offset_body": 3698, + "offset_end": 4829 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/017.crlf.json b/tests/legacy/017.crlf.json new file mode 100644 index 0000000..cc18b65 --- /dev/null +++ b/tests/legacy/017.crlf.json @@ -0,0 +1,4056 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2, + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519004755.00a86100@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 0, + "minute": 50, + "second": 8, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 170, + "offset_start": 175, + "offset_end": 209 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "J�rgen Schm�rgen", + "address": "jschmuergen@example.com" + } + }, + "offset_field": 209, + "offset_start": 212, + "offset_end": 257 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 257, + "offset_start": 262, + "offset_end": 299 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "The Hare and the Tortoise" + }, + "offset_field": 299, + "offset_start": 307, + "offset_end": 335 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 335, + "offset_start": 348, + "offset_end": 354 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "=====================_716177458==_" + ] + ] + } + }, + "offset_field": 354, + "offset_start": 367, + "offset_end": 434 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3 + ] + }, + "offset_header": 0, + "offset_body": 436, + "offset_end": 5448 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 474, + "offset_start": 487, + "offset_end": 520 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n" + }, + "offset_header": 474, + "offset_body": 522, + "offset_end": 1286 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "greenball.png" + ] + ] + } + }, + "offset_field": 1326, + "offset_start": 1339, + "offset_end": 1373 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "x-uuencode" + }, + "offset_field": 1373, + "offset_start": 1399, + "offset_end": 1412 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "greenball.png" + ] + ] + } + }, + "offset_field": 1412, + "offset_start": 1432, + "offset_end": 1471 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 13, + 10, + 98, + 101, + 103, + 105, + 110, + 32, + 54, + 48, + 48, + 32, + 103, + 114, + 101, + 101, + 110, + 98, + 97, + 108, + 108, + 46, + 112, + 110, + 103, + 13, + 10, + 77, + 66, + 53, + 33, + 46, + 49, + 80, + 84, + 42, + 38, + 64, + 72, + 96, + 96, + 96, + 96, + 45, + 50, + 52, + 65, + 36, + 52, + 64, + 96, + 96, + 96, + 33, + 76, + 96, + 96, + 96, + 96, + 59, + 34, + 96, + 44, + 96, + 96, + 96, + 34, + 90, + 34, + 64, + 49, + 71, + 96, + 96, + 96, + 35, + 96, + 37, + 33, + 44, + 53, + 36, + 55, + 95, + 95, + 95, + 92, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 36, + 96, + 96, + 96, + 38, + 96, + 96, + 96, + 40, + 48, + 96, + 96, + 34, + 96, + 96, + 96, + 44, + 48, + 96, + 96, + 48, + 64, + 96, + 96, + 52, + 64, + 96, + 96, + 54, + 64, + 96, + 96, + 50, + 64, + 96, + 40, + 56, + 80, + 96, + 40, + 60, + 80, + 96, + 40, + 62, + 80, + 96, + 48, + 67, + 96, + 96, + 40, + 58, + 80, + 96, + 96, + 13, + 10, + 77, + 46, + 48, + 96, + 96, + 56, + 80, + 96, + 48, + 69, + 96, + 96, + 48, + 71, + 96, + 96, + 65, + 73, + 48, + 96, + 48, + 73, + 48, + 96, + 65, + 75, + 48, + 33, + 34, + 79, + 49, + 65, + 67, + 81, + 67, + 37, + 67, + 81, + 67, + 69, + 50, + 81, + 66, + 36, + 73, + 83, + 64, + 96, + 56, + 79, + 48, + 96, + 48, + 75, + 48, + 96, + 56, + 75, + 48, + 96, + 65, + 13, + 10, + 77, + 79, + 48, + 34, + 52, + 85, + 70, + 46, + 77, + 85, + 71, + 78, + 36, + 85, + 69, + 41, + 42, + 87, + 65, + 64, + 65, + 85, + 64, + 96, + 56, + 81, + 64, + 96, + 56, + 77, + 48, + 96, + 96, + 42, + 48, + 33, + 34, + 83, + 65, + 35, + 46, + 89, + 89, + 51, + 62, + 89, + 90, + 87, + 38, + 89, + 89, + 50, + 52, + 89, + 86, + 45, + 50, + 89, + 82, + 36, + 65, + 13, + 10, + 77, + 87, + 64, + 96, + 56, + 83, + 64, + 33, + 50, + 87, + 66, + 38, + 60, + 89, + 86, + 79, + 54, + 91, + 89, + 82, + 93, + 91, + 88, + 82, + 36, + 91, + 85, + 41, + 34, + 91, + 81, + 34, + 77, + 91, + 87, + 78, + 69, + 87, + 71, + 45, + 58, + 91, + 82, + 68, + 65, + 89, + 80, + 96, + 56, + 85, + 64, + 96, + 81, + 89, + 80, + 33, + 50, + 91, + 82, + 37, + 75, + 13, + 10, + 77, + 91, + 83, + 69, + 42, + 91, + 81, + 64, + 73, + 89, + 80, + 96, + 73, + 91, + 80, + 96, + 81, + 91, + 80, + 96, + 40, + 65, + 96, + 96, + 48, + 77, + 48, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 73, + 13, + 10, + 77, + 85, + 63, + 71, + 57, + 96, + 96, + 96, + 96, + 96, + 55, + 49, + 50, + 51, + 69, + 44, + 96, + 48, + 46, + 59, + 56, + 57, + 64, + 96, + 96, + 96, + 33, + 57, + 84, + 49, + 53, + 65, + 84, + 52, + 86, + 93, + 70, + 61, + 39, + 61, + 65, + 60, + 70, + 52, + 96, + 57, + 86, + 69, + 70, + 44, + 71, + 33, + 78, + 57, + 82, + 96, + 82, + 43, + 67, + 96, + 78, + 13, + 10, + 77, + 44, + 51, + 85, + 62, + 79, + 70, + 64, + 96, + 96, + 96, + 37, + 77, + 50, + 52, + 49, + 33, + 53, + 39, + 66, + 60, + 61, + 61, + 41, + 77, + 53, + 92, + 40, + 64, + 37, + 96, + 61, + 80, + 35, + 86, + 83, + 40, + 64, + 44, + 36, + 36, + 85, + 94, + 45, + 60, + 74, + 61, + 76, + 72, + 42, + 94, + 70, + 89, + 77, + 34, + 82, + 83, + 91, + 95, + 94, + 57, + 13, + 10, + 77, + 66, + 43, + 70, + 39, + 76, + 82, + 83, + 79, + 74, + 89, + 87, + 83, + 46, + 95, + 60, + 82, + 94, + 45, + 93, + 62, + 75, + 82, + 85, + 59, + 53, + 62, + 93, + 47, + 54, + 48, + 96, + 93, + 83, + 88, + 44, + 48, + 94, + 39, + 92, + 56, + 72, + 67, + 91, + 38, + 96, + 50, + 57, + 93, + 89, + 40, + 39, + 63, + 58, + 33, + 38, + 70, + 43, + 46, + 50, + 60, + 13, + 10, + 77, + 65, + 82, + 40, + 64, + 82, + 46, + 78, + 86, + 86, + 70, + 64, + 48, + 50, + 67, + 52, + 60, + 35, + 78, + 45, + 56, + 60, + 72, + 38, + 67, + 43, + 66, + 43, + 42, + 85, + 60, + 39, + 65, + 84, + 63, + 39, + 41, + 58, + 51, + 42, + 42, + 46, + 60, + 44, + 40, + 77, + 64, + 56, + 81, + 51, + 92, + 93, + 46, + 83, + 76, + 63, + 67, + 82, + 51, + 51, + 43, + 13, + 10, + 77, + 34, + 92, + 52, + 37, + 84, + 60, + 86, + 57, + 45, + 70, + 42, + 74, + 78, + 41, + 65, + 60, + 83, + 74, + 90, + 78, + 59, + 94, + 56, + 70, + 50, + 53, + 52, + 56, + 49, + 37, + 89, + 93, + 38, + 62, + 35, + 58, + 76, + 77, + 78, + 91, + 94, + 93, + 71, + 35, + 88, + 85, + 45, + 70, + 68, + 66, + 41, + 86, + 67, + 60, + 86, + 41, + 87, + 68, + 96, + 54, + 13, + 10, + 77, + 57, + 93, + 47, + 75, + 89, + 89, + 63, + 39, + 85, + 92, + 55, + 50, + 70, + 49, + 78, + 42, + 52, + 51, + 55, + 52, + 58, + 74, + 39, + 82, + 91, + 46, + 85, + 93, + 77, + 63, + 75, + 88, + 45, + 37, + 69, + 62, + 95, + 80, + 87, + 56, + 35, + 75, + 54, + 49, + 52, + 40, + 69, + 57, + 75, + 43, + 95, + 54, + 92, + 90, + 55, + 41, + 68, + 82, + 41, + 53, + 13, + 10, + 77, + 38, + 93, + 36, + 58, + 36, + 67, + 40, + 81, + 86, + 55, + 82, + 57, + 70, + 57, + 41, + 38, + 66, + 72, + 62, + 52, + 58, + 43, + 94, + 86, + 96, + 56, + 92, + 51, + 56, + 92, + 72, + 70, + 49, + 90, + 71, + 68, + 43, + 42, + 65, + 78, + 91, + 84, + 83, + 67, + 52, + 42, + 53, + 41, + 55, + 76, + 73, + 87, + 74, + 78, + 50, + 86, + 35, + 53, + 50, + 41, + 13, + 10, + 77, + 54, + 45, + 65, + 87, + 83, + 83, + 41, + 42, + 34, + 82, + 62, + 81, + 40, + 84, + 57, + 81, + 33, + 47, + 87, + 58, + 63, + 36, + 84, + 36, + 69, + 82, + 74, + 46, + 69, + 57, + 41, + 82, + 80, + 92, + 75, + 87, + 33, + 36, + 86, + 50, + 37, + 66, + 41, + 34, + 82, + 81, + 96, + 88, + 87, + 88, + 50, + 34, + 68, + 64, + 90, + 89, + 49, + 65, + 61, + 62, + 13, + 10, + 77, + 48, + 33, + 69, + 67, + 48, + 77, + 34, + 64, + 87, + 93, + 43, + 54, + 75, + 96, + 93, + 84, + 49, + 35, + 35, + 38, + 85, + 36, + 54, + 75, + 56, + 52, + 46, + 86, + 87, + 65, + 44, + 96, + 45, + 52, + 42, + 49, + 49, + 69, + 90, + 85, + 36, + 89, + 86, + 93, + 60, + 49, + 94, + 94, + 35, + 86, + 38, + 89, + 43, + 42, + 84, + 84, + 86, + 61, + 75, + 95, + 13, + 10, + 77, + 74, + 75, + 60, + 63, + 78, + 93, + 78, + 84, + 53, + 87, + 59, + 81, + 71, + 95, + 55, + 61, + 65, + 49, + 95, + 45, + 56, + 62, + 62, + 45, + 84, + 64, + 64, + 76, + 43, + 96, + 96, + 96, + 96, + 34, + 53, + 84, + 49, + 53, + 65, + 84, + 48, + 86, + 93, + 77, + 59, + 54, + 53, + 78, + 61, + 96, + 33, + 67, + 59, + 38, + 69, + 80, + 44, + 70, + 61, + 73, + 13, + 10, + 70, + 57, + 66, + 33, + 86, + 43, + 67, + 96, + 78, + 45, + 66, + 33, + 66, + 62, + 50, + 33, + 57, + 61, + 70, + 53, + 83, + 40, + 37, + 33, + 73, + 57, + 87, + 53, + 69, + 61, + 35, + 57, + 83, + 46, + 91, + 80, + 96, + 96, + 96, + 96, + 96, + 50, + 52, + 53, + 46, + 49, + 42, + 89, + 34, + 56, + 40, + 40, + 96, + 13, + 10, + 96, + 13, + 10, + 101, + 110, + 100, + 13, + 10 + ] + }, + "offset_header": 1326, + "offset_body": 1473, + "offset_end": 3327 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 3367, + "offset_start": 3380, + "offset_end": 3413 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "x-uuencode" + }, + "offset_field": 3413, + "offset_start": 3439, + "offset_end": 3452 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 3452, + "offset_start": 3472, + "offset_end": 3510 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 13, + 10, + 98, + 101, + 103, + 105, + 110, + 32, + 54, + 48, + 48, + 32, + 98, + 108, + 117, + 101, + 98, + 97, + 108, + 108, + 46, + 112, + 110, + 103, + 13, + 10, + 77, + 66, + 53, + 33, + 46, + 49, + 80, + 84, + 42, + 38, + 64, + 72, + 96, + 96, + 96, + 96, + 45, + 50, + 52, + 65, + 36, + 52, + 64, + 96, + 96, + 96, + 33, + 76, + 96, + 96, + 96, + 96, + 59, + 34, + 96, + 44, + 96, + 96, + 96, + 34, + 90, + 34, + 64, + 49, + 71, + 96, + 96, + 96, + 35, + 96, + 37, + 33, + 44, + 53, + 36, + 55, + 95, + 95, + 95, + 92, + 96, + 13, + 10, + 77, + 96, + 96, + 64, + 96, + 96, + 33, + 96, + 96, + 96, + 33, + 64, + 96, + 96, + 96, + 96, + 96, + 34, + 34, + 68, + 96, + 36, + 36, + 40, + 96, + 36, + 36, + 72, + 96, + 34, + 35, + 36, + 96, + 36, + 37, + 40, + 40, + 40, + 55, + 44, + 40, + 42, + 55, + 76, + 40, + 42, + 56, + 48, + 40, + 40, + 54, + 76, + 96, + 38, + 37, + 72, + 96, + 34, + 35, + 68, + 40, + 13, + 10, + 77, + 40, + 54, + 44, + 48, + 46, + 57, + 80, + 56, + 48, + 74, + 52, + 56, + 48, + 74, + 84, + 56, + 48, + 75, + 52, + 48, + 46, + 58, + 52, + 48, + 44, + 57, + 48, + 96, + 38, + 37, + 40, + 48, + 44, + 56, + 80, + 73, + 52, + 75, + 52, + 89, + 56, + 92, + 56, + 89, + 56, + 92, + 88, + 73, + 54, + 76, + 88, + 56, + 50, + 76, + 88, + 56, + 48, + 76, + 88, + 56, + 13, + 10, + 77, + 48, + 75, + 85, + 34, + 58, + 92, + 57, + 91, + 71, + 45, + 58, + 60, + 79, + 61, + 90, + 44, + 77, + 61, + 89, + 67, + 69, + 46, + 60, + 81, + 58, + 93, + 88, + 65, + 52, + 77, + 88, + 56, + 50, + 77, + 56, + 56, + 48, + 76, + 56, + 48, + 44, + 58, + 52, + 96, + 96, + 34, + 39, + 46, + 89, + 94, + 95, + 71, + 91, + 94, + 94, + 60, + 81, + 78, + 93, + 50, + 13, + 10, + 77, + 65, + 46, + 92, + 73, + 54, + 78, + 60, + 48, + 46, + 58, + 85, + 42, + 62, + 92, + 90, + 77, + 83, + 77, + 90, + 69, + 83, + 78, + 93, + 58, + 67, + 46, + 92, + 48, + 44, + 57, + 81, + 58, + 65, + 45, + 58, + 77, + 85, + 78, + 63, + 46, + 91, + 94, + 94, + 44, + 79, + 62, + 93, + 42, + 62, + 94, + 92, + 56, + 46, + 58, + 52, + 56, + 50, + 76, + 58, + 44, + 13, + 10, + 77, + 79, + 62, + 62, + 85, + 89, + 94, + 94, + 52, + 79, + 62, + 92, + 96, + 96, + 34, + 69, + 58, + 67, + 46, + 61, + 83, + 73, + 62, + 93, + 75, + 71, + 46, + 92, + 40, + 42, + 56, + 80, + 81, + 56, + 94, + 92, + 73, + 54, + 78, + 92, + 40, + 40, + 55, + 76, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 13, + 10, + 77, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 96, + 35, + 33, + 13, + 10, + 77, + 44, + 64, + 85, + 53, + 96, + 96, + 96, + 96, + 96, + 55, + 49, + 50, + 51, + 69, + 44, + 96, + 48, + 46, + 59, + 56, + 57, + 64, + 96, + 96, + 96, + 33, + 57, + 84, + 49, + 53, + 65, + 84, + 52, + 86, + 93, + 70, + 61, + 39, + 61, + 65, + 60, + 70, + 52, + 96, + 57, + 86, + 69, + 70, + 44, + 71, + 33, + 78, + 57, + 82, + 96, + 82, + 43, + 67, + 96, + 78, + 13, + 10, + 77, + 44, + 51, + 85, + 62, + 79, + 70, + 64, + 96, + 96, + 96, + 38, + 40, + 50, + 52, + 49, + 33, + 53, + 39, + 66, + 60, + 61, + 61, + 41, + 77, + 53, + 89, + 76, + 80, + 38, + 96, + 59, + 64, + 36, + 68, + 90, + 96, + 41, + 65, + 33, + 50, + 68, + 88, + 59, + 44, + 34, + 52, + 82, + 71, + 33, + 50, + 43, + 58, + 74, + 72, + 79, + 59, + 75, + 38, + 95, + 59, + 13, + 10, + 77, + 63, + 47, + 71, + 95, + 79, + 82, + 65, + 91, + 84, + 69, + 59, + 76, + 76, + 60, + 62, + 59, + 43, + 89, + 81, + 83, + 71, + 51, + 76, + 65, + 89, + 33, + 70, + 45, + 65, + 64, + 48, + 72, + 49, + 34, + 65, + 80, + 72, + 89, + 84, + 36, + 46, + 40, + 72, + 65, + 52, + 56, + 43, + 35, + 67, + 88, + 83, + 39, + 65, + 42, + 56, + 48, + 68, + 75, + 36, + 72, + 13, + 10, + 77, + 48, + 61, + 79, + 72, + 60, + 68, + 88, + 71, + 62, + 84, + 40, + 42, + 44, + 53, + 52, + 73, + 42, + 57, + 43, + 48, + 35, + 62, + 74, + 50, + 51, + 40, + 76, + 79, + 94, + 85, + 92, + 47, + 82, + 74, + 74, + 54, + 52, + 80, + 86, + 40, + 33, + 76, + 49, + 44, + 91, + 87, + 84, + 91, + 47, + 47, + 73, + 94, + 63, + 35, + 41, + 75, + 54, + 77, + 71, + 73, + 13, + 10, + 77, + 43, + 35, + 41, + 79, + 62, + 80, + 56, + 81, + 71, + 62, + 80, + 63, + 71, + 79, + 58, + 71, + 57, + 94, + 63, + 83, + 73, + 70, + 80, + 55, + 66, + 67, + 34, + 92, + 42, + 59, + 74, + 36, + 58, + 87, + 37, + 81, + 86, + 63, + 63, + 93, + 85, + 56, + 93, + 89, + 52, + 93, + 55, + 34, + 52, + 73, + 58, + 35, + 62, + 48, + 80, + 66, + 44, + 73, + 39, + 55, + 13, + 10, + 77, + 47, + 95, + 79, + 94, + 85, + 94, + 94, + 59, + 54, + 53, + 47, + 54, + 48, + 72, + 38, + 37, + 58, + 80, + 77, + 67, + 78, + 75, + 82, + 93, + 79, + 75, + 78, + 95, + 63, + 95, + 34, + 85, + 53, + 66, + 91, + 62, + 83, + 51, + 84, + 54, + 54, + 73, + 48, + 39, + 63, + 95, + 91, + 94, + 78, + 95, + 38, + 91, + 85, + 58, + 43, + 51, + 65, + 42, + 95, + 44, + 13, + 10, + 77, + 67, + 49, + 81, + 70, + 51, + 90, + 42, + 61, + 83, + 57, + 93, + 63, + 38, + 68, + 93, + 82, + 58, + 77, + 44, + 76, + 51, + 64, + 57, + 43, + 69, + 87, + 55, + 53, + 64, + 37, + 49, + 96, + 34, + 90, + 76, + 73, + 67, + 95, + 85, + 87, + 62, + 71, + 76, + 76, + 74, + 41, + 53, + 77, + 54, + 53, + 58, + 87, + 45, + 61, + 33, + 50, + 58, + 60, + 43, + 92, + 13, + 10, + 77, + 94, + 53, + 57, + 70, + 56, + 74, + 42, + 70, + 61, + 61, + 85, + 34, + 50, + 56, + 72, + 46, + 66, + 44, + 46, + 50, + 38, + 80, + 77, + 83, + 69, + 74, + 74, + 69, + 37, + 37, + 40, + 78, + 46, + 74, + 79, + 84, + 58, + 85, + 57, + 36, + 57, + 75, + 52, + 68, + 54, + 40, + 34, + 43, + 43, + 37, + 54, + 86, + 90, + 90, + 82, + 85, + 42, + 79, + 54, + 36, + 13, + 10, + 77, + 85, + 83, + 53, + 95, + 66, + 35, + 96, + 39, + 85, + 36, + 72, + 73, + 71, + 53, + 43, + 34, + 66, + 82, + 64, + 57, + 34, + 40, + 72, + 70, + 39, + 87, + 45, + 34, + 42, + 55, + 84, + 69, + 71, + 40, + 94, + 33, + 85, + 66, + 78, + 78, + 83, + 34, + 38, + 51, + 81, + 80, + 55, + 67, + 71, + 35, + 46, + 88, + 61, + 91, + 45, + 73, + 59, + 55, + 88, + 86, + 13, + 10, + 77, + 56, + 41, + 41, + 39, + 68, + 33, + 80, + 70, + 96, + 70, + 86, + 51, + 81, + 80, + 96, + 57, + 64, + 88, + 84, + 41, + 87, + 94, + 55, + 77, + 59, + 79, + 85, + 75, + 64, + 46, + 96, + 57, + 80, + 38, + 84, + 45, + 81, + 54, + 90, + 86, + 73, + 94, + 69, + 51, + 94, + 56, + 66, + 91, + 88, + 91, + 76, + 35, + 95, + 80, + 36, + 52, + 53, + 44, + 83, + 56, + 13, + 10, + 77, + 70, + 54, + 68, + 46, + 79, + 80, + 96, + 96, + 96, + 34, + 53, + 84, + 49, + 53, + 65, + 84, + 48, + 86, + 93, + 77, + 59, + 54, + 53, + 78, + 61, + 96, + 33, + 67, + 59, + 38, + 69, + 80, + 44, + 70, + 61, + 73, + 57, + 66, + 33, + 86, + 43, + 67, + 96, + 78, + 45, + 66, + 33, + 66, + 62, + 50, + 33, + 57, + 61, + 70, + 53, + 83, + 40, + 37, + 33, + 73, + 13, + 10, + 52, + 57, + 87, + 53, + 69, + 61, + 35, + 57, + 83, + 46, + 91, + 80, + 96, + 96, + 96, + 96, + 96, + 50, + 52, + 53, + 46, + 49, + 42, + 89, + 34, + 56, + 40, + 40, + 96, + 13, + 10, + 96, + 13, + 10, + 101, + 110, + 100, + 13, + 10 + ] + }, + "offset_header": 3367, + "offset_body": 3512, + "offset_end": 5404 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/018.crlf.json b/tests/legacy/018.crlf.json new file mode 100644 index 0000000..eaa23f5 --- /dev/null +++ b/tests/legacy/018.crlf.json @@ -0,0 +1,3212 @@ +{ + "html_body": [ + 3 + ], + "text_body": [ + 2 + ], + "attachments": [ + 4, + 5 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 2 (High)\r\n" + }, + "offset_field": 170, + "offset_start": 181, + "offset_end": 192 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 0, + "minute": 33, + "second": 1, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 192, + "offset_start": 197, + "offset_end": 231 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 231, + "offset_start": 234, + "offset_end": 288 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 288, + "offset_start": 293, + "offset_end": 330 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 330, + "offset_start": 338, + "offset_end": 383 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 383, + "offset_start": 396, + "offset_end": 402 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "related", + "attributes": [ + [ + "type", + "multipart/alternative" + ], + [ + "boundary", + "=====================_715157131==_.REL" + ] + ] + } + }, + "offset_field": 402, + "offset_start": 415, + "offset_end": 520 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 4, + 5 + ] + }, + "offset_header": 0, + "offset_body": 522, + "offset_end": 7395 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "=====================_715157141==_.ALT" + ] + ] + } + }, + "offset_field": 564, + "offset_start": 577, + "offset_end": 654 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3 + ] + }, + "offset_header": 564, + "offset_body": 656, + "offset_end": 3051 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 698, + "offset_start": 711, + "offset_end": 746 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 746, + "offset_start": 772, + "offset_end": 791 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "blueball.png\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\nredball.png" + }, + "offset_header": 698, + "offset_body": 793, + "offset_end": 1629 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 1673, + "offset_start": 1686, + "offset_end": 1720 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 1720, + "offset_start": 1746, + "offset_end": 1765 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\n\"blueball.png\"
\n
\nDie Hasen und die\nFrösche
\n
\n
Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben."
\n
\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.
\n
\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir."
\n
\n\"redball.png\"
\n" + }, + "offset_header": 1673, + "offset_body": 1767, + "offset_end": 3005 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 3095, + "offset_start": 3108, + "offset_end": 3141 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.0" + }, + "offset_field": 3141, + "offset_start": 3152, + "offset_end": 3207 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 3207, + "offset_start": 3233, + "offset_end": 3242 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 3242, + "offset_start": 3262, + "offset_end": 3296 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 3095, + "offset_body": 3298, + "offset_end": 5112 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "redball.png" + ] + ] + } + }, + "offset_field": 5156, + "offset_start": 5169, + "offset_end": 5201 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "4.2.0.58.20000519003143.00a8d550@pop.example.com.1" + }, + "offset_field": 5201, + "offset_start": 5212, + "offset_end": 5267 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 5267, + "offset_start": 5293, + "offset_end": 5302 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "redball.png" + ] + ] + } + }, + "offset_field": 5302, + "offset_start": 5322, + "offset_end": 5355 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 5156, + "offset_body": 5357, + "offset_end": 7347 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/019.crlf.json b/tests/legacy/019.crlf.json new file mode 100644 index 0000000..45a7475 --- /dev/null +++ b/tests/legacy/019.crlf.json @@ -0,0 +1,3181 @@ +{ + "html_body": [ + 3 + ], + "text_body": [ + 2 + ], + "attachments": [ + 4, + 5 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "jblow@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 76 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Microsoft Outlook 00" + }, + "offset_field": 76, + "offset_start": 84, + "offset_end": 125 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 42, + "second": 10, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 125, + "offset_start": 130, + "offset_end": 164 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGGEKFCHAA.doug@example.com" + }, + "offset_field": 164, + "offset_start": 175, + "offset_end": 225 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 225, + "offset_start": 238, + "offset_end": 244 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "----=_NextPart_000_0008_01BFC037.FDD8EE90" + ] + ] + } + }, + "offset_field": 244, + "offset_start": 257, + "offset_end": 331 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 331, + "offset_start": 342, + "offset_end": 355 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 355, + "offset_start": 373, + "offset_end": 382 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 382, + "offset_start": 391, + "offset_end": 444 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 444, + "offset_start": 455, + "offset_end": 464 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 464, + "offset_start": 474, + "offset_end": 522 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 4, + 5 + ] + }, + "offset_header": 0, + "offset_body": 524, + "offset_end": 7242 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "----=_NextPart_001_0009_01BFC037.FDD8EE90" + ] + ] + } + }, + "offset_field": 617, + "offset_start": 630, + "offset_end": 710 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3 + ] + }, + "offset_header": 617, + "offset_body": 712, + "offset_end": 3039 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 759, + "offset_start": 772, + "offset_end": 809 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 809, + "offset_start": 835, + "offset_end": 854 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n" + }, + "offset_header": 759, + "offset_body": 856, + "offset_end": 1657 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 1704, + "offset_start": 1717, + "offset_end": 1753 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 1753, + "offset_start": 1779, + "offset_end": 1798 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\n\n\n\n\n

The Hare and the Tortoise
 
A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing:  \"Though you be swift as the wind, I will beat you in a \nrace.\"  The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal.  On the day appointed for the race the two started \ntogether.  The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course.  The Hare, lying down by \nthe wayside, fell fast asleep.  At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. 
 
Slow but steady wins the race.  \n
\n" + }, + "offset_header": 1704, + "offset_body": 1800, + "offset_end": 2990 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "greenball.png" + ] + ] + } + }, + "offset_field": 3086, + "offset_start": 3099, + "offset_end": 3135 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 3135, + "offset_start": 3161, + "offset_end": 3170 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "greenball.png" + ] + ] + } + }, + "offset_field": 3170, + "offset_start": 3190, + "offset_end": 3231 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 33, + 0, + 0, + 8, + 0, + 0, + 49, + 0, + 0, + 66, + 0, + 0, + 82, + 0, + 0, + 90, + 0, + 0, + 74, + 0, + 8, + 99, + 0, + 8, + 115, + 0, + 8, + 123, + 0, + 16, + 140, + 0, + 8, + 107, + 0, + 0, + 57, + 0, + 0, + 99, + 0, + 16, + 148, + 0, + 16, + 156, + 0, + 33, + 165, + 0, + 16, + 165, + 0, + 33, + 173, + 0, + 66, + 189, + 24, + 99, + 198, + 49, + 99, + 198, + 57, + 82, + 198, + 33, + 41, + 206, + 0, + 24, + 189, + 0, + 16, + 173, + 0, + 24, + 173, + 0, + 33, + 189, + 0, + 148, + 214, + 99, + 173, + 214, + 123, + 132, + 214, + 82, + 74, + 222, + 24, + 33, + 214, + 0, + 24, + 198, + 0, + 24, + 181, + 0, + 0, + 41, + 0, + 66, + 206, + 16, + 206, + 231, + 148, + 222, + 231, + 173, + 198, + 231, + 148, + 148, + 231, + 99, + 82, + 231, + 33, + 33, + 222, + 0, + 24, + 206, + 0, + 82, + 222, + 33, + 156, + 231, + 107, + 214, + 239, + 156, + 189, + 239, + 140, + 132, + 239, + 82, + 66, + 239, + 16, + 173, + 239, + 123, + 165, + 222, + 115, + 90, + 239, + 41, + 33, + 231, + 0, + 24, + 214, + 0, + 49, + 231, + 0, + 82, + 239, + 33, + 107, + 239, + 57, + 74, + 239, + 24, + 41, + 231, + 0, + 41, + 239, + 0, + 49, + 239, + 0, + 8, + 132, + 0, + 16, + 181, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 41, + 213, + 249, + 217, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 109, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 194, + 32, + 20, + 7, + 112, + 15, + 108, + 200, + 128, + 193, + 4, + 215, + 227, + 92, + 169, + 219, + 40, + 43, + 233, + 185, + 180, + 44, + 179, + 239, + 255, + 153, + 136, + 185, + 135, + 179, + 44, + 239, + 171, + 157, + 243, + 59, + 247, + 50, + 248, + 223, + 94, + 175, + 45, + 91, + 85, + 239, + 79, + 89, + 0, + 61, + 207, + 131, + 16, + 248, + 127, + 24, + 162, + 62, + 198, + 1, + 38, + 125, + 228, + 129, + 223, + 104, + 17, + 166, + 44, + 228, + 156, + 135, + 34, + 32, + 200, + 235, + 182, + 218, + 104, + 16, + 74, + 53, + 28, + 14, + 227, + 88, + 114, + 129, + 163, + 46, + 34, + 202, + 213, + 193, + 225, + 209, + 241, + 201, + 105, + 50, + 138, + 57, + 195, + 8, + 182, + 6, + 49, + 79, + 207, + 78, + 206, + 199, + 227, + 201, + 52, + 203, + 11, + 197, + 5, + 209, + 205, + 153, + 54, + 98, + 170, + 184, + 152, + 92, + 206, + 174, + 174, + 111, + 230, + 38, + 73, + 85, + 24, + 68, + 94, + 125, + 25, + 224, + 218, + 178, + 219, + 187, + 251, + 217, + 195, + 227, + 83, + 102, + 146, + 34, + 118, + 141, + 205, + 137, + 222, + 64, + 22, + 103, + 211, + 235, + 231, + 151, + 199, + 215, + 197, + 210, + 153, + 27, + 138, + 81, + 53, + 212, + 106, + 161, + 242, + 236, + 237, + 125, + 181, + 250, + 248, + 52, + 89, + 94, + 255, + 13, + 216, + 14, + 181, + 145, + 80, + 137, + 89, + 172, + 191, + 214, + 243, + 165, + 201, + 147, + 34, + 85, + 27, + 209, + 26, + 18, + 50, + 49, + 217, + 124, + 153, + 153, + 146, + 70, + 138, + 135, + 148, + 104, + 191, + 182, + 1, + 143, + 19, + 99, + 202, + 38, + 71, + 169, + 228, + 44, + 168, + 110, + 239, + 76, + 227, + 80, + 165, + 73, + 94, + 202, + 119, + 170, + 228, + 182, + 13, + 84, + 137, + 88, + 216, + 119, + 207, + 50, + 74, + 11, + 39, + 177, + 35, + 70, + 113, + 4, + 253, + 218, + 124, + 77, + 4, + 151, + 42, + 142, + 149, + 146, + 114, + 195, + 202, + 247, + 4, + 77, + 146, + 22, + 34, + 66, + 203, + 16, + 56, + 223, + 132, + 130, + 146, + 14, + 185, + 70, + 23, + 94, + 64, + 25, + 99, + 66, + 208, + 160, + 223, + 210, + 214, + 172, + 15, + 116, + 68, + 48, + 198, + 212, + 69, + 171, + 97, + 67, + 182, + 222, + 19, + 0, + 53, + 66, + 145, + 70, + 94, + 181, + 19, + 157, + 189, + 113, + 31, + 190, + 15, + 97, + 185, + 44, + 173, + 52, + 217, + 218, + 255, + 170, + 183, + 31, + 187, + 219, + 180, + 87, + 118, + 241, + 159, + 245, + 221, + 133, + 31, + 205, + 97, + 231, + 141, + 210, + 8, + 44, + 44, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 3086, + "offset_body": 3233, + "offset_end": 5011 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "redball.png" + ] + ] + } + }, + "offset_field": 5058, + "offset_start": 5071, + "offset_end": 5105 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 5105, + "offset_start": 5131, + "offset_end": 5140 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "redball.png" + ] + ] + } + }, + "offset_field": 5140, + "offset_start": 5160, + "offset_end": 5199 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 5058, + "offset_body": 5201, + "offset_end": 7193 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/020.crlf.json b/tests/legacy/020.crlf.json new file mode 100644 index 0000000..29495aa --- /dev/null +++ b/tests/legacy/020.crlf.json @@ -0,0 +1,190 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "J�rgen Schm�rgen", + "address": "schmuergen@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 89 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)" + }, + "offset_field": 89, + "offset_start": 97, + "offset_end": 148 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 8, + "second": 29, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 148, + "offset_start": 153, + "offset_end": 187 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGIEKBCHAA.doug@example.com" + }, + "offset_field": 187, + "offset_start": 198, + "offset_end": 248 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 248, + "offset_start": 261, + "offset_end": 267 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 267, + "offset_start": 280, + "offset_end": 317 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "8bit" + }, + "offset_field": 317, + "offset_start": 343, + "offset_end": 350 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 350, + "offset_start": 361, + "offset_end": 374 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 374, + "offset_start": 392, + "offset_end": 401 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 401, + "offset_start": 410, + "offset_end": 463 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 463, + "offset_start": 474, + "offset_end": 483 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 483, + "offset_start": 493, + "offset_end": 541 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod\r\nselbst. Auf, laßt uns ein für allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\r\nallein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte\r\neine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\r\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch unglücklicher sein müssen als wir.\"\r\n\r\n" + }, + "offset_header": 0, + "offset_body": 543, + "offset_end": 1295 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/021.crlf.json b/tests/legacy/021.crlf.json new file mode 100644 index 0000000..cfd5734 --- /dev/null +++ b/tests/legacy/021.crlf.json @@ -0,0 +1,4595 @@ +{ + "html_body": [ + 4 + ], + "text_body": [ + 3 + ], + "attachments": [ + 5, + 6, + 7 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "jblow@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 76 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Microsoft Outlook 00" + }, + "offset_field": 76, + "offset_start": 84, + "offset_end": 125 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 47, + "second": 24, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 125, + "offset_start": 130, + "offset_end": 164 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGOEKFCHAA.doug@example.com" + }, + "offset_field": 164, + "offset_start": 175, + "offset_end": 225 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 225, + "offset_start": 238, + "offset_end": 244 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "----=_NextPart_000_0010_01BFC038.B91BC650" + ] + ] + } + }, + "offset_field": 244, + "offset_start": 257, + "offset_end": 331 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 331, + "offset_start": 342, + "offset_end": 355 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 355, + "offset_start": 373, + "offset_end": 382 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 382, + "offset_start": 391, + "offset_end": 444 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 444, + "offset_start": 455, + "offset_end": 464 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 464, + "offset_start": 474, + "offset_end": 522 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 6, + 7 + ] + }, + "offset_header": 0, + "offset_body": 524, + "offset_end": 9627 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "related", + "attributes": [ + [ + "boundary", + "----=_NextPart_001_0011_01BFC038.B91BC650" + ] + ] + } + }, + "offset_field": 617, + "offset_start": 630, + "offset_end": 706 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 5 + ] + }, + "offset_header": 617, + "offset_body": 708, + "offset_end": 5424 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "----=_NextPart_002_0012_01BFC038.B91BC650" + ] + ] + } + }, + "offset_field": 755, + "offset_start": 768, + "offset_end": 848 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 3, + 4 + ] + }, + "offset_header": 755, + "offset_body": 850, + "offset_end": 3388 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 897, + "offset_start": 910, + "offset_end": 947 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 947, + "offset_start": 973, + "offset_end": 992 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\n\nThe Hare and the Tortoise \n \nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \n \nSlow but steady wins the race. \n\n\n" + }, + "offset_header": 897, + "offset_body": 994, + "offset_end": 1799 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 1846, + "offset_start": 1859, + "offset_end": 1895 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 1895, + "offset_start": 1921, + "offset_end": 1940 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\n\n\n\n\n
\"blue
\n

The Hare and the Tortoise
 
A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing:  \"Though you be swift as the wind, I will beat you in a \nrace.\"  The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal.  On the day appointed for the race the two started \ntogether.  The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course.  The Hare, lying down by \nthe wayside, fell fast asleep.  At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue. 
 
Slow but steady wins the race.  \n
\n

 
\n" + }, + "offset_header": 1846, + "offset_body": 1942, + "offset_end": 3339 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 3435, + "offset_start": 3448, + "offset_end": 3483 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 3483, + "offset_start": 3509, + "offset_end": 3518 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "938014623@17052000-0f9b" + }, + "offset_field": 3518, + "offset_start": 3529, + "offset_end": 3557 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 3435, + "offset_body": 3559, + "offset_end": 5375 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "greenball.png" + ] + ] + } + }, + "offset_field": 5471, + "offset_start": 5484, + "offset_end": 5520 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 5520, + "offset_start": 5546, + "offset_end": 5555 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "greenball.png" + ] + ] + } + }, + "offset_field": 5555, + "offset_start": 5575, + "offset_end": 5616 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 33, + 0, + 0, + 8, + 0, + 0, + 49, + 0, + 0, + 66, + 0, + 0, + 82, + 0, + 0, + 90, + 0, + 0, + 74, + 0, + 8, + 99, + 0, + 8, + 115, + 0, + 8, + 123, + 0, + 16, + 140, + 0, + 8, + 107, + 0, + 0, + 57, + 0, + 0, + 99, + 0, + 16, + 148, + 0, + 16, + 156, + 0, + 33, + 165, + 0, + 16, + 165, + 0, + 33, + 173, + 0, + 66, + 189, + 24, + 99, + 198, + 49, + 99, + 198, + 57, + 82, + 198, + 33, + 41, + 206, + 0, + 24, + 189, + 0, + 16, + 173, + 0, + 24, + 173, + 0, + 33, + 189, + 0, + 148, + 214, + 99, + 173, + 214, + 123, + 132, + 214, + 82, + 74, + 222, + 24, + 33, + 214, + 0, + 24, + 198, + 0, + 24, + 181, + 0, + 0, + 41, + 0, + 66, + 206, + 16, + 206, + 231, + 148, + 222, + 231, + 173, + 198, + 231, + 148, + 148, + 231, + 99, + 82, + 231, + 33, + 33, + 222, + 0, + 24, + 206, + 0, + 82, + 222, + 33, + 156, + 231, + 107, + 214, + 239, + 156, + 189, + 239, + 140, + 132, + 239, + 82, + 66, + 239, + 16, + 173, + 239, + 123, + 165, + 222, + 115, + 90, + 239, + 41, + 33, + 231, + 0, + 24, + 214, + 0, + 49, + 231, + 0, + 82, + 239, + 33, + 107, + 239, + 57, + 74, + 239, + 24, + 41, + 231, + 0, + 41, + 239, + 0, + 49, + 239, + 0, + 8, + 132, + 0, + 16, + 181, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 41, + 213, + 249, + 217, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 109, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 194, + 32, + 20, + 7, + 112, + 15, + 108, + 200, + 128, + 193, + 4, + 215, + 227, + 92, + 169, + 219, + 40, + 43, + 233, + 185, + 180, + 44, + 179, + 239, + 255, + 153, + 136, + 185, + 135, + 179, + 44, + 239, + 171, + 157, + 243, + 59, + 247, + 50, + 248, + 223, + 94, + 175, + 45, + 91, + 85, + 239, + 79, + 89, + 0, + 61, + 207, + 131, + 16, + 248, + 127, + 24, + 162, + 62, + 198, + 1, + 38, + 125, + 228, + 129, + 223, + 104, + 17, + 166, + 44, + 228, + 156, + 135, + 34, + 32, + 200, + 235, + 182, + 218, + 104, + 16, + 74, + 53, + 28, + 14, + 227, + 88, + 114, + 129, + 163, + 46, + 34, + 202, + 213, + 193, + 225, + 209, + 241, + 201, + 105, + 50, + 138, + 57, + 195, + 8, + 182, + 6, + 49, + 79, + 207, + 78, + 206, + 199, + 227, + 201, + 52, + 203, + 11, + 197, + 5, + 209, + 205, + 153, + 54, + 98, + 170, + 184, + 152, + 92, + 206, + 174, + 174, + 111, + 230, + 38, + 73, + 85, + 24, + 68, + 94, + 125, + 25, + 224, + 218, + 178, + 219, + 187, + 251, + 217, + 195, + 227, + 83, + 102, + 146, + 34, + 118, + 141, + 205, + 137, + 222, + 64, + 22, + 103, + 211, + 235, + 231, + 151, + 199, + 215, + 197, + 210, + 153, + 27, + 138, + 81, + 53, + 212, + 106, + 161, + 242, + 236, + 237, + 125, + 181, + 250, + 248, + 52, + 89, + 94, + 255, + 13, + 216, + 14, + 181, + 145, + 80, + 137, + 89, + 172, + 191, + 214, + 243, + 165, + 201, + 147, + 34, + 85, + 27, + 209, + 26, + 18, + 50, + 49, + 217, + 124, + 153, + 153, + 146, + 70, + 138, + 135, + 148, + 104, + 191, + 182, + 1, + 143, + 19, + 99, + 202, + 38, + 71, + 169, + 228, + 44, + 168, + 110, + 239, + 76, + 227, + 80, + 165, + 73, + 94, + 202, + 119, + 170, + 228, + 182, + 13, + 84, + 137, + 88, + 216, + 119, + 207, + 50, + 74, + 11, + 39, + 177, + 35, + 70, + 113, + 4, + 253, + 218, + 124, + 77, + 4, + 151, + 42, + 142, + 149, + 146, + 114, + 195, + 202, + 247, + 4, + 77, + 146, + 22, + 34, + 66, + 203, + 16, + 56, + 223, + 132, + 130, + 146, + 14, + 185, + 70, + 23, + 94, + 64, + 25, + 99, + 66, + 208, + 160, + 223, + 210, + 214, + 172, + 15, + 116, + 68, + 48, + 198, + 212, + 69, + 171, + 97, + 67, + 182, + 222, + 19, + 0, + 53, + 66, + 145, + 70, + 94, + 181, + 19, + 157, + 189, + 113, + 31, + 190, + 15, + 97, + 185, + 44, + 173, + 52, + 217, + 218, + 255, + 170, + 183, + 31, + 187, + 219, + 180, + 87, + 118, + 241, + 159, + 245, + 221, + 133, + 31, + 205, + 97, + 231, + 141, + 210, + 8, + 44, + 44, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 5471, + "offset_body": 5618, + "offset_end": 7396 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "redball.png" + ] + ] + } + }, + "offset_field": 7443, + "offset_start": 7456, + "offset_end": 7490 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 7490, + "offset_start": 7516, + "offset_end": 7525 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "redball.png" + ] + ] + } + }, + "offset_field": 7525, + "offset_start": 7545, + "offset_end": 7584 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 7443, + "offset_body": 7586, + "offset_end": 9578 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/022.crlf.json b/tests/legacy/022.crlf.json new file mode 100644 index 0000000..6d8e26e --- /dev/null +++ b/tests/legacy/022.crlf.json @@ -0,0 +1,190 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "J�rgen Schm�rgen", + "address": "schmuergen@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 89 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)" + }, + "offset_field": 89, + "offset_start": 97, + "offset_end": 148 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 11, + "second": 50, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 148, + "offset_start": 153, + "offset_end": 187 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGAEKCCHAA.doug@example.com" + }, + "offset_field": 187, + "offset_start": 198, + "offset_end": 248 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 248, + "offset_start": 261, + "offset_end": 267 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 267, + "offset_start": 280, + "offset_end": 317 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 317, + "offset_start": 343, + "offset_end": 352 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 352, + "offset_start": 363, + "offset_end": 376 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 376, + "offset_start": 394, + "offset_end": 403 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 403, + "offset_start": 412, + "offset_end": 465 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 465, + "offset_start": 476, + "offset_end": 485 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 485, + "offset_start": 495, + "offset_end": 543 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\r\n\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\n" + }, + "offset_header": 0, + "offset_body": 545, + "offset_end": 1571 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/023.crlf.json b/tests/legacy/023.crlf.json new file mode 100644 index 0000000..d84ce56 --- /dev/null +++ b/tests/legacy/023.crlf.json @@ -0,0 +1,1698 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2, + 3, + 4 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519005505.00a853a0@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 0, + "minute": 56, + "second": 13, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 170, + "offset_start": 175, + "offset_end": 209 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Jürgen Schmürgen", + "address": "jschmuergen@example.com" + } + }, + "offset_field": 209, + "offset_start": 212, + "offset_end": 295 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 295, + "offset_start": 300, + "offset_end": 337 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 337, + "offset_start": 345, + "offset_end": 390 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 390, + "offset_start": 403, + "offset_end": 409 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "=====================_716541962==_" + ] + ] + } + }, + "offset_field": 409, + "offset_start": 422, + "offset_end": 489 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3, + 4 + ] + }, + "offset_header": 0, + "offset_body": 491, + "offset_end": 5437 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 529, + "offset_start": 542, + "offset_end": 577 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 577, + "offset_start": 603, + "offset_end": 622 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n" + }, + "offset_header": 529, + "offset_body": 624, + "offset_end": 1433 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 1473, + "offset_start": 1486, + "offset_end": 1519 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 1519, + "offset_start": 1545, + "offset_end": 1554 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 1554, + "offset_start": 1574, + "offset_end": 1612 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 1473, + "offset_body": 1614, + "offset_end": 3428 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 3468, + "offset_start": 3481, + "offset_end": 3514 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "farmerandstork.txt" + ] + ] + } + }, + "offset_field": 3514, + "offset_start": 3534, + "offset_end": 3578 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n" + }, + "offset_header": 3468, + "offset_body": 3580, + "offset_end": 4384 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 4424, + "offset_start": 4437, + "offset_end": 4472 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 4472, + "offset_start": 4498, + "offset_end": 4517 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "HasenundFr�sche.txt" + ] + ] + } + }, + "offset_field": 4517, + "offset_start": 4537, + "offset_end": 4582 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n" + }, + "offset_header": 4424, + "offset_body": 4584, + "offset_end": 5393 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/024.crlf.json b/tests/legacy/024.crlf.json new file mode 100644 index 0000000..57bc3ed --- /dev/null +++ b/tests/legacy/024.crlf.json @@ -0,0 +1,3136 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2, + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 2 (High)\r\n" + }, + "offset_field": 170, + "offset_start": 181, + "offset_end": 192 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 0, + "minute": 37, + "second": 39, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 192, + "offset_start": 197, + "offset_end": 231 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 231, + "offset_start": 234, + "offset_end": 288 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 288, + "offset_start": 293, + "offset_end": 330 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 330, + "offset_start": 338, + "offset_end": 383 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 383, + "offset_start": 396, + "offset_end": 402 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "related", + "attributes": [ + [ + "type", + "text/html" + ], + [ + "boundary", + "=====================_715429112==_.REL" + ] + ] + } + }, + "offset_field": 402, + "offset_start": 415, + "offset_end": 508 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3 + ] + }, + "offset_header": 0, + "offset_body": 510, + "offset_end": 6231 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 552, + "offset_start": 565, + "offset_end": 599 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 599, + "offset_start": 625, + "offset_end": 644 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\n\"2aa48eb6.png\"
\n
\nDie Hasen und die\nFrösche
\n
\n
Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben."
\n
\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.
\n
\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir."
\n
\n\"2aa48ec0.png\"
\n" + }, + "offset_header": 552, + "offset_body": 646, + "offset_end": 1885 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "2aa48eb6.png" + ] + ] + } + }, + "offset_field": 1929, + "offset_start": 1942, + "offset_end": 1975 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.2" + }, + "offset_field": 1975, + "offset_start": 1986, + "offset_end": 2041 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 2041, + "offset_start": 2067, + "offset_end": 2076 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "2aa48eb6.png" + ] + ] + } + }, + "offset_field": 2076, + "offset_start": 2096, + "offset_end": 2130 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 1929, + "offset_body": 2132, + "offset_end": 3946 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "2aa48ec0.png" + ] + ] + } + }, + "offset_field": 3990, + "offset_start": 4003, + "offset_end": 4036 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "4.2.0.58.20000519003735.00a8d7e0@pop.example.com.3" + }, + "offset_field": 4036, + "offset_start": 4047, + "offset_end": 4102 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 4102, + "offset_start": 4128, + "offset_end": 4137 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "2aa48ec0.png" + ] + ] + } + }, + "offset_field": 4137, + "offset_start": 4157, + "offset_end": 4191 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 3990, + "offset_body": 4193, + "offset_end": 6183 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/025.crlf.json b/tests/legacy/025.crlf.json new file mode 100644 index 0000000..43ee6f3 --- /dev/null +++ b/tests/legacy/025.crlf.json @@ -0,0 +1,5922 @@ +{ + "html_body": [ + 2 + ], + "text_body": [ + 2 + ], + "attachments": [ + 3, + 4, + 5, + 6 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519003809.00a85140@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 2 (High)\r\n" + }, + "offset_field": 170, + "offset_start": 181, + "offset_end": 192 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 0, + "minute": 38, + "second": 13, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 192, + "offset_start": 197, + "offset_end": 231 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 231, + "offset_start": 234, + "offset_end": 288 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 288, + "offset_start": 293, + "offset_end": 330 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 330, + "offset_start": 338, + "offset_end": 383 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 383, + "offset_start": 396, + "offset_end": 402 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "=====================_715462801==_" + ] + ] + } + }, + "offset_field": 402, + "offset_start": 415, + "offset_end": 482 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 5, + 6 + ] + }, + "offset_header": 0, + "offset_body": 484, + "offset_end": 10338 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "related", + "attributes": [ + [ + "type", + "text/html" + ], + [ + "boundary", + "=====================_715462801==_.REL" + ] + ] + } + }, + "offset_field": 522, + "offset_start": 535, + "offset_end": 628 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3, + 4 + ] + }, + "offset_header": 522, + "offset_body": 630, + "offset_end": 6340 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 672, + "offset_start": 685, + "offset_end": 719 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 719, + "offset_start": 745, + "offset_end": 764 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\nDie Hasen und die\nFrösche
\n
\n
Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben."
\n
\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.
\n
\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir."
\n
\n
\"2aa51367.png\"\"2aa51371.png\"\n" + }, + "offset_header": 672, + "offset_body": 766, + "offset_end": 1996 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "2aa51367.png" + ] + ] + } + }, + "offset_field": 2040, + "offset_start": 2053, + "offset_end": 2086 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.2" + }, + "offset_field": 2086, + "offset_start": 2097, + "offset_end": 2152 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 2152, + "offset_start": 2178, + "offset_end": 2187 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "2aa51367.png" + ] + ] + } + }, + "offset_field": 2187, + "offset_start": 2207, + "offset_end": 2241 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 2040, + "offset_body": 2243, + "offset_end": 4057 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "2aa51371.png" + ] + ] + } + }, + "offset_field": 4101, + "offset_start": 4114, + "offset_end": 4147 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "4.2.0.58.20000519003809.00a85140@pop.example.com.3" + }, + "offset_field": 4147, + "offset_start": 4158, + "offset_end": 4213 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 4213, + "offset_start": 4239, + "offset_end": 4248 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "2aa51371.png" + ] + ] + } + }, + "offset_field": 4248, + "offset_start": 4268, + "offset_end": 4302 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 4101, + "offset_body": 4304, + "offset_end": 6294 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 6380, + "offset_start": 6393, + "offset_end": 6426 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 6426, + "offset_start": 6452, + "offset_end": 6461 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 6461, + "offset_start": 6481, + "offset_end": 6519 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 6380, + "offset_body": 6521, + "offset_end": 8335 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "greenball.png" + ] + ] + } + }, + "offset_field": 8375, + "offset_start": 8388, + "offset_end": 8422 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 8422, + "offset_start": 8448, + "offset_end": 8457 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "greenball.png" + ] + ] + } + }, + "offset_field": 8457, + "offset_start": 8477, + "offset_end": 8516 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 33, + 0, + 0, + 8, + 0, + 0, + 49, + 0, + 0, + 66, + 0, + 0, + 82, + 0, + 0, + 90, + 0, + 0, + 74, + 0, + 8, + 99, + 0, + 8, + 115, + 0, + 8, + 123, + 0, + 16, + 140, + 0, + 8, + 107, + 0, + 0, + 57, + 0, + 0, + 99, + 0, + 16, + 148, + 0, + 16, + 156, + 0, + 33, + 165, + 0, + 16, + 165, + 0, + 33, + 173, + 0, + 66, + 189, + 24, + 99, + 198, + 49, + 99, + 198, + 57, + 82, + 198, + 33, + 41, + 206, + 0, + 24, + 189, + 0, + 16, + 173, + 0, + 24, + 173, + 0, + 33, + 189, + 0, + 148, + 214, + 99, + 173, + 214, + 123, + 132, + 214, + 82, + 74, + 222, + 24, + 33, + 214, + 0, + 24, + 198, + 0, + 24, + 181, + 0, + 0, + 41, + 0, + 66, + 206, + 16, + 206, + 231, + 148, + 222, + 231, + 173, + 198, + 231, + 148, + 148, + 231, + 99, + 82, + 231, + 33, + 33, + 222, + 0, + 24, + 206, + 0, + 82, + 222, + 33, + 156, + 231, + 107, + 214, + 239, + 156, + 189, + 239, + 140, + 132, + 239, + 82, + 66, + 239, + 16, + 173, + 239, + 123, + 165, + 222, + 115, + 90, + 239, + 41, + 33, + 231, + 0, + 24, + 214, + 0, + 49, + 231, + 0, + 82, + 239, + 33, + 107, + 239, + 57, + 74, + 239, + 24, + 41, + 231, + 0, + 41, + 239, + 0, + 49, + 239, + 0, + 8, + 132, + 0, + 16, + 181, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 41, + 213, + 249, + 217, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 109, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 194, + 32, + 20, + 7, + 112, + 15, + 108, + 200, + 128, + 193, + 4, + 215, + 227, + 92, + 169, + 219, + 40, + 43, + 233, + 185, + 180, + 44, + 179, + 239, + 255, + 153, + 136, + 185, + 135, + 179, + 44, + 239, + 171, + 157, + 243, + 59, + 247, + 50, + 248, + 223, + 94, + 175, + 45, + 91, + 85, + 239, + 79, + 89, + 0, + 61, + 207, + 131, + 16, + 248, + 127, + 24, + 162, + 62, + 198, + 1, + 38, + 125, + 228, + 129, + 223, + 104, + 17, + 166, + 44, + 228, + 156, + 135, + 34, + 32, + 200, + 235, + 182, + 218, + 104, + 16, + 74, + 53, + 28, + 14, + 227, + 88, + 114, + 129, + 163, + 46, + 34, + 202, + 213, + 193, + 225, + 209, + 241, + 201, + 105, + 50, + 138, + 57, + 195, + 8, + 182, + 6, + 49, + 79, + 207, + 78, + 206, + 199, + 227, + 201, + 52, + 203, + 11, + 197, + 5, + 209, + 205, + 153, + 54, + 98, + 170, + 184, + 152, + 92, + 206, + 174, + 174, + 111, + 230, + 38, + 73, + 85, + 24, + 68, + 94, + 125, + 25, + 224, + 218, + 178, + 219, + 187, + 251, + 217, + 195, + 227, + 83, + 102, + 146, + 34, + 118, + 141, + 205, + 137, + 222, + 64, + 22, + 103, + 211, + 235, + 231, + 151, + 199, + 215, + 197, + 210, + 153, + 27, + 138, + 81, + 53, + 212, + 106, + 161, + 242, + 236, + 237, + 125, + 181, + 250, + 248, + 52, + 89, + 94, + 255, + 13, + 216, + 14, + 181, + 145, + 80, + 137, + 89, + 172, + 191, + 214, + 243, + 165, + 201, + 147, + 34, + 85, + 27, + 209, + 26, + 18, + 50, + 49, + 217, + 124, + 153, + 153, + 146, + 70, + 138, + 135, + 148, + 104, + 191, + 182, + 1, + 143, + 19, + 99, + 202, + 38, + 71, + 169, + 228, + 44, + 168, + 110, + 239, + 76, + 227, + 80, + 165, + 73, + 94, + 202, + 119, + 170, + 228, + 182, + 13, + 84, + 137, + 88, + 216, + 119, + 207, + 50, + 74, + 11, + 39, + 177, + 35, + 70, + 113, + 4, + 253, + 218, + 124, + 77, + 4, + 151, + 42, + 142, + 149, + 146, + 114, + 195, + 202, + 247, + 4, + 77, + 146, + 22, + 34, + 66, + 203, + 16, + 56, + 223, + 132, + 130, + 146, + 14, + 185, + 70, + 23, + 94, + 64, + 25, + 99, + 66, + 208, + 160, + 223, + 210, + 214, + 172, + 15, + 116, + 68, + 48, + 198, + 212, + 69, + 171, + 97, + 67, + 182, + 222, + 19, + 0, + 53, + 66, + 145, + 70, + 94, + 181, + 19, + 157, + 189, + 113, + 31, + 190, + 15, + 97, + 185, + 44, + 173, + 52, + 217, + 218, + 255, + 170, + 183, + 31, + 187, + 219, + 180, + 87, + 118, + 241, + 159, + 245, + 221, + 133, + 31, + 205, + 97, + 231, + 141, + 210, + 8, + 44, + 44, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 8375, + "offset_body": 8518, + "offset_end": 10294 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/026.crlf.json b/tests/legacy/026.crlf.json new file mode 100644 index 0000000..97d891a --- /dev/null +++ b/tests/legacy/026.crlf.json @@ -0,0 +1,316 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2, + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519005818.00a86aa0@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 0, + "minute": 59, + "second": 31, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 170, + "offset_start": 175, + "offset_end": 209 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 209, + "offset_start": 212, + "offset_end": 266 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 266, + "offset_start": 271, + "offset_end": 308 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 308, + "offset_start": 316, + "offset_end": 361 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 361, + "offset_start": 374, + "offset_end": 380 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "=====================_716740438==_" + ] + ] + } + }, + "offset_field": 380, + "offset_start": 393, + "offset_end": 460 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3 + ] + }, + "offset_header": 0, + "offset_body": 462, + "offset_end": 3743 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 500, + "offset_start": 513, + "offset_end": 548 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 548, + "offset_start": 574, + "offset_end": 593 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n" + }, + "offset_header": 500, + "offset_body": 595, + "offset_end": 1404 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "name", + "HasenundFr�sche.txt" + ], + [ + "x-mac-type", + "54455854" + ], + [ + "x-mac-creator", + "74747874" + ] + ] + } + }, + "offset_field": 1444, + "offset_start": 1457, + "offset_end": 1549 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "x-uuencode" + }, + "offset_field": 1549, + "offset_start": 1575, + "offset_end": 1588 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "HasenundFr�sche.txt" + ] + ] + } + }, + "offset_field": 1588, + "offset_start": 1608, + "offset_end": 1653 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\r\nbegin 600 HasenundFr�sche.txt\r\nM1&EE($AA\n\n\n\n\n

The Hare and the Tortoise
 
A HARE \none day ridiculed the short feet and slow pace of the Tortoise, who replied, \nlaughing:  \"Though you be swift as the wind, I will beat you in a \nrace.\"  The Hare, believing her assertion to be simply impossible, assented \nto the proposal; and they agreed that the Fox should choose the course and fix \nthe goal.  On the day appointed for the race the two started \ntogether.  The Tortoise never for a moment stopped, but went on with a slow \nbut steady pace straight to the end of the course.  The Hare, lying down by \nthe wayside, fell fast asleep.  At last waking up, and moving as fast as he \ncould, he saw the Tortoise had reached the goal, and was comfortably dozing \nafter her fatigue.  
\n
 
\n
\"blue
 
Slow but steady wins \nthe race. 
\n
 
\n
\"red
\n" + }, + "offset_header": 1714, + "offset_body": 1810, + "offset_end": 3386 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 3482, + "offset_start": 3495, + "offset_end": 3530 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 3530, + "offset_start": 3556, + "offset_end": 3565 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "823504223@17052000-0f8d" + }, + "offset_field": 3565, + "offset_start": 3576, + "offset_end": 3604 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 3482, + "offset_body": 3606, + "offset_end": 5422 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "redball.png" + ] + ] + } + }, + "offset_field": 5469, + "offset_start": 5482, + "offset_end": 5516 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 5516, + "offset_start": 5542, + "offset_end": 5551 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "823504223@17052000-0f94" + }, + "offset_field": 5551, + "offset_start": 5562, + "offset_end": 5590 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 5469, + "offset_body": 5592, + "offset_end": 7584 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/029.crlf.json b/tests/legacy/029.crlf.json new file mode 100644 index 0000000..34a0c73 --- /dev/null +++ b/tests/legacy/029.crlf.json @@ -0,0 +1,168 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "392362D8.B650789F@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 26, + "second": 16, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "blow@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 240 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Netscape Communicator 4.7" + }, + "offset_field": 240, + "offset_start": 248, + "offset_end": 294 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 1 (Highest)\r\n" + }, + "offset_field": 294, + "offset_start": 305, + "offset_end": 319 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 319, + "offset_start": 332, + "offset_end": 363 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 363, + "offset_start": 389, + "offset_end": 396 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n" + }, + "offset_header": 0, + "offset_body": 398, + "offset_end": 1167 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/030.crlf.json b/tests/legacy/030.crlf.json new file mode 100644 index 0000000..d2bec78 --- /dev/null +++ b/tests/legacy/030.crlf.json @@ -0,0 +1,3016 @@ +{ + "html_body": [ + 1, + 2, + 3 + ], + "text_body": [ + 1, + 2, + 3 + ], + "attachments": [ + 2, + 3, + 4 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "3923635B.85C58444@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 28, + "second": 27, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "blow@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 240 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Netscape Communicator 4.7" + }, + "offset_field": 240, + "offset_start": 248, + "offset_end": 294 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "------------0BBC657DDC74A0B8454627FD" + ] + ] + } + }, + "offset_field": 294, + "offset_start": 307, + "offset_end": 376 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3, + 4 + ] + }, + "offset_header": 0, + "offset_body": 378, + "offset_end": 6294 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 464, + "offset_start": 477, + "offset_end": 508 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 508, + "offset_start": 534, + "offset_end": 541 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race." + }, + "offset_header": 464, + "offset_body": 543, + "offset_end": 1310 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 1352, + "offset_start": 1365, + "offset_end": 1400 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 1400, + "offset_start": 1426, + "offset_end": 1435 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 1435, + "offset_start": 1455, + "offset_end": 1491 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 1352, + "offset_body": 1493, + "offset_end": 3309 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "greenball.png" + ] + ] + } + }, + "offset_field": 3351, + "offset_start": 3364, + "offset_end": 3400 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 3400, + "offset_start": 3426, + "offset_end": 3435 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "greenball.png" + ] + ] + } + }, + "offset_field": 3435, + "offset_start": 3455, + "offset_end": 3492 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 33, + 0, + 0, + 8, + 0, + 0, + 49, + 0, + 0, + 66, + 0, + 0, + 82, + 0, + 0, + 90, + 0, + 0, + 74, + 0, + 8, + 99, + 0, + 8, + 115, + 0, + 8, + 123, + 0, + 16, + 140, + 0, + 8, + 107, + 0, + 0, + 57, + 0, + 0, + 99, + 0, + 16, + 148, + 0, + 16, + 156, + 0, + 33, + 165, + 0, + 16, + 165, + 0, + 33, + 173, + 0, + 66, + 189, + 24, + 99, + 198, + 49, + 99, + 198, + 57, + 82, + 198, + 33, + 41, + 206, + 0, + 24, + 189, + 0, + 16, + 173, + 0, + 24, + 173, + 0, + 33, + 189, + 0, + 148, + 214, + 99, + 173, + 214, + 123, + 132, + 214, + 82, + 74, + 222, + 24, + 33, + 214, + 0, + 24, + 198, + 0, + 24, + 181, + 0, + 0, + 41, + 0, + 66, + 206, + 16, + 206, + 231, + 148, + 222, + 231, + 173, + 198, + 231, + 148, + 148, + 231, + 99, + 82, + 231, + 33, + 33, + 222, + 0, + 24, + 206, + 0, + 82, + 222, + 33, + 156, + 231, + 107, + 214, + 239, + 156, + 189, + 239, + 140, + 132, + 239, + 82, + 66, + 239, + 16, + 173, + 239, + 123, + 165, + 222, + 115, + 90, + 239, + 41, + 33, + 231, + 0, + 24, + 214, + 0, + 49, + 231, + 0, + 82, + 239, + 33, + 107, + 239, + 57, + 74, + 239, + 24, + 41, + 231, + 0, + 41, + 239, + 0, + 49, + 239, + 0, + 8, + 132, + 0, + 16, + 181, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 41, + 213, + 249, + 217, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 109, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 194, + 32, + 20, + 7, + 112, + 15, + 108, + 200, + 128, + 193, + 4, + 215, + 227, + 92, + 169, + 219, + 40, + 43, + 233, + 185, + 180, + 44, + 179, + 239, + 255, + 153, + 136, + 185, + 135, + 179, + 44, + 239, + 171, + 157, + 243, + 59, + 247, + 50, + 248, + 223, + 94, + 175, + 45, + 91, + 85, + 239, + 79, + 89, + 0, + 61, + 207, + 131, + 16, + 248, + 127, + 24, + 162, + 62, + 198, + 1, + 38, + 125, + 228, + 129, + 223, + 104, + 17, + 166, + 44, + 228, + 156, + 135, + 34, + 32, + 200, + 235, + 182, + 218, + 104, + 16, + 74, + 53, + 28, + 14, + 227, + 88, + 114, + 129, + 163, + 46, + 34, + 202, + 213, + 193, + 225, + 209, + 241, + 201, + 105, + 50, + 138, + 57, + 195, + 8, + 182, + 6, + 49, + 79, + 207, + 78, + 206, + 199, + 227, + 201, + 52, + 203, + 11, + 197, + 5, + 209, + 205, + 153, + 54, + 98, + 170, + 184, + 152, + 92, + 206, + 174, + 174, + 111, + 230, + 38, + 73, + 85, + 24, + 68, + 94, + 125, + 25, + 224, + 218, + 178, + 219, + 187, + 251, + 217, + 195, + 227, + 83, + 102, + 146, + 34, + 118, + 141, + 205, + 137, + 222, + 64, + 22, + 103, + 211, + 235, + 231, + 151, + 199, + 215, + 197, + 210, + 153, + 27, + 138, + 81, + 53, + 212, + 106, + 161, + 242, + 236, + 237, + 125, + 181, + 250, + 248, + 52, + 89, + 94, + 255, + 13, + 216, + 14, + 181, + 145, + 80, + 137, + 89, + 172, + 191, + 214, + 243, + 165, + 201, + 147, + 34, + 85, + 27, + 209, + 26, + 18, + 50, + 49, + 217, + 124, + 153, + 153, + 146, + 70, + 138, + 135, + 148, + 104, + 191, + 182, + 1, + 143, + 19, + 99, + 202, + 38, + 71, + 169, + 228, + 44, + 168, + 110, + 239, + 76, + 227, + 80, + 165, + 73, + 94, + 202, + 119, + 170, + 228, + 182, + 13, + 84, + 137, + 88, + 216, + 119, + 207, + 50, + 74, + 11, + 39, + 177, + 35, + 70, + 113, + 4, + 253, + 218, + 124, + 77, + 4, + 151, + 42, + 142, + 149, + 146, + 114, + 195, + 202, + 247, + 4, + 77, + 146, + 22, + 34, + 66, + 203, + 16, + 56, + 223, + 132, + 130, + 146, + 14, + 185, + 70, + 23, + 94, + 64, + 25, + 99, + 66, + 208, + 160, + 223, + 210, + 214, + 172, + 15, + 116, + 68, + 48, + 198, + 212, + 69, + 171, + 97, + 67, + 182, + 222, + 19, + 0, + 53, + 66, + 145, + 70, + 94, + 181, + 19, + 157, + 189, + 113, + 31, + 190, + 15, + 97, + 185, + 44, + 173, + 52, + 217, + 218, + 255, + 170, + 183, + 31, + 187, + 219, + 180, + 87, + 118, + 241, + 159, + 245, + 221, + 133, + 31, + 205, + 97, + 231, + 141, + 210, + 8, + 44, + 44, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 3351, + "offset_body": 3494, + "offset_end": 5274 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ], + [ + "name", + "hareandtoroise.txt" + ] + ] + } + }, + "offset_field": 5316, + "offset_start": 5329, + "offset_end": 5389 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 5389, + "offset_start": 5415, + "offset_end": 5422 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "hareandtoroise.txt" + ] + ] + } + }, + "offset_field": 5422, + "offset_start": 5442, + "offset_end": 5484 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race. \r\n" + }, + "offset_header": 5316, + "offset_body": 5486, + "offset_end": 6248 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/031.crlf.json b/tests/legacy/031.crlf.json new file mode 100644 index 0000000..d5ad207 --- /dev/null +++ b/tests/legacy/031.crlf.json @@ -0,0 +1,3110 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2, + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 9, + "minute": 55, + "second": 48, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 45 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@penguin.example.com" + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 91 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "blow@example.com" + } + }, + "offset_field": 91, + "offset_start": 94, + "offset_end": 124 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from PINE" + }, + "offset_field": 124, + "offset_start": 132, + "offset_end": 157 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "Pine.LNX.4.21.0005190951410.8452-102000@penguin.example.com" + }, + "offset_field": 157, + "offset_start": 168, + "offset_end": 232 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 232, + "offset_start": 245, + "offset_end": 251 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "-1463757054-952513540-958744548=:8452" + ] + ] + } + }, + "offset_field": 251, + "offset_start": 264, + "offset_end": 332 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3 + ] + }, + "offset_header": 0, + "offset_body": 334, + "offset_end": 5171 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "US-ASCII" + ] + ] + } + }, + "offset_field": 595, + "offset_start": 608, + "offset_end": 639 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "This is a test message from PINE MUA.\r\n\r\n" + }, + "offset_header": 595, + "offset_body": 641, + "offset_end": 682 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "application", + "c_subtype": "octet-stream", + "attributes": [ + [ + "name", + "redball.png" + ] + ] + } + }, + "offset_field": 725, + "offset_start": 738, + "offset_end": 785 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "BASE64" + }, + "offset_field": 785, + "offset_start": 811, + "offset_end": 820 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "Pine.LNX.4.21.0005190955480.8452@penguin.example.com" + }, + "offset_field": 820, + "offset_start": 831, + "offset_end": 888 + }, + { + "name": { + "Rfc": "content_description" + }, + "value": { + "Text": "A PNG graphic file" + }, + "offset_field": 888, + "offset_start": 908, + "offset_end": 929 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "redball.png" + ] + ] + } + }, + "offset_field": 929, + "offset_start": 949, + "offset_end": 986 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 725, + "offset_body": 988, + "offset_end": 2992 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "application", + "c_subtype": "octet-stream", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 3035, + "offset_start": 3048, + "offset_end": 3096 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "BASE64" + }, + "offset_field": 3096, + "offset_start": 3122, + "offset_end": 3131 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "Pine.LNX.4.21.0005190955481.8452@penguin.example.com" + }, + "offset_field": 3131, + "offset_start": 3142, + "offset_end": 3199 + }, + { + "name": { + "Rfc": "content_description" + }, + "value": { + "Text": "A PNG graphic file" + }, + "offset_field": 3199, + "offset_start": 3219, + "offset_end": 3240 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 3240, + "offset_start": 3260, + "offset_end": 3298 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 3035, + "offset_body": 3300, + "offset_end": 5126 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/032.crlf.json b/tests/legacy/032.crlf.json new file mode 100644 index 0000000..fffc62c --- /dev/null +++ b/tests/legacy/032.crlf.json @@ -0,0 +1,3024 @@ +{ + "html_body": [ + 3, + 4, + 5 + ], + "text_body": [ + 2, + 4, + 5 + ], + "attachments": [ + 4, + 5 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "39235EAD.E48E2160@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 8, + "second": 29, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "blow@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 240 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Netscape Communicator 4.7" + }, + "offset_field": 240, + "offset_start": 248, + "offset_end": 294 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "------------C78F594988075E36AE03C243" + ] + ] + } + }, + "offset_field": 294, + "offset_start": 307, + "offset_end": 376 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 4, + 5 + ] + }, + "offset_header": 0, + "offset_body": 378, + "offset_end": 6610 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "------------D74AE2393FB01D1B284AE257" + ] + ] + } + }, + "offset_field": 464, + "offset_start": 477, + "offset_end": 552 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3 + ] + }, + "offset_header": 464, + "offset_body": 554, + "offset_end": 2600 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 596, + "offset_start": 609, + "offset_end": 642 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 642, + "offset_start": 668, + "offset_end": 687 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n" + }, + "offset_header": 596, + "offset_body": 689, + "offset_end": 1487 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 1529, + "offset_start": 1542, + "offset_end": 1572 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 1572, + "offset_start": 1598, + "offset_end": 1605 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\r\n\r\nDie Hasen und die Frösche\r\n

Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n

In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n

\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n
 \r\n
 \r\n" + }, + "offset_header": 1529, + "offset_body": 1607, + "offset_end": 2556 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "greenball.png" + ] + ] + } + }, + "offset_field": 2642, + "offset_start": 2655, + "offset_end": 2691 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 2691, + "offset_start": 2717, + "offset_end": 2726 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "greenball.png" + ] + ] + } + }, + "offset_field": 2726, + "offset_start": 2746, + "offset_end": 2783 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 33, + 0, + 0, + 8, + 0, + 0, + 49, + 0, + 0, + 66, + 0, + 0, + 82, + 0, + 0, + 90, + 0, + 0, + 74, + 0, + 8, + 99, + 0, + 8, + 115, + 0, + 8, + 123, + 0, + 16, + 140, + 0, + 8, + 107, + 0, + 0, + 57, + 0, + 0, + 99, + 0, + 16, + 148, + 0, + 16, + 156, + 0, + 33, + 165, + 0, + 16, + 165, + 0, + 33, + 173, + 0, + 66, + 189, + 24, + 99, + 198, + 49, + 99, + 198, + 57, + 82, + 198, + 33, + 41, + 206, + 0, + 24, + 189, + 0, + 16, + 173, + 0, + 24, + 173, + 0, + 33, + 189, + 0, + 148, + 214, + 99, + 173, + 214, + 123, + 132, + 214, + 82, + 74, + 222, + 24, + 33, + 214, + 0, + 24, + 198, + 0, + 24, + 181, + 0, + 0, + 41, + 0, + 66, + 206, + 16, + 206, + 231, + 148, + 222, + 231, + 173, + 198, + 231, + 148, + 148, + 231, + 99, + 82, + 231, + 33, + 33, + 222, + 0, + 24, + 206, + 0, + 82, + 222, + 33, + 156, + 231, + 107, + 214, + 239, + 156, + 189, + 239, + 140, + 132, + 239, + 82, + 66, + 239, + 16, + 173, + 239, + 123, + 165, + 222, + 115, + 90, + 239, + 41, + 33, + 231, + 0, + 24, + 214, + 0, + 49, + 231, + 0, + 82, + 239, + 33, + 107, + 239, + 57, + 74, + 239, + 24, + 41, + 231, + 0, + 41, + 239, + 0, + 49, + 239, + 0, + 8, + 132, + 0, + 16, + 181, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 41, + 213, + 249, + 217, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 109, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 194, + 32, + 20, + 7, + 112, + 15, + 108, + 200, + 128, + 193, + 4, + 215, + 227, + 92, + 169, + 219, + 40, + 43, + 233, + 185, + 180, + 44, + 179, + 239, + 255, + 153, + 136, + 185, + 135, + 179, + 44, + 239, + 171, + 157, + 243, + 59, + 247, + 50, + 248, + 223, + 94, + 175, + 45, + 91, + 85, + 239, + 79, + 89, + 0, + 61, + 207, + 131, + 16, + 248, + 127, + 24, + 162, + 62, + 198, + 1, + 38, + 125, + 228, + 129, + 223, + 104, + 17, + 166, + 44, + 228, + 156, + 135, + 34, + 32, + 200, + 235, + 182, + 218, + 104, + 16, + 74, + 53, + 28, + 14, + 227, + 88, + 114, + 129, + 163, + 46, + 34, + 202, + 213, + 193, + 225, + 209, + 241, + 201, + 105, + 50, + 138, + 57, + 195, + 8, + 182, + 6, + 49, + 79, + 207, + 78, + 206, + 199, + 227, + 201, + 52, + 203, + 11, + 197, + 5, + 209, + 205, + 153, + 54, + 98, + 170, + 184, + 152, + 92, + 206, + 174, + 174, + 111, + 230, + 38, + 73, + 85, + 24, + 68, + 94, + 125, + 25, + 224, + 218, + 178, + 219, + 187, + 251, + 217, + 195, + 227, + 83, + 102, + 146, + 34, + 118, + 141, + 205, + 137, + 222, + 64, + 22, + 103, + 211, + 235, + 231, + 151, + 199, + 215, + 197, + 210, + 153, + 27, + 138, + 81, + 53, + 212, + 106, + 161, + 242, + 236, + 237, + 125, + 181, + 250, + 248, + 52, + 89, + 94, + 255, + 13, + 216, + 14, + 181, + 145, + 80, + 137, + 89, + 172, + 191, + 214, + 243, + 165, + 201, + 147, + 34, + 85, + 27, + 209, + 26, + 18, + 50, + 49, + 217, + 124, + 153, + 153, + 146, + 70, + 138, + 135, + 148, + 104, + 191, + 182, + 1, + 143, + 19, + 99, + 202, + 38, + 71, + 169, + 228, + 44, + 168, + 110, + 239, + 76, + 227, + 80, + 165, + 73, + 94, + 202, + 119, + 170, + 228, + 182, + 13, + 84, + 137, + 88, + 216, + 119, + 207, + 50, + 74, + 11, + 39, + 177, + 35, + 70, + 113, + 4, + 253, + 218, + 124, + 77, + 4, + 151, + 42, + 142, + 149, + 146, + 114, + 195, + 202, + 247, + 4, + 77, + 146, + 22, + 34, + 66, + 203, + 16, + 56, + 223, + 132, + 130, + 146, + 14, + 185, + 70, + 23, + 94, + 64, + 25, + 99, + 66, + 208, + 160, + 223, + 210, + 214, + 172, + 15, + 116, + 68, + 48, + 198, + 212, + 69, + 171, + 97, + 67, + 182, + 222, + 19, + 0, + 53, + 66, + 145, + 70, + 94, + 181, + 19, + 157, + 189, + 113, + 31, + 190, + 15, + 97, + 185, + 44, + 173, + 52, + 217, + 218, + 255, + 170, + 183, + 31, + 187, + 219, + 180, + 87, + 118, + 241, + 159, + 245, + 221, + 133, + 31, + 205, + 97, + 231, + 141, + 210, + 8, + 44, + 44, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 2642, + "offset_body": 2785, + "offset_end": 4565 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 4607, + "offset_start": 4620, + "offset_end": 4655 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 4655, + "offset_start": 4681, + "offset_end": 4690 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 4690, + "offset_start": 4710, + "offset_end": 4746 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 4607, + "offset_body": 4748, + "offset_end": 6564 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/033.crlf.json b/tests/legacy/033.crlf.json new file mode 100644 index 0000000..80ca0e5 --- /dev/null +++ b/tests/legacy/033.crlf.json @@ -0,0 +1,168 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "392363E1.2AC47AB3@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 30, + "second": 41, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "blow@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 240 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Netscape Communicator 4.7" + }, + "offset_field": 240, + "offset_start": 248, + "offset_end": 294 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 5 (Lowest)\r\n" + }, + "offset_field": 294, + "offset_start": 305, + "offset_end": 318 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-8" + ] + ] + } + }, + "offset_field": 318, + "offset_start": 331, + "offset_end": 359 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 359, + "offset_start": 385, + "offset_end": 404 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Fr�sche\n\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der\nTod selbst. Auf, la�t uns ein f�r allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt\nerschreckte eine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs\nschnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\n" + }, + "offset_header": 0, + "offset_body": 406, + "offset_end": 1208 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/034.crlf.json b/tests/legacy/034.crlf.json new file mode 100644 index 0000000..2371fb6 --- /dev/null +++ b/tests/legacy/034.crlf.json @@ -0,0 +1,157 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "39236497.12FA2A89@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 33, + "second": 43, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz M+APw-ller", + "address": "mueller@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 253 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Fr+APY-sche" + }, + "offset_field": 253, + "offset_start": 261, + "offset_end": 293 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-7" + ] + ] + } + }, + "offset_field": 293, + "offset_start": 306, + "offset_end": 334 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 334, + "offset_start": 360, + "offset_end": 367 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Fr岣he\r\n\r\nDie Hasen klagten einst 롥r ihre miެiche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\r\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist 㱧er als der\r\nTod selbst. Auf, la޴ uns ein f밠allemal sterben.\" \r\n\r\nIn einem nahen Teich wollten sie sich nun ers㴦en; sie eilten ihm zu;\r\nallein das auޥrordentliche Get岥 und ihre wunderbare Gestalt\r\nerschreckte eine Menge Fr岣he, die am Ufer saޥn, so sehr, daݠsie aufs\r\nschnellste untertauchten. \r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers㴦en noch ein\r\nwenig aufschieben, denn auch uns f뱣hten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl뢫licher sein m벳en als wir.\"\r\n" + }, + "offset_header": 0, + "offset_body": 369, + "offset_end": 1158 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/035.crlf.json b/tests/legacy/035.crlf.json new file mode 100644 index 0000000..3a53a0a --- /dev/null +++ b/tests/legacy/035.crlf.json @@ -0,0 +1,6105 @@ +{ + "html_body": [ + 4, + 7, + 8 + ], + "text_body": [ + 2, + 7, + 8 + ], + "attachments": [ + 5, + 6, + 7, + 8 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "39235FC5.276CCE00@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 13, + "second": 9, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 266 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche (Netscape Messenger 4.7)" + }, + "offset_field": 266, + "offset_start": 274, + "offset_end": 346 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "------------A1E83A41894D3755390B838A" + ] + ] + } + }, + "offset_field": 346, + "offset_start": 359, + "offset_end": 428 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 7, + 8 + ] + }, + "offset_header": 0, + "offset_body": 430, + "offset_end": 11449 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "------------F03F94BA73D3B9E8C1B94D92" + ] + ] + } + }, + "offset_field": 516, + "offset_start": 529, + "offset_end": 604 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3 + ] + }, + "offset_header": 516, + "offset_body": 606, + "offset_end": 7265 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 648, + "offset_start": 661, + "offset_end": 694 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 694, + "offset_start": 720, + "offset_end": 739 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "[blue ball]\n\nDie Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n[Image]\n\n\n" + }, + "offset_header": 648, + "offset_body": 741, + "offset_end": 1565 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "related", + "attributes": [ + [ + "boundary", + "------------C02FA3D0A04E95F295FB25EB" + ] + ] + } + }, + "offset_field": 1607, + "offset_start": 1620, + "offset_end": 1691 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 4, + 5, + 6 + ] + }, + "offset_header": 1607, + "offset_body": 1693, + "offset_end": 7221 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 1735, + "offset_start": 1748, + "offset_end": 1778 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 1778, + "offset_start": 1804, + "offset_end": 1811 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\r\n\r\n\"blue\r\n

Die Hasen und die Frösche\r\n

Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n

In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n

\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n

\r\n
 \r\n
 \r\n" + }, + "offset_header": 1735, + "offset_body": 1813, + "offset_end": 2935 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": null + } + }, + "offset_field": 2977, + "offset_start": 2990, + "offset_end": 3002 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "part1.39235FC5.E71D8178@example.com" + }, + "offset_field": 3002, + "offset_start": 3013, + "offset_end": 3053 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 3053, + "offset_start": 3079, + "offset_end": 3088 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "C:TEMPnsmailEG.png" + ] + ] + } + }, + "offset_field": 3088, + "offset_start": 3108, + "offset_end": 3150 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 2977, + "offset_body": 3152, + "offset_end": 4968 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": null + } + }, + "offset_field": 5010, + "offset_start": 5023, + "offset_end": 5035 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "part2.39235FC5.E71D8178@example.com" + }, + "offset_field": 5035, + "offset_start": 5046, + "offset_end": 5086 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 5086, + "offset_start": 5112, + "offset_end": 5121 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "C:TEMPnsmail39.png" + ] + ] + } + }, + "offset_field": 5121, + "offset_start": 5141, + "offset_end": 5183 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 5010, + "offset_body": 5185, + "offset_end": 7177 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "redball.png" + ] + ] + } + }, + "offset_field": 7307, + "offset_start": 7320, + "offset_end": 7354 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 7354, + "offset_start": 7380, + "offset_end": 7389 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "redball.png" + ] + ] + } + }, + "offset_field": 7389, + "offset_start": 7409, + "offset_end": 7444 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 7307, + "offset_body": 7446, + "offset_end": 9438 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "greenball.png" + ] + ] + } + }, + "offset_field": 9480, + "offset_start": 9493, + "offset_end": 9529 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 9529, + "offset_start": 9555, + "offset_end": 9564 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "greenball.png" + ] + ] + } + }, + "offset_field": 9564, + "offset_start": 9584, + "offset_end": 9621 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 33, + 0, + 0, + 8, + 0, + 0, + 49, + 0, + 0, + 66, + 0, + 0, + 82, + 0, + 0, + 90, + 0, + 0, + 74, + 0, + 8, + 99, + 0, + 8, + 115, + 0, + 8, + 123, + 0, + 16, + 140, + 0, + 8, + 107, + 0, + 0, + 57, + 0, + 0, + 99, + 0, + 16, + 148, + 0, + 16, + 156, + 0, + 33, + 165, + 0, + 16, + 165, + 0, + 33, + 173, + 0, + 66, + 189, + 24, + 99, + 198, + 49, + 99, + 198, + 57, + 82, + 198, + 33, + 41, + 206, + 0, + 24, + 189, + 0, + 16, + 173, + 0, + 24, + 173, + 0, + 33, + 189, + 0, + 148, + 214, + 99, + 173, + 214, + 123, + 132, + 214, + 82, + 74, + 222, + 24, + 33, + 214, + 0, + 24, + 198, + 0, + 24, + 181, + 0, + 0, + 41, + 0, + 66, + 206, + 16, + 206, + 231, + 148, + 222, + 231, + 173, + 198, + 231, + 148, + 148, + 231, + 99, + 82, + 231, + 33, + 33, + 222, + 0, + 24, + 206, + 0, + 82, + 222, + 33, + 156, + 231, + 107, + 214, + 239, + 156, + 189, + 239, + 140, + 132, + 239, + 82, + 66, + 239, + 16, + 173, + 239, + 123, + 165, + 222, + 115, + 90, + 239, + 41, + 33, + 231, + 0, + 24, + 214, + 0, + 49, + 231, + 0, + 82, + 239, + 33, + 107, + 239, + 57, + 74, + 239, + 24, + 41, + 231, + 0, + 41, + 239, + 0, + 49, + 239, + 0, + 8, + 132, + 0, + 16, + 181, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 41, + 213, + 249, + 217, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 109, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 194, + 32, + 20, + 7, + 112, + 15, + 108, + 200, + 128, + 193, + 4, + 215, + 227, + 92, + 169, + 219, + 40, + 43, + 233, + 185, + 180, + 44, + 179, + 239, + 255, + 153, + 136, + 185, + 135, + 179, + 44, + 239, + 171, + 157, + 243, + 59, + 247, + 50, + 248, + 223, + 94, + 175, + 45, + 91, + 85, + 239, + 79, + 89, + 0, + 61, + 207, + 131, + 16, + 248, + 127, + 24, + 162, + 62, + 198, + 1, + 38, + 125, + 228, + 129, + 223, + 104, + 17, + 166, + 44, + 228, + 156, + 135, + 34, + 32, + 200, + 235, + 182, + 218, + 104, + 16, + 74, + 53, + 28, + 14, + 227, + 88, + 114, + 129, + 163, + 46, + 34, + 202, + 213, + 193, + 225, + 209, + 241, + 201, + 105, + 50, + 138, + 57, + 195, + 8, + 182, + 6, + 49, + 79, + 207, + 78, + 206, + 199, + 227, + 201, + 52, + 203, + 11, + 197, + 5, + 209, + 205, + 153, + 54, + 98, + 170, + 184, + 152, + 92, + 206, + 174, + 174, + 111, + 230, + 38, + 73, + 85, + 24, + 68, + 94, + 125, + 25, + 224, + 218, + 178, + 219, + 187, + 251, + 217, + 195, + 227, + 83, + 102, + 146, + 34, + 118, + 141, + 205, + 137, + 222, + 64, + 22, + 103, + 211, + 235, + 231, + 151, + 199, + 215, + 197, + 210, + 153, + 27, + 138, + 81, + 53, + 212, + 106, + 161, + 242, + 236, + 237, + 125, + 181, + 250, + 248, + 52, + 89, + 94, + 255, + 13, + 216, + 14, + 181, + 145, + 80, + 137, + 89, + 172, + 191, + 214, + 243, + 165, + 201, + 147, + 34, + 85, + 27, + 209, + 26, + 18, + 50, + 49, + 217, + 124, + 153, + 153, + 146, + 70, + 138, + 135, + 148, + 104, + 191, + 182, + 1, + 143, + 19, + 99, + 202, + 38, + 71, + 169, + 228, + 44, + 168, + 110, + 239, + 76, + 227, + 80, + 165, + 73, + 94, + 202, + 119, + 170, + 228, + 182, + 13, + 84, + 137, + 88, + 216, + 119, + 207, + 50, + 74, + 11, + 39, + 177, + 35, + 70, + 113, + 4, + 253, + 218, + 124, + 77, + 4, + 151, + 42, + 142, + 149, + 146, + 114, + 195, + 202, + 247, + 4, + 77, + 146, + 22, + 34, + 66, + 203, + 16, + 56, + 223, + 132, + 130, + 146, + 14, + 185, + 70, + 23, + 94, + 64, + 25, + 99, + 66, + 208, + 160, + 223, + 210, + 214, + 172, + 15, + 116, + 68, + 48, + 198, + 212, + 69, + 171, + 97, + 67, + 182, + 222, + 19, + 0, + 53, + 66, + 145, + 70, + 94, + 181, + 19, + 157, + 189, + 113, + 31, + 190, + 15, + 97, + 185, + 44, + 173, + 52, + 217, + 218, + 255, + 170, + 183, + 31, + 187, + 219, + 180, + 87, + 118, + 241, + 159, + 245, + 221, + 133, + 31, + 205, + 97, + 231, + 141, + 210, + 8, + 44, + 44, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 9480, + "offset_body": 9623, + "offset_end": 11403 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/036.crlf.json b/tests/legacy/036.crlf.json new file mode 100644 index 0000000..d2915ef --- /dev/null +++ b/tests/legacy/036.crlf.json @@ -0,0 +1,135 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 10, + "minute": 18, + "second": 3, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 45 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@penguin.example.com" + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 91 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Jürgen Schmürgen", + "address": "schmuergen@example.com" + } + }, + "offset_field": 91, + "offset_start": 94, + "offset_end": 159 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 159, + "offset_start": 167, + "offset_end": 214 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "Pine.LNX.4.21.0005191014500.8452-100000@penguin.example.com" + }, + "offset_field": 214, + "offset_start": 225, + "offset_end": 289 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 289, + "offset_start": 302, + "offset_end": 308 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 308, + "offset_start": 321, + "offset_end": 354 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "QUOTED-PRINTABLE" + }, + "offset_field": 354, + "offset_start": 380, + "offset_end": 399 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n\n" + }, + "offset_header": 0, + "offset_body": 401, + "offset_end": 1212 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/037.crlf.json b/tests/legacy/037.crlf.json new file mode 100644 index 0000000..11d4993 --- /dev/null +++ b/tests/legacy/037.crlf.json @@ -0,0 +1,1583 @@ +{ + "html_body": [ + 1, + 2 + ], + "text_body": [ + 1, + 2 + ], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "392366A7.21929EA7@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 42, + "second": 31, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "blow@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 240 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Netscape Communicator 4.7" + }, + "offset_field": 240, + "offset_start": 248, + "offset_end": 294 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "------------E7889DDF0F75D34163841C59" + ] + ] + } + }, + "offset_field": 294, + "offset_start": 307, + "offset_end": 376 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 378, + "offset_end": 2589 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 464, + "offset_start": 477, + "offset_end": 508 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 508, + "offset_start": 534, + "offset_end": 541 + } + ], + "is_encoding_problem": false, + "body": { + "Text": " " + }, + "offset_header": 464, + "offset_body": 543, + "offset_end": 544 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 586, + "offset_start": 599, + "offset_end": 634 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 634, + "offset_start": 660, + "offset_end": 669 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 669, + "offset_start": 689, + "offset_end": 725 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 586, + "offset_body": 727, + "offset_end": 2543 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/038.crlf.json b/tests/legacy/038.crlf.json new file mode 100644 index 0000000..729874c --- /dev/null +++ b/tests/legacy/038.crlf.json @@ -0,0 +1,157 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "3923625B.59F0C3AC@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 24, + "second": 11, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "blow@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 240 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Netscape Communicator 4.7" + }, + "offset_field": 240, + "offset_start": 248, + "offset_end": 294 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 294, + "offset_start": 307, + "offset_end": 338 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 338, + "offset_start": 364, + "offset_end": 371 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who replied, laughing: \"Though you be swift as the wind, I will beat you in a race.\" The Hare, believing her assertion to be simply impossible, assented to the proposal; and they agreed that the Fox should choose the course and fix the goal. On the day appointed for the race the two started together. The Tortoise never for a moment stopped, but went on with a slow but steady pace straight to the end of the course. The Hare, lying down by the wayside, fell fast asleep. At last waking up, and moving as fast as he could, he saw the Tortoise had reached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race.\r\n" + }, + "offset_header": 0, + "offset_body": 373, + "offset_end": 1133 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/039.crlf.json b/tests/legacy/039.crlf.json new file mode 100644 index 0000000..432edec --- /dev/null +++ b/tests/legacy/039.crlf.json @@ -0,0 +1,5901 @@ +{ + "html_body": [ + 2, + 5, + 6 + ], + "text_body": [ + 2, + 5, + 6 + ], + "attachments": [ + 3, + 4, + 5, + 6 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "39236103.FFE674FC@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 18, + "second": 27, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Jürgen Schmürgen", + "address": "schmuergen@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 277 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Netscape Communicator 4.7" + }, + "offset_field": 277, + "offset_start": 285, + "offset_end": 331 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "------------B7133A01A6B323BF00DBC9A7" + ] + ] + } + }, + "offset_field": 331, + "offset_start": 344, + "offset_end": 413 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 5, + 6 + ] + }, + "offset_header": 0, + "offset_body": 415, + "offset_end": 10137 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "related", + "attributes": [ + [ + "boundary", + "------------8E6A06810565BCAB5E1F7D97" + ] + ] + } + }, + "offset_field": 501, + "offset_start": 514, + "offset_end": 585 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3, + 4 + ] + }, + "offset_header": 501, + "offset_body": 587, + "offset_end": 6127 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 629, + "offset_start": 642, + "offset_end": 672 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 672, + "offset_start": 698, + "offset_end": 705 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\r\n\r\n\"blue\r\n

Die Hasen und die Frösche\r\n

Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n

In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n

\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n

\"red\r\n" + }, + "offset_header": 629, + "offset_body": 707, + "offset_end": 1841 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": null + } + }, + "offset_field": 1883, + "offset_start": 1896, + "offset_end": 1908 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "part1.39236103.1B697A54@example.com" + }, + "offset_field": 1908, + "offset_start": 1919, + "offset_end": 1959 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 1959, + "offset_start": 1985, + "offset_end": 1994 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "C:TEMPnsmailV0.png" + ] + ] + } + }, + "offset_field": 1994, + "offset_start": 2014, + "offset_end": 2056 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 1883, + "offset_body": 2058, + "offset_end": 3874 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": null + } + }, + "offset_field": 3916, + "offset_start": 3929, + "offset_end": 3941 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "part2.39236103.1B697A54@example.com" + }, + "offset_field": 3941, + "offset_start": 3952, + "offset_end": 3992 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 3992, + "offset_start": 4018, + "offset_end": 4027 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "C:TEMPnsmailNM.png" + ] + ] + } + }, + "offset_field": 4027, + "offset_start": 4047, + "offset_end": 4089 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 3916, + "offset_body": 4091, + "offset_end": 6083 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "greenball.png" + ] + ] + } + }, + "offset_field": 6169, + "offset_start": 6182, + "offset_end": 6218 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 6218, + "offset_start": 6244, + "offset_end": 6253 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "greenball.png" + ] + ] + } + }, + "offset_field": 6253, + "offset_start": 6273, + "offset_end": 6310 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 33, + 0, + 0, + 8, + 0, + 0, + 49, + 0, + 0, + 66, + 0, + 0, + 82, + 0, + 0, + 90, + 0, + 0, + 74, + 0, + 8, + 99, + 0, + 8, + 115, + 0, + 8, + 123, + 0, + 16, + 140, + 0, + 8, + 107, + 0, + 0, + 57, + 0, + 0, + 99, + 0, + 16, + 148, + 0, + 16, + 156, + 0, + 33, + 165, + 0, + 16, + 165, + 0, + 33, + 173, + 0, + 66, + 189, + 24, + 99, + 198, + 49, + 99, + 198, + 57, + 82, + 198, + 33, + 41, + 206, + 0, + 24, + 189, + 0, + 16, + 173, + 0, + 24, + 173, + 0, + 33, + 189, + 0, + 148, + 214, + 99, + 173, + 214, + 123, + 132, + 214, + 82, + 74, + 222, + 24, + 33, + 214, + 0, + 24, + 198, + 0, + 24, + 181, + 0, + 0, + 41, + 0, + 66, + 206, + 16, + 206, + 231, + 148, + 222, + 231, + 173, + 198, + 231, + 148, + 148, + 231, + 99, + 82, + 231, + 33, + 33, + 222, + 0, + 24, + 206, + 0, + 82, + 222, + 33, + 156, + 231, + 107, + 214, + 239, + 156, + 189, + 239, + 140, + 132, + 239, + 82, + 66, + 239, + 16, + 173, + 239, + 123, + 165, + 222, + 115, + 90, + 239, + 41, + 33, + 231, + 0, + 24, + 214, + 0, + 49, + 231, + 0, + 82, + 239, + 33, + 107, + 239, + 57, + 74, + 239, + 24, + 41, + 231, + 0, + 41, + 239, + 0, + 49, + 239, + 0, + 8, + 132, + 0, + 16, + 181, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 41, + 213, + 249, + 217, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 109, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 194, + 32, + 20, + 7, + 112, + 15, + 108, + 200, + 128, + 193, + 4, + 215, + 227, + 92, + 169, + 219, + 40, + 43, + 233, + 185, + 180, + 44, + 179, + 239, + 255, + 153, + 136, + 185, + 135, + 179, + 44, + 239, + 171, + 157, + 243, + 59, + 247, + 50, + 248, + 223, + 94, + 175, + 45, + 91, + 85, + 239, + 79, + 89, + 0, + 61, + 207, + 131, + 16, + 248, + 127, + 24, + 162, + 62, + 198, + 1, + 38, + 125, + 228, + 129, + 223, + 104, + 17, + 166, + 44, + 228, + 156, + 135, + 34, + 32, + 200, + 235, + 182, + 218, + 104, + 16, + 74, + 53, + 28, + 14, + 227, + 88, + 114, + 129, + 163, + 46, + 34, + 202, + 213, + 193, + 225, + 209, + 241, + 201, + 105, + 50, + 138, + 57, + 195, + 8, + 182, + 6, + 49, + 79, + 207, + 78, + 206, + 199, + 227, + 201, + 52, + 203, + 11, + 197, + 5, + 209, + 205, + 153, + 54, + 98, + 170, + 184, + 152, + 92, + 206, + 174, + 174, + 111, + 230, + 38, + 73, + 85, + 24, + 68, + 94, + 125, + 25, + 224, + 218, + 178, + 219, + 187, + 251, + 217, + 195, + 227, + 83, + 102, + 146, + 34, + 118, + 141, + 205, + 137, + 222, + 64, + 22, + 103, + 211, + 235, + 231, + 151, + 199, + 215, + 197, + 210, + 153, + 27, + 138, + 81, + 53, + 212, + 106, + 161, + 242, + 236, + 237, + 125, + 181, + 250, + 248, + 52, + 89, + 94, + 255, + 13, + 216, + 14, + 181, + 145, + 80, + 137, + 89, + 172, + 191, + 214, + 243, + 165, + 201, + 147, + 34, + 85, + 27, + 209, + 26, + 18, + 50, + 49, + 217, + 124, + 153, + 153, + 146, + 70, + 138, + 135, + 148, + 104, + 191, + 182, + 1, + 143, + 19, + 99, + 202, + 38, + 71, + 169, + 228, + 44, + 168, + 110, + 239, + 76, + 227, + 80, + 165, + 73, + 94, + 202, + 119, + 170, + 228, + 182, + 13, + 84, + 137, + 88, + 216, + 119, + 207, + 50, + 74, + 11, + 39, + 177, + 35, + 70, + 113, + 4, + 253, + 218, + 124, + 77, + 4, + 151, + 42, + 142, + 149, + 146, + 114, + 195, + 202, + 247, + 4, + 77, + 146, + 22, + 34, + 66, + 203, + 16, + 56, + 223, + 132, + 130, + 146, + 14, + 185, + 70, + 23, + 94, + 64, + 25, + 99, + 66, + 208, + 160, + 223, + 210, + 214, + 172, + 15, + 116, + 68, + 48, + 198, + 212, + 69, + 171, + 97, + 67, + 182, + 222, + 19, + 0, + 53, + 66, + 145, + 70, + 94, + 181, + 19, + 157, + 189, + 113, + 31, + 190, + 15, + 97, + 185, + 44, + 173, + 52, + 217, + 218, + 255, + 170, + 183, + 31, + 187, + 219, + 180, + 87, + 118, + 241, + 159, + 245, + 221, + 133, + 31, + 205, + 97, + 231, + 141, + 210, + 8, + 44, + 44, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 6169, + "offset_body": 6312, + "offset_end": 8092 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 8134, + "offset_start": 8147, + "offset_end": 8182 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 8182, + "offset_start": 8208, + "offset_end": 8217 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 8217, + "offset_start": 8237, + "offset_end": 8273 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 8134, + "offset_body": 8275, + "offset_end": 10091 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/040.crlf.json b/tests/legacy/040.crlf.json new file mode 100644 index 0000000..7b16c79 --- /dev/null +++ b/tests/legacy/040.crlf.json @@ -0,0 +1,157 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "39236653.CAA8A090@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 41, + "second": 7, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Jürgen Schmürgen", + "address": "schmuergen@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 277 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 277, + "offset_start": 285, + "offset_end": 332 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 332, + "offset_start": 345, + "offset_end": 378 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 378, + "offset_start": 404, + "offset_end": 423 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\"\n" + }, + "offset_header": 0, + "offset_body": 425, + "offset_end": 1231 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/041.crlf.json b/tests/legacy/041.crlf.json new file mode 100644 index 0000000..3752557 --- /dev/null +++ b/tests/legacy/041.crlf.json @@ -0,0 +1,1698 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 10, + "minute": 23, + "second": 16, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 45 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@penguin.example.com" + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 91 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 91, + "offset_start": 94, + "offset_end": 150 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "PNG graphic" + }, + "offset_field": 150, + "offset_start": 158, + "offset_end": 172 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "Pine.LNX.4.21.0005191019440.8452-101000@penguin.example.com" + }, + "offset_field": 172, + "offset_start": 183, + "offset_end": 247 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 247, + "offset_start": 260, + "offset_end": 266 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "-1463757054-170444605-958746196=:8452" + ] + ] + } + }, + "offset_field": 266, + "offset_start": 279, + "offset_end": 347 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 349, + "offset_end": 3001 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "US-ASCII" + ] + ] + } + }, + "offset_field": 610, + "offset_start": 623, + "offset_end": 654 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "" + }, + "offset_header": 610, + "offset_body": 656, + "offset_end": 656 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "application", + "c_subtype": "octet-stream", + "attributes": [ + [ + "name", + "redball.png" + ] + ] + } + }, + "offset_field": 699, + "offset_start": 712, + "offset_end": 759 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "BASE64" + }, + "offset_field": 759, + "offset_start": 785, + "offset_end": 794 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "Pine.LNX.4.21.0005191023160.8452@penguin.example.com" + }, + "offset_field": 794, + "offset_start": 805, + "offset_end": 862 + }, + { + "name": { + "Rfc": "content_description" + }, + "value": { + "Text": "red ball" + }, + "offset_field": 862, + "offset_start": 882, + "offset_end": 893 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "redball.png" + ] + ] + } + }, + "offset_field": 893, + "offset_start": 913, + "offset_end": 950 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 699, + "offset_body": 952, + "offset_end": 2956 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/042.crlf.json b/tests/legacy/042.crlf.json new file mode 100644 index 0000000..8d15372 --- /dev/null +++ b/tests/legacy/042.crlf.json @@ -0,0 +1,259 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "3923686C.99FB5E36@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 50, + "second": 4, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "blow@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 240 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Netscape Communicator 4.7" + }, + "offset_field": 240, + "offset_start": 248, + "offset_end": 294 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "------------77060D866A66DC8D0921E051" + ] + ] + } + }, + "offset_field": 294, + "offset_start": 307, + "offset_end": 376 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 378, + "offset_end": 2372 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 464, + "offset_start": 477, + "offset_end": 508 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 508, + "offset_start": 534, + "offset_end": 541 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race." + }, + "offset_header": 464, + "offset_body": 543, + "offset_end": 1310 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ], + [ + "name", + "farmerandstork.txt" + ] + ] + } + }, + "offset_field": 1352, + "offset_start": 1365, + "offset_end": 1425 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 1425, + "offset_start": 1451, + "offset_end": 1458 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "farmerandstork.txt" + ] + ] + } + }, + "offset_field": 1458, + "offset_start": 1478, + "offset_end": 1520 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\r\nThe Farmer and the Stork \r\n \r\nA FARMER placed nets on his newly-sown plowlands and caught a\r\nnumber of Cranes, which came to pick up his seed. With them he\r\ntrapped a Stork that had fractured his leg in the net and was\r\nearnestly beseeching the Farmer to spare his life. \"Pray save\r\nme, Master,\" he said, \"and let me go free this once. My broken\r\nlimb should excite your pity. Besides, I am no Crane, I am a\r\nStork, a bird of excellent character; and see how I love and\r\nslave for my father and mother. Look too, at my feathers--\r\nthey are not the least like those of a Crane.\" The Farmer \r\nlaughed aloud and said, \"It may be all as you say, I only know \r\nthis: I have taken you with these robbers, the Cranes, and you \r\nmust die in their company.\" \r\n \r\nBirds of a feather flock together. \r\n" + }, + "offset_header": 1352, + "offset_body": 1522, + "offset_end": 2326 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/043.crlf.json b/tests/legacy/043.crlf.json new file mode 100644 index 0000000..dd63382 --- /dev/null +++ b/tests/legacy/043.crlf.json @@ -0,0 +1,233 @@ +{ + "html_body": [ + 2 + ], + "text_body": [ + 1 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "392359CF.DFF4527@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 44 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 22, + "minute": 47, + "second": 43, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 44, + "offset_start": 49, + "offset_end": 83 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 83, + "offset_start": 88, + "offset_end": 125 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 125, + "offset_start": 134, + "offset_end": 164 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 164, + "offset_start": 182, + "offset_end": 187 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 187, + "offset_start": 200, + "offset_end": 206 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 206, + "offset_start": 209, + "offset_end": 265 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)" + }, + "offset_field": 265, + "offset_start": 273, + "offset_end": 348 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "------------9D454F23DA86BCD63FA3805F" + ] + ] + } + }, + "offset_field": 348, + "offset_start": 361, + "offset_end": 436 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 438, + "offset_end": 2484 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 480, + "offset_start": 493, + "offset_end": 526 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 526, + "offset_start": 552, + "offset_end": 571 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n" + }, + "offset_header": 480, + "offset_body": 573, + "offset_end": 1371 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 1413, + "offset_start": 1426, + "offset_end": 1456 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 1456, + "offset_start": 1482, + "offset_end": 1489 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\r\n\r\nDie Hasen und die Frösche\r\n

Die Hasen klagten einst über ihre mißliche Lage; \"wir leben\",\r\nsprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute\r\nder Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger\r\nals der Tod selbst. Auf, laßt uns ein für allemal sterben.\"\r\n

In einem nahen Teich wollten sie sich nun ersäufen; sie eilten\r\nihm zu; allein das außerordentliche Getöse und ihre wunderbare\r\nGestalt erschreckte eine Menge Frösche, die am Ufer saßen, so\r\nsehr, daß sie aufs schnellste untertauchten.\r\n

\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen\r\nnoch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht,\r\neinige Tiere, welche also wohl noch unglücklicher sein müssen\r\nals wir.\"\r\n
 \r\n
 \r\n" + }, + "offset_header": 1413, + "offset_body": 1491, + "offset_end": 2440 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/044.crlf.json b/tests/legacy/044.crlf.json new file mode 100644 index 0000000..9db0b38 --- /dev/null +++ b/tests/legacy/044.crlf.json @@ -0,0 +1,4468 @@ +{ + "html_body": [ + 1, + 2, + 3, + 4 + ], + "text_body": [ + 1, + 2, + 3, + 4 + ], + "attachments": [ + 2, + 3, + 4 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "39235E1C.1DC7EA90@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 6, + "second": 4, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "blow@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 240 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Netscape Communicator 4.7" + }, + "offset_field": 240, + "offset_start": 248, + "offset_end": 294 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "------------A1FCDEE154E03D875E5D6779" + ] + ] + } + }, + "offset_field": 294, + "offset_start": 307, + "offset_end": 376 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3, + 4 + ] + }, + "offset_header": 0, + "offset_body": 378, + "offset_end": 7536 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 464, + "offset_start": 477, + "offset_end": 510 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 510, + "offset_start": 536, + "offset_end": 555 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n" + }, + "offset_header": 464, + "offset_body": 557, + "offset_end": 1355 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "redball.png" + ] + ] + } + }, + "offset_field": 1397, + "offset_start": 1410, + "offset_end": 1444 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 1444, + "offset_start": 1470, + "offset_end": 1479 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "redball.png" + ] + ] + } + }, + "offset_field": 1479, + "offset_start": 1499, + "offset_end": 1534 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 1397, + "offset_body": 1536, + "offset_end": 3528 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "greenball.png" + ] + ] + } + }, + "offset_field": 3570, + "offset_start": 3583, + "offset_end": 3619 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 3619, + "offset_start": 3645, + "offset_end": 3654 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "greenball.png" + ] + ] + } + }, + "offset_field": 3654, + "offset_start": 3674, + "offset_end": 3711 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 33, + 0, + 0, + 8, + 0, + 0, + 49, + 0, + 0, + 66, + 0, + 0, + 82, + 0, + 0, + 90, + 0, + 0, + 74, + 0, + 8, + 99, + 0, + 8, + 115, + 0, + 8, + 123, + 0, + 16, + 140, + 0, + 8, + 107, + 0, + 0, + 57, + 0, + 0, + 99, + 0, + 16, + 148, + 0, + 16, + 156, + 0, + 33, + 165, + 0, + 16, + 165, + 0, + 33, + 173, + 0, + 66, + 189, + 24, + 99, + 198, + 49, + 99, + 198, + 57, + 82, + 198, + 33, + 41, + 206, + 0, + 24, + 189, + 0, + 16, + 173, + 0, + 24, + 173, + 0, + 33, + 189, + 0, + 148, + 214, + 99, + 173, + 214, + 123, + 132, + 214, + 82, + 74, + 222, + 24, + 33, + 214, + 0, + 24, + 198, + 0, + 24, + 181, + 0, + 0, + 41, + 0, + 66, + 206, + 16, + 206, + 231, + 148, + 222, + 231, + 173, + 198, + 231, + 148, + 148, + 231, + 99, + 82, + 231, + 33, + 33, + 222, + 0, + 24, + 206, + 0, + 82, + 222, + 33, + 156, + 231, + 107, + 214, + 239, + 156, + 189, + 239, + 140, + 132, + 239, + 82, + 66, + 239, + 16, + 173, + 239, + 123, + 165, + 222, + 115, + 90, + 239, + 41, + 33, + 231, + 0, + 24, + 214, + 0, + 49, + 231, + 0, + 82, + 239, + 33, + 107, + 239, + 57, + 74, + 239, + 24, + 41, + 231, + 0, + 41, + 239, + 0, + 49, + 239, + 0, + 8, + 132, + 0, + 16, + 181, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 41, + 213, + 249, + 217, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 109, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 194, + 32, + 20, + 7, + 112, + 15, + 108, + 200, + 128, + 193, + 4, + 215, + 227, + 92, + 169, + 219, + 40, + 43, + 233, + 185, + 180, + 44, + 179, + 239, + 255, + 153, + 136, + 185, + 135, + 179, + 44, + 239, + 171, + 157, + 243, + 59, + 247, + 50, + 248, + 223, + 94, + 175, + 45, + 91, + 85, + 239, + 79, + 89, + 0, + 61, + 207, + 131, + 16, + 248, + 127, + 24, + 162, + 62, + 198, + 1, + 38, + 125, + 228, + 129, + 223, + 104, + 17, + 166, + 44, + 228, + 156, + 135, + 34, + 32, + 200, + 235, + 182, + 218, + 104, + 16, + 74, + 53, + 28, + 14, + 227, + 88, + 114, + 129, + 163, + 46, + 34, + 202, + 213, + 193, + 225, + 209, + 241, + 201, + 105, + 50, + 138, + 57, + 195, + 8, + 182, + 6, + 49, + 79, + 207, + 78, + 206, + 199, + 227, + 201, + 52, + 203, + 11, + 197, + 5, + 209, + 205, + 153, + 54, + 98, + 170, + 184, + 152, + 92, + 206, + 174, + 174, + 111, + 230, + 38, + 73, + 85, + 24, + 68, + 94, + 125, + 25, + 224, + 218, + 178, + 219, + 187, + 251, + 217, + 195, + 227, + 83, + 102, + 146, + 34, + 118, + 141, + 205, + 137, + 222, + 64, + 22, + 103, + 211, + 235, + 231, + 151, + 199, + 215, + 197, + 210, + 153, + 27, + 138, + 81, + 53, + 212, + 106, + 161, + 242, + 236, + 237, + 125, + 181, + 250, + 248, + 52, + 89, + 94, + 255, + 13, + 216, + 14, + 181, + 145, + 80, + 137, + 89, + 172, + 191, + 214, + 243, + 165, + 201, + 147, + 34, + 85, + 27, + 209, + 26, + 18, + 50, + 49, + 217, + 124, + 153, + 153, + 146, + 70, + 138, + 135, + 148, + 104, + 191, + 182, + 1, + 143, + 19, + 99, + 202, + 38, + 71, + 169, + 228, + 44, + 168, + 110, + 239, + 76, + 227, + 80, + 165, + 73, + 94, + 202, + 119, + 170, + 228, + 182, + 13, + 84, + 137, + 88, + 216, + 119, + 207, + 50, + 74, + 11, + 39, + 177, + 35, + 70, + 113, + 4, + 253, + 218, + 124, + 77, + 4, + 151, + 42, + 142, + 149, + 146, + 114, + 195, + 202, + 247, + 4, + 77, + 146, + 22, + 34, + 66, + 203, + 16, + 56, + 223, + 132, + 130, + 146, + 14, + 185, + 70, + 23, + 94, + 64, + 25, + 99, + 66, + 208, + 160, + 223, + 210, + 214, + 172, + 15, + 116, + 68, + 48, + 198, + 212, + 69, + 171, + 97, + 67, + 182, + 222, + 19, + 0, + 53, + 66, + 145, + 70, + 94, + 181, + 19, + 157, + 189, + 113, + 31, + 190, + 15, + 97, + 185, + 44, + 173, + 52, + 217, + 218, + 255, + 170, + 183, + 31, + 187, + 219, + 180, + 87, + 118, + 241, + 159, + 245, + 221, + 133, + 31, + 205, + 97, + 231, + 141, + 210, + 8, + 44, + 44, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 3570, + "offset_body": 3713, + "offset_end": 5493 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 5535, + "offset_start": 5548, + "offset_end": 5583 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 5583, + "offset_start": 5609, + "offset_end": 5618 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 5618, + "offset_start": 5638, + "offset_end": 5674 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 5535, + "offset_body": 5676, + "offset_end": 7492 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/045.crlf.json b/tests/legacy/045.crlf.json new file mode 100644 index 0000000..b6b8939 --- /dev/null +++ b/tests/legacy/045.crlf.json @@ -0,0 +1,254 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 10, + "minute": 26, + "second": 12, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 45 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@penguin.example.com" + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 91 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "AddressList": [ + { + "name": "Joe Blow", + "address": "blow@example.com" + }, + { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + ] + }, + "offset_field": 91, + "offset_start": 94, + "offset_end": 185 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 185, + "offset_start": 193, + "offset_end": 240 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "Pine.LNX.4.21.0005191024380.8452-200000@penguin.example.com" + }, + "offset_field": 240, + "offset_start": 251, + "offset_end": 315 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 315, + "offset_start": 328, + "offset_end": 334 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "-1463757054-891160829-958746372=:8452" + ] + ] + } + }, + "offset_field": 334, + "offset_start": 347, + "offset_end": 415 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 417, + "offset_end": 2170 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "US-ASCII" + ] + ] + } + }, + "offset_field": 678, + "offset_start": 691, + "offset_end": 722 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "" + }, + "offset_header": 678, + "offset_body": 724, + "offset_end": 724 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ], + [ + "name", + "HasenundFrösche.txt" + ] + ] + } + }, + "offset_field": 767, + "offset_start": 780, + "offset_end": 856 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "BASE64" + }, + "offset_field": 856, + "offset_start": 882, + "offset_end": 891 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "Pine.LNX.4.21.0005191026120.8452@penguin.example.com" + }, + "offset_field": 891, + "offset_start": 902, + "offset_end": 959 + }, + { + "name": { + "Rfc": "content_description" + }, + "value": { + "Text": "Short story in German" + }, + "offset_field": 959, + "offset_start": 979, + "offset_end": 1003 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "HasenundFrösche.txt" + ] + ] + } + }, + "offset_field": 1003, + "offset_start": 1023, + "offset_end": 1083 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\r\r\n\r\r\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \r\r\n\r\r\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \r\r\n\r\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \r\r\n\r\r\n" + }, + "offset_header": 767, + "offset_body": 1085, + "offset_end": 2125 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/046.crlf.json b/tests/legacy/046.crlf.json new file mode 100644 index 0000000..86ae6c4 --- /dev/null +++ b/tests/legacy/046.crlf.json @@ -0,0 +1,157 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "3923561C.B7078DEF@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 22, + "minute": 31, + "second": 57, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Jürgen Schmürgen", + "address": "schmuergen@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 277 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche (Netscape Communicator 4.7)" + }, + "offset_field": 277, + "offset_start": 285, + "offset_end": 360 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 360, + "offset_start": 373, + "offset_end": 406 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 406, + "offset_start": 432, + "offset_end": 451 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde,\nder Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der\nTod selbst. Auf, laßt uns ein für allemal sterben.\"\n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.\n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein\nwenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere,\nwelche also wohl noch unglücklicher sein müssen als wir.\"\n\n\n" + }, + "offset_header": 0, + "offset_body": 453, + "offset_end": 1251 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/047.crlf.json b/tests/legacy/047.crlf.json new file mode 100644 index 0000000..3c4990b --- /dev/null +++ b/tests/legacy/047.crlf.json @@ -0,0 +1,259 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "392367BC.3D075C95@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 47, + "second": 8, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "blow@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 240 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Netscape Communicator 4.7" + }, + "offset_field": 240, + "offset_start": 248, + "offset_end": 294 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "------------CA611088711119FBDB3473B4" + ] + ] + } + }, + "offset_field": 294, + "offset_start": 307, + "offset_end": 376 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 378, + "offset_end": 2438 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 464, + "offset_start": 477, + "offset_end": 508 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 508, + "offset_start": 534, + "offset_end": 541 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race." + }, + "offset_header": 464, + "offset_body": 543, + "offset_end": 1310 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ], + [ + "name", + "HasenundFrösche.txt" + ] + ] + } + }, + "offset_field": 1352, + "offset_start": 1365, + "offset_end": 1449 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 1449, + "offset_start": 1475, + "offset_end": 1494 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "HasenundFrösche.txt" + ] + ] + } + }, + "offset_field": 1494, + "offset_start": 1514, + "offset_end": 1578 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n" + }, + "offset_header": 1352, + "offset_body": 1580, + "offset_end": 2392 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/048.crlf.json b/tests/legacy/048.crlf.json new file mode 100644 index 0000000..f0dd6f4 --- /dev/null +++ b/tests/legacy/048.crlf.json @@ -0,0 +1,6195 @@ +{ + "html_body": [ + 1, + 2, + 3, + 4 + ], + "text_body": [ + 1, + 2, + 3, + 4 + ], + "attachments": [ + 2, + 3, + 4 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "3923670C.67D83A99@example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 23, + "minute": 44, + "second": 12, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 84, + "offset_start": 89, + "offset_end": 126 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Mozilla 4.7 [en] (WinNT; I)\r\n" + }, + "offset_field": 126, + "offset_start": 135, + "offset_end": 165 + }, + { + "name": { + "Other": "X-Accept-Language" + }, + "value": { + "Text": " en\r\n" + }, + "offset_field": 165, + "offset_start": 183, + "offset_end": 188 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 188, + "offset_start": 201, + "offset_end": 207 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "blow@example.com" + } + }, + "offset_field": 207, + "offset_start": 210, + "offset_end": 240 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Netscape Communicator 4.7" + }, + "offset_field": 240, + "offset_start": 248, + "offset_end": 294 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "------------177483472E7788F4AD46AB1A" + ] + ] + } + }, + "offset_field": 294, + "offset_start": 307, + "offset_end": 376 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3, + 4 + ] + }, + "offset_header": 0, + "offset_body": 378, + "offset_end": 7720 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 464, + "offset_start": 477, + "offset_end": 508 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 508, + "offset_start": 534, + "offset_end": 541 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\r\nThe Hare and the Tortoise \r\n \r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise,\r\nwho replied, laughing: \"Though you be swift as the wind, I will beat\r\nyou in a race.\" The Hare, believing her assertion to be simply\r\nimpossible, assented to the proposal; and they agreed that the Fox\r\nshould choose the course and fix the goal. On the day appointed for the\r\nrace the two started together. The Tortoise never for a moment stopped,\r\nbut went on with a slow but steady pace straight to the end of the\r\ncourse. The Hare, lying down by the wayside, fell fast asleep. At last\r\nwaking up, and moving as fast as he could, he saw the Tortoise had\r\nreached the goal, and was comfortably dozing after her fatigue. \r\n \r\nSlow but steady wins the race." + }, + "offset_header": 464, + "offset_body": 543, + "offset_end": 1310 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "redball.png" + ] + ] + } + }, + "offset_field": 1352, + "offset_start": 1365, + "offset_end": 1399 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "x-uuencode" + }, + "offset_field": 1399, + "offset_start": 1425, + "offset_end": 1438 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "redball.png" + ] + ] + } + }, + "offset_field": 1438, + "offset_start": 1458, + "offset_end": 1493 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 98, + 101, + 103, + 105, + 110, + 32, + 54, + 52, + 52, + 32, + 114, + 101, + 100, + 98, + 97, + 108, + 108, + 46, + 112, + 110, + 103, + 13, + 10, + 77, + 66, + 53, + 33, + 46, + 49, + 80, + 84, + 42, + 38, + 64, + 72, + 32, + 32, + 32, + 32, + 45, + 50, + 52, + 65, + 36, + 52, + 64, + 32, + 32, + 32, + 33, + 76, + 32, + 32, + 32, + 32, + 59, + 34, + 32, + 44, + 32, + 32, + 32, + 34, + 90, + 34, + 64, + 49, + 71, + 32, + 32, + 32, + 35, + 32, + 37, + 33, + 44, + 53, + 36, + 55, + 95, + 95, + 95, + 92, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 33, + 32, + 32, + 32, + 43, + 32, + 32, + 32, + 53, + 32, + 32, + 32, + 58, + 32, + 32, + 32, + 55, + 32, + 32, + 32, + 49, + 32, + 32, + 32, + 42, + 32, + 32, + 32, + 35, + 32, + 32, + 32, + 60, + 32, + 32, + 32, + 82, + 32, + 32, + 33, + 36, + 32, + 32, + 33, + 45, + 32, + 32, + 33, + 40, + 32, + 32, + 32, + 93, + 32, + 32, + 32, + 67, + 13, + 10, + 77, + 32, + 32, + 32, + 54, + 32, + 32, + 32, + 70, + 32, + 32, + 33, + 65, + 32, + 32, + 33, + 91, + 32, + 32, + 34, + 38, + 32, + 32, + 34, + 39, + 32, + 32, + 33, + 93, + 32, + 32, + 33, + 84, + 32, + 32, + 33, + 64, + 32, + 32, + 32, + 89, + 32, + 32, + 32, + 52, + 32, + 32, + 32, + 38, + 32, + 32, + 32, + 71, + 32, + 32, + 33, + 43, + 32, + 32, + 33, + 79, + 13, + 10, + 77, + 32, + 32, + 34, + 48, + 32, + 32, + 34, + 69, + 32, + 32, + 34, + 91, + 32, + 32, + 34, + 95, + 32, + 32, + 34, + 75, + 32, + 32, + 34, + 65, + 32, + 32, + 34, + 44, + 32, + 32, + 33, + 83, + 32, + 32, + 33, + 59, + 32, + 32, + 32, + 78, + 32, + 32, + 32, + 40, + 32, + 32, + 33, + 44, + 32, + 32, + 33, + 87, + 32, + 32, + 34, + 57, + 32, + 32, + 34, + 84, + 13, + 10, + 77, + 38, + 49, + 71, + 42, + 46, + 35, + 67, + 53, + 47, + 51, + 87, + 59, + 42, + 50, + 71, + 61, + 33, + 48, + 54, + 88, + 32, + 32, + 34, + 72, + 32, + 32, + 33, + 89, + 32, + 32, + 32, + 81, + 32, + 32, + 32, + 56, + 32, + 32, + 32, + 36, + 32, + 32, + 33, + 37, + 32, + 32, + 34, + 58, + 32, + 32, + 34, + 91, + 41, + 34, + 51, + 49, + 56, + 54, + 39, + 63, + 13, + 10, + 77, + 65, + 40, + 51, + 70, + 63, + 87, + 95, + 70, + 53, + 69, + 59, + 74, + 39, + 81, + 95, + 50, + 32, + 32, + 34, + 89, + 32, + 32, + 34, + 67, + 32, + 32, + 33, + 61, + 32, + 32, + 33, + 34, + 32, + 32, + 32, + 72, + 32, + 32, + 32, + 41, + 32, + 32, + 33, + 71, + 32, + 32, + 34, + 90, + 35, + 80, + 95, + 48, + 53, + 37, + 51, + 62, + 68, + 89, + 47, + 69, + 13, + 10, + 77, + 75, + 42, + 83, + 73, + 70, + 57, + 71, + 77, + 57, + 54, + 55, + 79, + 41, + 50, + 55, + 55, + 32, + 32, + 35, + 33, + 32, + 32, + 34, + 81, + 32, + 32, + 34, + 60, + 32, + 32, + 33, + 77, + 32, + 32, + 33, + 51, + 32, + 32, + 32, + 86, + 32, + 32, + 32, + 59, + 32, + 32, + 32, + 37, + 32, + 32, + 33, + 42, + 32, + 32, + 34, + 33, + 32, + 32, + 35, + 43, + 13, + 10, + 77, + 40, + 34, + 35, + 61, + 57, + 86, + 63, + 72, + 71, + 41, + 83, + 75, + 73, + 74, + 59, + 77, + 66, + 72, + 75, + 79, + 52, + 53, + 39, + 79, + 37, + 33, + 51, + 49, + 32, + 32, + 35, + 35, + 32, + 32, + 34, + 86, + 32, + 32, + 33, + 88, + 32, + 32, + 33, + 62, + 32, + 32, + 33, + 32, + 32, + 32, + 32, + 66, + 32, + 32, + 33, + 55, + 32, + 32, + 34, + 50, + 13, + 10, + 77, + 32, + 32, + 35, + 34, + 32, + 32, + 35, + 58, + 38, + 81, + 79, + 72, + 53, + 53, + 55, + 76, + 62, + 39, + 67, + 79, + 62, + 39, + 67, + 79, + 53, + 85, + 63, + 79, + 41, + 66, + 59, + 65, + 32, + 32, + 35, + 46, + 32, + 32, + 34, + 87, + 32, + 32, + 34, + 71, + 32, + 32, + 34, + 53, + 32, + 32, + 33, + 39, + 32, + 32, + 32, + 75, + 32, + 32, + 32, + 47, + 13, + 10, + 77, + 32, + 32, + 34, + 61, + 32, + 32, + 35, + 37, + 32, + 32, + 35, + 65, + 33, + 48, + 55, + 75, + 42, + 34, + 67, + 79, + 47, + 35, + 83, + 79, + 45, + 51, + 55, + 79, + 38, + 81, + 79, + 67, + 32, + 32, + 35, + 48, + 32, + 32, + 35, + 41, + 32, + 32, + 34, + 85, + 32, + 32, + 34, + 55, + 32, + 32, + 34, + 36, + 32, + 32, + 33, + 76, + 32, + 32, + 33, + 47, + 13, + 10, + 77, + 32, + 32, + 32, + 50, + 32, + 32, + 32, + 34, + 32, + 32, + 33, + 66, + 32, + 32, + 35, + 73, + 32, + 32, + 35, + 79, + 32, + 64, + 43, + 71, + 32, + 32, + 35, + 56, + 32, + 32, + 35, + 43, + 32, + 32, + 34, + 90, + 32, + 32, + 34, + 80, + 32, + 32, + 33, + 80, + 32, + 32, + 32, + 51, + 32, + 32, + 32, + 68, + 32, + 32, + 33, + 56, + 32, + 32, + 35, + 40, + 13, + 10, + 77, + 32, + 32, + 35, + 51, + 32, + 32, + 35, + 45, + 32, + 32, + 34, + 83, + 32, + 32, + 34, + 35, + 32, + 32, + 33, + 78, + 32, + 32, + 32, + 62, + 32, + 32, + 33, + 94, + 32, + 32, + 35, + 32, + 32, + 32, + 34, + 68, + 32, + 32, + 34, + 45, + 32, + 32, + 33, + 95, + 32, + 32, + 33, + 73, + 32, + 32, + 33, + 48, + 32, + 32, + 32, + 80, + 32, + 32, + 34, + 49, + 13, + 10, + 77, + 32, + 32, + 34, + 73, + 32, + 32, + 34, + 92, + 32, + 32, + 34, + 74, + 32, + 32, + 34, + 59, + 32, + 32, + 33, + 69, + 32, + 32, + 33, + 41, + 32, + 32, + 32, + 74, + 32, + 32, + 32, + 46, + 32, + 32, + 32, + 84, + 32, + 32, + 34, + 76, + 32, + 32, + 34, + 79, + 32, + 32, + 34, + 77, + 32, + 32, + 34, + 70, + 32, + 32, + 34, + 41, + 32, + 32, + 33, + 90, + 13, + 10, + 77, + 32, + 32, + 33, + 75, + 32, + 32, + 33, + 58, + 32, + 32, + 32, + 94, + 32, + 32, + 32, + 73, + 32, + 32, + 33, + 74, + 32, + 32, + 34, + 34, + 32, + 32, + 34, + 63, + 32, + 32, + 34, + 62, + 32, + 32, + 34, + 54, + 32, + 32, + 34, + 47, + 32, + 32, + 33, + 92, + 32, + 32, + 32, + 57, + 32, + 32, + 32, + 39, + 32, + 32, + 33, + 53, + 32, + 32, + 34, + 46, + 13, + 10, + 77, + 32, + 32, + 34, + 42, + 32, + 32, + 32, + 88, + 32, + 32, + 32, + 48, + 32, + 32, + 32, + 95, + 32, + 32, + 33, + 82, + 32, + 32, + 34, + 32, + 32, + 32, + 33, + 60, + 32, + 32, + 32, + 87, + 32, + 32, + 32, + 76, + 32, + 32, + 33, + 70, + 32, + 32, + 33, + 35, + 32, + 32, + 33, + 54, + 32, + 32, + 32, + 64, + 32, + 32, + 32, + 83, + 32, + 32, + 32, + 92, + 13, + 10, + 77, + 32, + 32, + 32, + 90, + 32, + 32, + 32, + 63, + 32, + 32, + 32, + 44, + 32, + 32, + 32, + 61, + 32, + 32, + 32, + 45, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 35, + 92, + 13, + 10, + 77, + 43, + 77, + 69, + 37, + 32, + 32, + 32, + 32, + 32, + 55, + 49, + 50, + 51, + 69, + 44, + 32, + 48, + 46, + 59, + 56, + 57, + 64, + 32, + 32, + 32, + 33, + 57, + 84, + 49, + 53, + 65, + 84, + 52, + 86, + 93, + 70, + 61, + 39, + 61, + 65, + 60, + 70, + 52, + 32, + 57, + 86, + 69, + 70, + 44, + 71, + 33, + 78, + 57, + 82, + 32, + 82, + 43, + 67, + 32, + 78, + 13, + 10, + 77, + 44, + 51, + 85, + 62, + 79, + 70, + 64, + 32, + 32, + 32, + 40, + 40, + 50, + 52, + 49, + 33, + 53, + 39, + 66, + 60, + 56, + 86, + 34, + 32, + 64, + 95, + 92, + 48, + 80, + 40, + 32, + 33, + 70, + 41, + 65, + 57, + 54, + 37, + 71, + 57, + 86, + 35, + 68, + 88, + 44, + 58, + 52, + 89, + 78, + 43, + 65, + 89, + 62, + 39, + 71, + 89, + 94, + 43, + 68, + 37, + 13, + 10, + 77, + 33, + 35, + 69, + 48, + 41, + 63, + 92, + 83, + 34, + 95, + 36, + 40, + 66, + 88, + 66, + 42, + 66, + 52, + 77, + 40, + 92, + 68, + 72, + 41, + 50, + 60, + 76, + 64, + 82, + 63, + 89, + 71, + 69, + 73, + 54, + 51, + 53, + 85, + 33, + 52, + 52, + 69, + 57, + 49, + 53, + 53, + 47, + 55, + 88, + 45, + 37, + 68, + 85, + 52, + 41, + 40, + 82, + 64, + 65, + 73, + 13, + 10, + 77, + 90, + 94, + 67, + 74, + 90, + 49, + 76, + 56, + 38, + 65, + 70, + 59, + 42, + 41, + 64, + 42, + 92, + 89, + 70, + 57, + 54, + 92, + 35, + 68, + 95, + 75, + 45, + 58, + 50, + 69, + 65, + 57, + 86, + 93, + 67, + 58, + 86, + 51, + 76, + 88, + 46, + 67, + 68, + 75, + 90, + 43, + 66, + 88, + 78, + 75, + 37, + 35, + 45, + 63, + 89, + 87, + 45, + 95, + 46, + 80, + 13, + 10, + 77, + 92, + 79, + 51, + 82, + 93, + 79, + 39, + 85, + 92, + 80, + 92, + 40, + 35, + 32, + 72, + 54, + 35, + 48, + 68, + 45, + 34, + 88, + 94, + 32, + 50, + 47, + 89, + 71, + 66, + 88, + 80, + 42, + 66, + 72, + 90, + 41, + 67, + 56, + 77, + 47, + 50, + 36, + 81, + 42, + 51, + 71, + 37, + 54, + 50, + 36, + 85, + 43, + 37, + 88, + 32, + 90, + 93, + 71, + 93, + 38, + 13, + 10, + 77, + 57, + 69, + 57, + 86, + 51, + 70, + 89, + 62, + 63, + 68, + 37, + 65, + 52, + 55, + 37, + 82, + 50, + 54, + 69, + 57, + 69, + 36, + 61, + 89, + 49, + 50, + 53, + 56, + 91, + 67, + 94, + 51, + 68, + 38, + 49, + 53, + 61, + 52, + 85, + 77, + 55, + 55, + 85, + 35, + 56, + 85, + 46, + 83, + 60, + 68, + 77, + 73, + 58, + 85, + 77, + 91, + 65, + 86, + 56, + 71, + 13, + 10, + 77, + 46, + 32, + 67, + 94, + 61, + 91, + 69, + 85, + 77, + 82, + 72, + 91, + 93, + 79, + 51, + 86, + 93, + 50, + 61, + 45, + 50, + 41, + 88, + 88, + 50, + 59, + 37, + 53, + 61, + 39, + 40, + 72, + 93, + 81, + 50, + 40, + 39, + 45, + 47, + 52, + 58, + 54, + 74, + 51, + 73, + 66, + 63, + 45, + 50, + 41, + 75, + 57, + 71, + 42, + 84, + 84, + 50, + 84, + 52, + 85, + 13, + 10, + 77, + 58, + 95, + 58, + 60, + 52, + 38, + 89, + 73, + 66, + 45, + 83, + 95, + 78, + 55, + 43, + 83, + 53, + 41, + 86, + 74, + 70, + 90, + 61, + 55, + 83, + 89, + 92, + 88, + 50, + 86, + 54, + 33, + 85, + 60, + 41, + 37, + 66, + 89, + 60, + 76, + 65, + 57, + 75, + 89, + 87, + 93, + 81, + 53, + 63, + 77, + 71, + 82, + 37, + 42, + 52, + 53, + 51, + 66, + 86, + 51, + 13, + 10, + 77, + 53, + 67, + 74, + 79, + 82, + 65, + 41, + 43, + 55, + 59, + 85, + 70, + 91, + 51, + 74, + 72, + 39, + 47, + 77, + 90, + 37, + 95, + 39, + 54, + 84, + 64, + 84, + 59, + 45, + 90, + 87, + 60, + 75, + 38, + 74, + 53, + 77, + 54, + 55, + 75, + 77, + 78, + 84, + 91, + 33, + 41, + 66, + 65, + 60, + 76, + 80, + 91, + 85, + 94, + 83, + 58, + 71, + 49, + 54, + 92, + 13, + 10, + 77, + 57, + 92, + 93, + 62, + 74, + 87, + 87, + 91, + 49, + 48, + 95, + 40, + 73, + 90, + 84, + 81, + 46, + 87, + 64, + 40, + 36, + 69, + 55, + 95, + 43, + 59, + 66, + 68, + 35, + 70, + 92, + 51, + 87, + 90, + 42, + 80, + 59, + 45, + 70, + 49, + 72, + 91, + 46, + 87, + 83, + 73, + 39, + 68, + 47, + 50, + 57, + 80, + 39, + 33, + 74, + 43, + 95, + 95, + 92, + 63, + 13, + 10, + 77, + 69, + 83, + 85, + 81, + 86, + 46, + 46, + 68, + 82, + 42, + 41, + 51, + 66, + 91, + 58, + 74, + 59, + 83, + 78, + 77, + 63, + 52, + 57, + 40, + 86, + 64, + 40, + 78, + 37, + 92, + 37, + 86, + 69, + 75, + 95, + 35, + 89, + 61, + 80, + 86, + 94, + 63, + 57, + 61, + 80, + 73, + 69, + 92, + 56, + 53, + 46, + 69, + 40, + 94, + 34, + 41, + 88, + 95, + 93, + 95, + 13, + 10, + 77, + 67, + 72, + 46, + 82, + 56, + 62, + 61, + 89, + 48, + 83, + 44, + 79, + 65, + 38, + 74, + 71, + 70, + 86, + 53, + 84, + 54, + 66, + 34, + 69, + 70, + 95, + 95, + 95, + 35, + 84, + 69, + 63, + 55, + 39, + 77, + 41, + 90, + 79, + 43, + 69, + 42, + 93, + 80, + 91, + 75, + 81, + 91, + 79, + 48, + 68, + 89, + 50, + 48, + 41, + 59, + 37, + 77, + 50, + 70, + 76, + 13, + 10, + 77, + 85, + 82, + 93, + 62, + 79, + 55, + 66, + 61, + 91, + 48, + 57, + 58, + 60, + 64, + 46, + 81, + 70, + 50, + 81, + 68, + 77, + 45, + 83, + 61, + 77, + 50, + 80, + 80, + 52, + 94, + 41, + 95, + 53, + 40, + 34, + 58, + 34, + 47, + 37, + 40, + 56, + 52, + 87, + 55, + 32, + 41, + 65, + 40, + 46, + 77, + 67, + 63, + 89, + 76, + 63, + 82, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 41, + 55, + 49, + 37, + 54, + 39, + 49, + 35, + 59, + 86, + 85, + 77, + 57, + 54, + 89, + 84, + 32, + 38, + 45, + 76, + 58, + 55, + 32, + 82, + 57, + 86, + 69, + 70, + 40, + 39, + 56, + 78, + 44, + 34, + 88, + 86, + 40, + 38, + 41, + 89, + 40, + 37, + 69, + 86, + 57, + 55, + 44, + 64, + 52, + 38, + 69, + 71, + 61, + 54, + 53, + 84, + 45, + 71, + 44, + 91, + 13, + 10, + 45, + 79, + 32, + 32, + 32, + 32, + 32, + 33, + 41, + 49, + 52, + 89, + 36, + 75, + 68, + 41, + 64, + 64, + 64, + 32, + 32, + 13, + 10, + 101, + 110, + 100, + 13, + 10 + ] + }, + "offset_header": 1352, + "offset_body": 1495, + "offset_end": 3562 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "greenball.png" + ] + ] + } + }, + "offset_field": 3604, + "offset_start": 3617, + "offset_end": 3653 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "x-uuencode" + }, + "offset_field": 3653, + "offset_start": 3679, + "offset_end": 3692 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "greenball.png" + ] + ] + } + }, + "offset_field": 3692, + "offset_start": 3712, + "offset_end": 3749 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 98, + 101, + 103, + 105, + 110, + 32, + 54, + 52, + 52, + 32, + 103, + 114, + 101, + 101, + 110, + 98, + 97, + 108, + 108, + 46, + 112, + 110, + 103, + 13, + 10, + 77, + 66, + 53, + 33, + 46, + 49, + 80, + 84, + 42, + 38, + 64, + 72, + 32, + 32, + 32, + 32, + 45, + 50, + 52, + 65, + 36, + 52, + 64, + 32, + 32, + 32, + 33, + 76, + 32, + 32, + 32, + 32, + 59, + 34, + 32, + 44, + 32, + 32, + 32, + 34, + 90, + 34, + 64, + 49, + 71, + 32, + 32, + 32, + 35, + 32, + 37, + 33, + 44, + 53, + 36, + 55, + 95, + 95, + 95, + 92, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 36, + 32, + 32, + 32, + 38, + 32, + 32, + 32, + 40, + 48, + 32, + 32, + 34, + 32, + 32, + 32, + 44, + 48, + 32, + 32, + 48, + 64, + 32, + 32, + 52, + 64, + 32, + 32, + 54, + 64, + 32, + 32, + 50, + 64, + 32, + 40, + 56, + 80, + 32, + 40, + 60, + 80, + 32, + 40, + 62, + 80, + 32, + 48, + 67, + 32, + 32, + 40, + 58, + 80, + 32, + 32, + 13, + 10, + 77, + 46, + 48, + 32, + 32, + 56, + 80, + 32, + 48, + 69, + 32, + 32, + 48, + 71, + 32, + 32, + 65, + 73, + 48, + 32, + 48, + 73, + 48, + 32, + 65, + 75, + 48, + 33, + 34, + 79, + 49, + 65, + 67, + 81, + 67, + 37, + 67, + 81, + 67, + 69, + 50, + 81, + 66, + 36, + 73, + 83, + 64, + 32, + 56, + 79, + 48, + 32, + 48, + 75, + 48, + 32, + 56, + 75, + 48, + 32, + 65, + 13, + 10, + 77, + 79, + 48, + 34, + 52, + 85, + 70, + 46, + 77, + 85, + 71, + 78, + 36, + 85, + 69, + 41, + 42, + 87, + 65, + 64, + 65, + 85, + 64, + 32, + 56, + 81, + 64, + 32, + 56, + 77, + 48, + 32, + 32, + 42, + 48, + 33, + 34, + 83, + 65, + 35, + 46, + 89, + 89, + 51, + 62, + 89, + 90, + 87, + 38, + 89, + 89, + 50, + 52, + 89, + 86, + 45, + 50, + 89, + 82, + 36, + 65, + 13, + 10, + 77, + 87, + 64, + 32, + 56, + 83, + 64, + 33, + 50, + 87, + 66, + 38, + 60, + 89, + 86, + 79, + 54, + 91, + 89, + 82, + 93, + 91, + 88, + 82, + 36, + 91, + 85, + 41, + 34, + 91, + 81, + 34, + 77, + 91, + 87, + 78, + 69, + 87, + 71, + 45, + 58, + 91, + 82, + 68, + 65, + 89, + 80, + 32, + 56, + 85, + 64, + 32, + 81, + 89, + 80, + 33, + 50, + 91, + 82, + 37, + 75, + 13, + 10, + 77, + 91, + 83, + 69, + 42, + 91, + 81, + 64, + 73, + 89, + 80, + 32, + 73, + 91, + 80, + 32, + 81, + 91, + 80, + 32, + 40, + 65, + 32, + 32, + 48, + 77, + 48, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 73, + 13, + 10, + 77, + 85, + 63, + 71, + 57, + 32, + 32, + 32, + 32, + 32, + 55, + 49, + 50, + 51, + 69, + 44, + 32, + 48, + 46, + 59, + 56, + 57, + 64, + 32, + 32, + 32, + 33, + 57, + 84, + 49, + 53, + 65, + 84, + 52, + 86, + 93, + 70, + 61, + 39, + 61, + 65, + 60, + 70, + 52, + 32, + 57, + 86, + 69, + 70, + 44, + 71, + 33, + 78, + 57, + 82, + 32, + 82, + 43, + 67, + 32, + 78, + 13, + 10, + 77, + 44, + 51, + 85, + 62, + 79, + 70, + 64, + 32, + 32, + 32, + 37, + 77, + 50, + 52, + 49, + 33, + 53, + 39, + 66, + 60, + 61, + 61, + 41, + 77, + 53, + 92, + 40, + 64, + 37, + 32, + 61, + 80, + 35, + 86, + 83, + 40, + 64, + 44, + 36, + 36, + 85, + 94, + 45, + 60, + 74, + 61, + 76, + 72, + 42, + 94, + 70, + 89, + 77, + 34, + 82, + 83, + 91, + 95, + 94, + 57, + 13, + 10, + 77, + 66, + 43, + 70, + 39, + 76, + 82, + 83, + 79, + 74, + 89, + 87, + 83, + 46, + 95, + 60, + 82, + 94, + 45, + 93, + 62, + 75, + 82, + 85, + 59, + 53, + 62, + 93, + 47, + 54, + 48, + 32, + 93, + 83, + 88, + 44, + 48, + 94, + 39, + 92, + 56, + 72, + 67, + 91, + 38, + 32, + 50, + 57, + 93, + 89, + 40, + 39, + 63, + 58, + 33, + 38, + 70, + 43, + 46, + 50, + 60, + 13, + 10, + 77, + 65, + 82, + 40, + 64, + 82, + 46, + 78, + 86, + 86, + 70, + 64, + 48, + 50, + 67, + 52, + 60, + 35, + 78, + 45, + 56, + 60, + 72, + 38, + 67, + 43, + 66, + 43, + 42, + 85, + 60, + 39, + 65, + 84, + 63, + 39, + 41, + 58, + 51, + 42, + 42, + 46, + 60, + 44, + 40, + 77, + 64, + 56, + 81, + 51, + 92, + 93, + 46, + 83, + 76, + 63, + 67, + 82, + 51, + 51, + 43, + 13, + 10, + 77, + 34, + 92, + 52, + 37, + 84, + 60, + 86, + 57, + 45, + 70, + 42, + 74, + 78, + 41, + 65, + 60, + 83, + 74, + 90, + 78, + 59, + 94, + 56, + 70, + 50, + 53, + 52, + 56, + 49, + 37, + 89, + 93, + 38, + 62, + 35, + 58, + 76, + 77, + 78, + 91, + 94, + 93, + 71, + 35, + 88, + 85, + 45, + 70, + 68, + 66, + 41, + 86, + 67, + 60, + 86, + 41, + 87, + 68, + 32, + 54, + 13, + 10, + 77, + 57, + 93, + 47, + 75, + 89, + 89, + 63, + 39, + 85, + 92, + 55, + 50, + 70, + 49, + 78, + 42, + 52, + 51, + 55, + 52, + 58, + 74, + 39, + 82, + 91, + 46, + 85, + 93, + 77, + 63, + 75, + 88, + 45, + 37, + 69, + 62, + 95, + 80, + 87, + 56, + 35, + 75, + 54, + 49, + 52, + 40, + 69, + 57, + 75, + 43, + 95, + 54, + 92, + 90, + 55, + 41, + 68, + 82, + 41, + 53, + 13, + 10, + 77, + 38, + 93, + 36, + 58, + 36, + 67, + 40, + 81, + 86, + 55, + 82, + 57, + 70, + 57, + 41, + 38, + 66, + 72, + 62, + 52, + 58, + 43, + 94, + 86, + 32, + 56, + 92, + 51, + 56, + 92, + 72, + 70, + 49, + 90, + 71, + 68, + 43, + 42, + 65, + 78, + 91, + 84, + 83, + 67, + 52, + 42, + 53, + 41, + 55, + 76, + 73, + 87, + 74, + 78, + 50, + 86, + 35, + 53, + 50, + 41, + 13, + 10, + 77, + 54, + 45, + 65, + 87, + 83, + 83, + 41, + 42, + 34, + 82, + 62, + 81, + 40, + 84, + 57, + 81, + 33, + 47, + 87, + 58, + 63, + 36, + 84, + 36, + 69, + 82, + 74, + 46, + 69, + 57, + 41, + 82, + 80, + 92, + 75, + 87, + 33, + 36, + 86, + 50, + 37, + 66, + 41, + 34, + 82, + 81, + 32, + 88, + 87, + 88, + 50, + 34, + 68, + 64, + 90, + 89, + 49, + 65, + 61, + 62, + 13, + 10, + 77, + 48, + 33, + 69, + 67, + 48, + 77, + 34, + 64, + 87, + 93, + 43, + 54, + 75, + 32, + 93, + 84, + 49, + 35, + 35, + 38, + 85, + 36, + 54, + 75, + 56, + 52, + 46, + 86, + 87, + 65, + 44, + 32, + 45, + 52, + 42, + 49, + 49, + 69, + 90, + 85, + 36, + 89, + 86, + 93, + 60, + 49, + 94, + 94, + 35, + 86, + 38, + 89, + 43, + 42, + 84, + 84, + 86, + 61, + 75, + 95, + 13, + 10, + 77, + 74, + 75, + 60, + 63, + 78, + 93, + 78, + 84, + 53, + 87, + 59, + 81, + 71, + 95, + 55, + 61, + 65, + 49, + 95, + 45, + 56, + 62, + 62, + 45, + 84, + 64, + 64, + 76, + 43, + 32, + 32, + 32, + 32, + 34, + 53, + 84, + 49, + 53, + 65, + 84, + 48, + 86, + 93, + 77, + 59, + 54, + 53, + 78, + 61, + 32, + 33, + 67, + 59, + 38, + 69, + 80, + 44, + 70, + 61, + 73, + 13, + 10, + 70, + 57, + 66, + 33, + 86, + 43, + 67, + 32, + 78, + 45, + 66, + 33, + 66, + 62, + 50, + 33, + 57, + 61, + 70, + 53, + 83, + 40, + 37, + 33, + 73, + 57, + 87, + 53, + 69, + 61, + 35, + 57, + 83, + 46, + 91, + 80, + 32, + 32, + 32, + 32, + 32, + 50, + 52, + 53, + 46, + 49, + 42, + 89, + 34, + 56, + 40, + 40, + 32, + 13, + 10, + 101, + 110, + 100, + 13, + 10 + ] + }, + "offset_header": 3604, + "offset_body": 3751, + "offset_end": 5600 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 5642, + "offset_start": 5655, + "offset_end": 5690 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "x-uuencode" + }, + "offset_field": 5690, + "offset_start": 5716, + "offset_end": 5729 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 5729, + "offset_start": 5749, + "offset_end": 5785 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 98, + 101, + 103, + 105, + 110, + 32, + 54, + 52, + 52, + 32, + 98, + 108, + 117, + 101, + 98, + 97, + 108, + 108, + 46, + 112, + 110, + 103, + 13, + 10, + 77, + 66, + 53, + 33, + 46, + 49, + 80, + 84, + 42, + 38, + 64, + 72, + 32, + 32, + 32, + 32, + 45, + 50, + 52, + 65, + 36, + 52, + 64, + 32, + 32, + 32, + 33, + 76, + 32, + 32, + 32, + 32, + 59, + 34, + 32, + 44, + 32, + 32, + 32, + 34, + 90, + 34, + 64, + 49, + 71, + 32, + 32, + 32, + 35, + 32, + 37, + 33, + 44, + 53, + 36, + 55, + 95, + 95, + 95, + 92, + 32, + 13, + 10, + 77, + 32, + 32, + 64, + 32, + 32, + 33, + 32, + 32, + 32, + 33, + 64, + 32, + 32, + 32, + 32, + 32, + 34, + 34, + 68, + 32, + 36, + 36, + 40, + 32, + 36, + 36, + 72, + 32, + 34, + 35, + 36, + 32, + 36, + 37, + 40, + 40, + 40, + 55, + 44, + 40, + 42, + 55, + 76, + 40, + 42, + 56, + 48, + 40, + 40, + 54, + 76, + 32, + 38, + 37, + 72, + 32, + 34, + 35, + 68, + 40, + 13, + 10, + 77, + 40, + 54, + 44, + 48, + 46, + 57, + 80, + 56, + 48, + 74, + 52, + 56, + 48, + 74, + 84, + 56, + 48, + 75, + 52, + 48, + 46, + 58, + 52, + 48, + 44, + 57, + 48, + 32, + 38, + 37, + 40, + 48, + 44, + 56, + 80, + 73, + 52, + 75, + 52, + 89, + 56, + 92, + 56, + 89, + 56, + 92, + 88, + 73, + 54, + 76, + 88, + 56, + 50, + 76, + 88, + 56, + 48, + 76, + 88, + 56, + 13, + 10, + 77, + 48, + 75, + 85, + 34, + 58, + 92, + 57, + 91, + 71, + 45, + 58, + 60, + 79, + 61, + 90, + 44, + 77, + 61, + 89, + 67, + 69, + 46, + 60, + 81, + 58, + 93, + 88, + 65, + 52, + 77, + 88, + 56, + 50, + 77, + 56, + 56, + 48, + 76, + 56, + 48, + 44, + 58, + 52, + 32, + 32, + 34, + 39, + 46, + 89, + 94, + 95, + 71, + 91, + 94, + 94, + 60, + 81, + 78, + 93, + 50, + 13, + 10, + 77, + 65, + 46, + 92, + 73, + 54, + 78, + 60, + 48, + 46, + 58, + 85, + 42, + 62, + 92, + 90, + 77, + 83, + 77, + 90, + 69, + 83, + 78, + 93, + 58, + 67, + 46, + 92, + 48, + 44, + 57, + 81, + 58, + 65, + 45, + 58, + 77, + 85, + 78, + 63, + 46, + 91, + 94, + 94, + 44, + 79, + 62, + 93, + 42, + 62, + 94, + 92, + 56, + 46, + 58, + 52, + 56, + 50, + 76, + 58, + 44, + 13, + 10, + 77, + 79, + 62, + 62, + 85, + 89, + 94, + 94, + 52, + 79, + 62, + 92, + 32, + 32, + 34, + 69, + 58, + 67, + 46, + 61, + 83, + 73, + 62, + 93, + 75, + 71, + 46, + 92, + 40, + 42, + 56, + 80, + 81, + 56, + 94, + 92, + 73, + 54, + 78, + 92, + 40, + 40, + 55, + 76, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 13, + 10, + 77, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 32, + 35, + 33, + 13, + 10, + 77, + 44, + 64, + 85, + 53, + 32, + 32, + 32, + 32, + 32, + 55, + 49, + 50, + 51, + 69, + 44, + 32, + 48, + 46, + 59, + 56, + 57, + 64, + 32, + 32, + 32, + 33, + 57, + 84, + 49, + 53, + 65, + 84, + 52, + 86, + 93, + 70, + 61, + 39, + 61, + 65, + 60, + 70, + 52, + 32, + 57, + 86, + 69, + 70, + 44, + 71, + 33, + 78, + 57, + 82, + 32, + 82, + 43, + 67, + 32, + 78, + 13, + 10, + 77, + 44, + 51, + 85, + 62, + 79, + 70, + 64, + 32, + 32, + 32, + 38, + 40, + 50, + 52, + 49, + 33, + 53, + 39, + 66, + 60, + 61, + 61, + 41, + 77, + 53, + 89, + 76, + 80, + 38, + 32, + 59, + 64, + 36, + 68, + 90, + 32, + 41, + 65, + 33, + 50, + 68, + 88, + 59, + 44, + 34, + 52, + 82, + 71, + 33, + 50, + 43, + 58, + 74, + 72, + 79, + 59, + 75, + 38, + 95, + 59, + 13, + 10, + 77, + 63, + 47, + 71, + 95, + 79, + 82, + 65, + 91, + 84, + 69, + 59, + 76, + 76, + 60, + 62, + 59, + 43, + 89, + 81, + 83, + 71, + 51, + 76, + 65, + 89, + 33, + 70, + 45, + 65, + 64, + 48, + 72, + 49, + 34, + 65, + 80, + 72, + 89, + 84, + 36, + 46, + 40, + 72, + 65, + 52, + 56, + 43, + 35, + 67, + 88, + 83, + 39, + 65, + 42, + 56, + 48, + 68, + 75, + 36, + 72, + 13, + 10, + 77, + 48, + 61, + 79, + 72, + 60, + 68, + 88, + 71, + 62, + 84, + 40, + 42, + 44, + 53, + 52, + 73, + 42, + 57, + 43, + 48, + 35, + 62, + 74, + 50, + 51, + 40, + 76, + 79, + 94, + 85, + 92, + 47, + 82, + 74, + 74, + 54, + 52, + 80, + 86, + 40, + 33, + 76, + 49, + 44, + 91, + 87, + 84, + 91, + 47, + 47, + 73, + 94, + 63, + 35, + 41, + 75, + 54, + 77, + 71, + 73, + 13, + 10, + 77, + 43, + 35, + 41, + 79, + 62, + 80, + 56, + 81, + 71, + 62, + 80, + 63, + 71, + 79, + 58, + 71, + 57, + 94, + 63, + 83, + 73, + 70, + 80, + 55, + 66, + 67, + 34, + 92, + 42, + 59, + 74, + 36, + 58, + 87, + 37, + 81, + 86, + 63, + 63, + 93, + 85, + 56, + 93, + 89, + 52, + 93, + 55, + 34, + 52, + 73, + 58, + 35, + 62, + 48, + 80, + 66, + 44, + 73, + 39, + 55, + 13, + 10, + 77, + 47, + 95, + 79, + 94, + 85, + 94, + 94, + 59, + 54, + 53, + 47, + 54, + 48, + 72, + 38, + 37, + 58, + 80, + 77, + 67, + 78, + 75, + 82, + 93, + 79, + 75, + 78, + 95, + 63, + 95, + 34, + 85, + 53, + 66, + 91, + 62, + 83, + 51, + 84, + 54, + 54, + 73, + 48, + 39, + 63, + 95, + 91, + 94, + 78, + 95, + 38, + 91, + 85, + 58, + 43, + 51, + 65, + 42, + 95, + 44, + 13, + 10, + 77, + 67, + 49, + 81, + 70, + 51, + 90, + 42, + 61, + 83, + 57, + 93, + 63, + 38, + 68, + 93, + 82, + 58, + 77, + 44, + 76, + 51, + 64, + 57, + 43, + 69, + 87, + 55, + 53, + 64, + 37, + 49, + 32, + 34, + 90, + 76, + 73, + 67, + 95, + 85, + 87, + 62, + 71, + 76, + 76, + 74, + 41, + 53, + 77, + 54, + 53, + 58, + 87, + 45, + 61, + 33, + 50, + 58, + 60, + 43, + 92, + 13, + 10, + 77, + 94, + 53, + 57, + 70, + 56, + 74, + 42, + 70, + 61, + 61, + 85, + 34, + 50, + 56, + 72, + 46, + 66, + 44, + 46, + 50, + 38, + 80, + 77, + 83, + 69, + 74, + 74, + 69, + 37, + 37, + 40, + 78, + 46, + 74, + 79, + 84, + 58, + 85, + 57, + 36, + 57, + 75, + 52, + 68, + 54, + 40, + 34, + 43, + 43, + 37, + 54, + 86, + 90, + 90, + 82, + 85, + 42, + 79, + 54, + 36, + 13, + 10, + 77, + 85, + 83, + 53, + 95, + 66, + 35, + 32, + 39, + 85, + 36, + 72, + 73, + 71, + 53, + 43, + 34, + 66, + 82, + 64, + 57, + 34, + 40, + 72, + 70, + 39, + 87, + 45, + 34, + 42, + 55, + 84, + 69, + 71, + 40, + 94, + 33, + 85, + 66, + 78, + 78, + 83, + 34, + 38, + 51, + 81, + 80, + 55, + 67, + 71, + 35, + 46, + 88, + 61, + 91, + 45, + 73, + 59, + 55, + 88, + 86, + 13, + 10, + 77, + 56, + 41, + 41, + 39, + 68, + 33, + 80, + 70, + 32, + 70, + 86, + 51, + 81, + 80, + 32, + 57, + 64, + 88, + 84, + 41, + 87, + 94, + 55, + 77, + 59, + 79, + 85, + 75, + 64, + 46, + 32, + 57, + 80, + 38, + 84, + 45, + 81, + 54, + 90, + 86, + 73, + 94, + 69, + 51, + 94, + 56, + 66, + 91, + 88, + 91, + 76, + 35, + 95, + 80, + 36, + 52, + 53, + 44, + 83, + 56, + 13, + 10, + 77, + 70, + 54, + 68, + 46, + 79, + 80, + 32, + 32, + 32, + 34, + 53, + 84, + 49, + 53, + 65, + 84, + 48, + 86, + 93, + 77, + 59, + 54, + 53, + 78, + 61, + 32, + 33, + 67, + 59, + 38, + 69, + 80, + 44, + 70, + 61, + 73, + 57, + 66, + 33, + 86, + 43, + 67, + 32, + 78, + 45, + 66, + 33, + 66, + 62, + 50, + 33, + 57, + 61, + 70, + 53, + 83, + 40, + 37, + 33, + 73, + 13, + 10, + 52, + 57, + 87, + 53, + 69, + 61, + 35, + 57, + 83, + 46, + 91, + 80, + 32, + 32, + 32, + 32, + 32, + 50, + 52, + 53, + 46, + 49, + 42, + 89, + 34, + 56, + 40, + 40, + 32, + 13, + 10, + 101, + 110, + 100, + 13, + 10 + ] + }, + "offset_header": 5642, + "offset_body": 5787, + "offset_end": 7674 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/049.crlf.json b/tests/legacy/049.crlf.json new file mode 100644 index 0000000..fe4e9b2 --- /dev/null +++ b/tests/legacy/049.crlf.json @@ -0,0 +1,148 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Joe Blow", + "address": "jblow@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 76 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Test message from Microsoft Outlook 00" + }, + "offset_field": 76, + "offset_start": 84, + "offset_end": 125 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 58, + "second": 13, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 125, + "offset_start": 130, + "offset_end": 164 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGIEKGCHAA.doug@example.com" + }, + "offset_field": 164, + "offset_start": 175, + "offset_end": 225 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 225, + "offset_start": 236, + "offset_end": 249 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 249, + "offset_start": 267, + "offset_end": 276 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 276, + "offset_start": 285, + "offset_end": 338 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 338, + "offset_start": 349, + "offset_end": 358 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 358, + "offset_start": 368, + "offset_end": 416 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "\r\nThe Hare and the Tortoise\r\n\r\nA HARE one day ridiculed the short feet and slow pace of the Tortoise, who\r\nreplied, laughing: \"Though you be swift as the wind, I will beat you in a\r\nrace.\" The Hare, believing her assertion to be simply impossible, assented\r\nto the proposal; and they agreed that the Fox should choose the course and\r\nfix the goal. On the day appointed for the race the two started together.\r\nThe Tortoise never for a moment stopped, but went on with a slow but steady\r\npace straight to the end of the course. The Hare, lying down by the\r\nwayside, fell fast asleep. At last waking up, and moving as fast as he\r\ncould, he saw the Tortoise had reached the goal, and was comfortably dozing\r\nafter her fatigue.\r\n\r\nSlow but steady wins the race.\r\n\r\n\r\nbegin 666 blueball.png\r\nMB5!.1PT*&@H````-24A$4@```!L````;\" ,```\"Z\"@1G```#`%!,5$7___\\`\r\nM``@``! ``!@`````\"\"D`$$(`$$H`\"#$`$%(((7,(*7L(*80((6L`&%H`\"#D(\r\nM(6,0.9P80J480JT80K40.:40,90`&%(0,8PI4K4Y8\\8Y8\\XI6LX82LX80LX8\r\nM0KU\":\\9[G-:\\ZMSMZESN]:C.\\0,9Q:A-:MUN?.[^^,O>]*>^\\8.:482L:,\r\nMO>>UY^^4O>\\``\"E:C.=SI>]KG.\\(*8PQ8^\\I6N\\((7L`````````````````\r\nM````````````````````````````````````````````````````````````\r\nM````````````````````````````````````````````````````````````\r\nM````````````````````````````````````````````````````````````\r\nM````````````````````````````````````````````````````````````\r\nM````````````````````````````````````````````````````````````\r\nM````````````````````````````````````````````````````````````\r\nM````````````````````````````````````````````````````````````\r\nM````````````````````````````````````````````````````````````\r\nM````````````````````````````````````````````````````````````\r\nM````````````````````````````````````````````````````````````\r\nM````````````````````````````````````````````````````````````\r\nM``````````````````````````````````````````````````````````#!\r\nM,@U5`````7123E,`0.;89@```!9T15AT4V]F='=AOF@```&(241!5'B<==)M5YLP& ;@$DZ )A!2DX;,\"4RG!2+:JHO;K&_;\r\nM?/G_ORA[TE;LL<>;+YQSG3LAY!F-A@0H1\"APHYT$.(HA48+#CXS'A*80DK$H\r\nM0=OHT(*,54I*9+0#>J23(LO^U\\/RJJ64PV(!L1,[WT[//I^?#)K6MGI\r\nM+#)O>P8QG>P?GO:G9^?SIFP7BC\"\\*;J$:W%QV??]U8]Y4]7\"4I:#>0PB,I'7\r\nM/_O^U^^;65/60H&%:PMCNKR]OKN_?_\"U5B[>S3T66I0'?_[^N_&[U:+3A*_,\r\nMC1QF3Z*=S9]?&D]R:M,L3@9+EW75@%1 \"ZLIC_UW>GLLJ)5M65:W-=!2:<+\\\r\nM^59F8J*F==U\"28H.B,.2&PMSEJJE%%(N.JOT:U9$9K4D6(\"++%6VZZRU*O6$\r\nMUS5_B# 'U$HIG5+\"BR@9\"(HF'W-\"*7TEG(^!UBNNS\"&3QP7CG#.X=[-I;7XV\r\nM8))'D!PF`FV3QP`9@XT)W^7M;OUK@. 9P&T-Q6ZVI^E3^8B[X[L#_P$45,S8\r\nMF6D.OP```\"5T15AT0V]M;65N= !C;&EP,F=I9B!V+C N-B!B>2!9=F5S(%!I\r\n49W5E=#9S.[P`````245.1*Y\"8((`\r\n`\r\nend\r\n\r\nbegin 666 greenball.png\r\nMB5!.1PT*&@H````-24A$4@```!L````;\" ,```\"Z\"@1G```#`%!,5$7___\\`\r\nM````$ ``& ``(0``\" ``,0``0@``4@``6@``2@`(8P`(P`0C `(:P``\r\nM.0``8P`0E `0G `AI0`0I0`AK0!\"O1ACQC%CQCE2QB$IS@`8O0`0K0`8K0`A\r\nMO0\"4UF.MUGN$UE)*WA@AU@`8Q@`8M0``*0!\"SA#.YY3>YZW&YY24YV-2YR$A\r\nMW@`8S@!2WB&KRU;5>]/60`]SX,0^'\\8HC[&`29]Y('?:!&F+.2<\r\nMAR(@R.NVVF@02C4<#N-8#:LMN[^]G#XU-FDB)VC_PW8#K614(E9K+_6\\Z7)DR)5\r\nM&]$:$C(QV7R9F9)&BH>4:+^V`8\\38\\HF1ZGD+*AN[TSC4*5)7LIWJN2V#52)\r\nM6-AWSS)*\"R>Q(T9Q!/W:?$T$ERJ.E9)RP\\KW!$V2%B)\"RQ XWX2\"D@ZY1A=>\r\nM0!EC0M\"@W]+6K ]T1##&U$6K84.VWA,`-4*11EZU$YV]<1^^#V&Y+*TTV=K_\r\nMJK>-T@@L+ ```\"5T15AT0V]M;65N= !C;&EP,F=I\r\nF9B!V+C N-B!B>2!9=F5S(%!I9W5E=#9S.[P`````245.1*Y\"8((`\r\n`\r\nend\r\n\r\nbegin 666 redball.png\r\nMB5!.1PT*&@H````-24A$4@```!L````;\" ,```\"Z\"@1G```#`%!,5$7___\\`\r\nM```!```+```5```:```7```1```*```#```<```R``!$``!-``!(```]```C\r\nM```6```F``!A``![``\"&``\"'``!]``!T``!@```Y```4```&```G``!+``!O\r\nM``\"0``\"E``\"[``\"_``\"K``\"A``\",``!S``!;```N```(``!,``!W``\"9``\"T\r\nM&1G*.#C5/3W;*2G=!06X``\"H``!Y```Q```8```$``!%``\":``\"[)\"3186'?\r\nMA(3F?W_F5E;J'Q_2``\"Y``\"C``!=``!\"```H```)``!G``\"Z#P_05%3>DY/E\r\nMK*SIF9GM967O)277``#!``\"Q``\"<``!M``!3```V```;```%``!*``\"!``#+\r\nM(\"#=9V?HG)SKIJ;MBHKO45'O%!31``##``\"V``!X``!>``! ```B``!7``\"2\r\nM``#\"``#:&QOH557L>'CO>'CO5U?O)B;A``#.``\"W``\"G``\"5``!'```K```/\r\nM``\"=``#%``#A!07K*\"CO/#SO-37O&QOC``#0``#)``\"U``\"7``\"$``!L``!/\r\nM```2```\"``!B``#I``#O`@+G``#8``#+``\"Z``\"P``!P```3```D``!8``#(\r\nM``#3``#-``\"S``\"#``!N```>``!^``# ``\"D``\"-``!_``!I``!0```P``\"1\r\nM``\"I``\"\\``\"J``\";``!E``!)```J```.```T``\"L``\"O``\"M``\"F``\")``!Z\r\nM``!K``!:```^```I``!J``\"\"``\"?``\">``\"6``\"/``!\\```9```'``!5``\".\r\nM``\"*```X```0```_``!R``\" ``!<```W```L``!F``!#``!6```@```S```\\\r\nM```Z```?```,```=```-````````````````````````````````````````\r\nM````````````````````````````````````````````````````````````\r\nM``````````````````````````````````````````````````````````#\\\r\nM+ME%`````7123E,`0.;89@```!9T15AT4V]F='=AOF@```((241!5'B<8V\" @_\\0P( !F)A96%G9V#DX,:4YN+AY>'GY^+D%\r\nM!#E0)?\\S\"_$(BXB*B4M(\\DH)2?D%A47%R26E9E$=Y1258[C^3D&15=4UM77U#8U.SJWW[10_(IZTQ.W@($E7_+;BD#F\\3WZ*P;-F1H[.WSI'D/29P'!J+__\\?\r\nMESUQV..DR*)3B[:J;SNM?49(V@(N%\\%VEK_#Y=PV^?9=PIE\\85.E(^\")X_]_\r\nMCH.R8>=Y0S,OA&JGFV5T6B\"EF___#TE?7'M)ZO+E*]P[KQ[O0DY20);%M2FL\r\nMUR]>O7B=[09:<@.QF2QDM-S=M2PP4^)_5(\":\"/%(84W7`)A(.MC?YL?R````\r\nM)71%6'1#;VUM96YT`&-L:7 R9VEF('8N,\"XV(&)Y(%EV97,@4&EG=65T-G,[\r\n-O ````!)14Y$KD)@@@``\r\n`\r\nend\r\n\r" + }, + "offset_header": 0, + "offset_body": 418, + "offset_end": 7002 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/050.crlf.json b/tests/legacy/050.crlf.json new file mode 100644 index 0000000..0c16b4c --- /dev/null +++ b/tests/legacy/050.crlf.json @@ -0,0 +1,3136 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2, + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 2 (High)\r\n" + }, + "offset_field": 170, + "offset_start": 181, + "offset_end": 192 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 0, + "minute": 39, + "second": 36, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 192, + "offset_start": 197, + "offset_end": 231 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 231, + "offset_start": 234, + "offset_end": 288 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 288, + "offset_start": 293, + "offset_end": 330 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 330, + "offset_start": 338, + "offset_end": 383 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 383, + "offset_start": 396, + "offset_end": 402 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "related", + "attributes": [ + [ + "type", + "text/html" + ], + [ + "boundary", + "=====================_715546120==_.REL" + ] + ] + } + }, + "offset_field": 402, + "offset_start": 415, + "offset_end": 508 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3 + ] + }, + "offset_header": 0, + "offset_body": 510, + "offset_end": 6231 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 552, + "offset_start": 565, + "offset_end": 599 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 599, + "offset_start": 625, + "offset_end": 644 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\n\"2aa658b6.png\"
\n
\nDie Hasen und die\nFrösche
\n
\n
Die Hasen klagten einst über\nihre mißliche Lage; "wir leben", sprach ein Redner, "in\nsteter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler,\nja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst.\nAuf, laßt uns ein für allemal sterben."
\n
\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu;\nallein das außerordentliche Getöse und ihre wunderbare Gestalt\nerschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs\nschnellste untertauchten.
\n
\n"Halt", rief nun eben dieser Sprecher, "wir wollen das\nErsäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr\nseht, einige Tiere, welche also wohl noch unglücklicher sein müssen als\nwir."
\n
\n\"2aa658c0.png\"
\n" + }, + "offset_header": 552, + "offset_body": 646, + "offset_end": 1885 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "2aa658b6.png" + ] + ] + } + }, + "offset_field": 1929, + "offset_start": 1942, + "offset_end": 1975 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.2" + }, + "offset_field": 1975, + "offset_start": 1986, + "offset_end": 2041 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 2041, + "offset_start": 2067, + "offset_end": 2076 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "2aa658b6.png" + ] + ] + } + }, + "offset_field": 2076, + "offset_start": 2096, + "offset_end": 2130 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 1929, + "offset_body": 2132, + "offset_end": 3946 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "2aa658c0.png" + ] + ] + } + }, + "offset_field": 3990, + "offset_start": 4003, + "offset_end": 4036 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "4.2.0.58.20000519003934.00a866f0@pop.example.com.3" + }, + "offset_field": 4036, + "offset_start": 4047, + "offset_end": 4102 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 4102, + "offset_start": 4128, + "offset_end": 4137 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "2aa658c0.png" + ] + ] + } + }, + "offset_field": 4137, + "offset_start": 4157, + "offset_end": 4191 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 3990, + "offset_body": 4193, + "offset_end": 6183 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/051.crlf.json b/tests/legacy/051.crlf.json new file mode 100644 index 0000000..e5ab4a9 --- /dev/null +++ b/tests/legacy/051.crlf.json @@ -0,0 +1,5922 @@ +{ + "html_body": [ + 2 + ], + "text_body": [ + 2 + ], + "attachments": [ + 3, + 4, + 5, + 6 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com" + }, + "offset_field": 0, + "offset_start": 11, + "offset_end": 64 + }, + { + "name": { + "Other": "X-Sender" + }, + "value": { + "Text": " dwsauder@pop.example.com (Unverified)\r\n" + }, + "offset_field": 64, + "offset_start": 73, + "offset_end": 113 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " QUALCOMM Windows Eudora Pro Version 4.2.0.58 \r\n" + }, + "offset_field": 113, + "offset_start": 122, + "offset_end": 170 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 2 (High)\r\n" + }, + "offset_field": 170, + "offset_start": 181, + "offset_end": 192 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 19, + "hour": 0, + "minute": 39, + "second": 5, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 192, + "offset_start": 197, + "offset_end": 231 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 231, + "offset_start": 234, + "offset_end": 288 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "dwsauder@example.com" + } + }, + "offset_field": 288, + "offset_start": 293, + "offset_end": 330 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche" + }, + "offset_field": 330, + "offset_start": 338, + "offset_end": 383 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 383, + "offset_start": 396, + "offset_end": 402 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "=====================_715515186==_" + ] + ] + } + }, + "offset_field": 402, + "offset_start": 415, + "offset_end": 482 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 5, + 6 + ] + }, + "offset_header": 0, + "offset_body": 484, + "offset_end": 9943 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "related", + "attributes": [ + [ + "type", + "text/plain" + ], + [ + "boundary", + "=====================_715515186==_.REL" + ] + ] + } + }, + "offset_field": 522, + "offset_start": 535, + "offset_end": 629 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3, + 4 + ] + }, + "offset_header": 522, + "offset_body": 631, + "offset_end": 5945 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "iso-8859-1" + ] + ] + } + }, + "offset_field": 673, + "offset_start": 686, + "offset_end": 721 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 721, + "offset_start": 747, + "offset_end": 766 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n\n2aa5e03a.png2aa5e044.png" + }, + "offset_header": 673, + "offset_body": 768, + "offset_end": 1601 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "2aa5e03a.png" + ] + ] + } + }, + "offset_field": 1645, + "offset_start": 1658, + "offset_end": 1691 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.2" + }, + "offset_field": 1691, + "offset_start": 1702, + "offset_end": 1757 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 1757, + "offset_start": 1783, + "offset_end": 1792 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "2aa5e03a.png" + ] + ] + } + }, + "offset_field": 1792, + "offset_start": 1812, + "offset_end": 1846 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 1645, + "offset_body": 1848, + "offset_end": 3662 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "2aa5e044.png" + ] + ] + } + }, + "offset_field": 3706, + "offset_start": 3719, + "offset_end": 3752 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "4.2.0.58.20000519003903.00a859b0@pop.example.com.3" + }, + "offset_field": 3752, + "offset_start": 3763, + "offset_end": 3818 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 3818, + "offset_start": 3844, + "offset_end": 3853 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "2aa5e044.png" + ] + ] + } + }, + "offset_field": 3853, + "offset_start": 3873, + "offset_end": 3907 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 1, + 0, + 0, + 11, + 0, + 0, + 21, + 0, + 0, + 26, + 0, + 0, + 23, + 0, + 0, + 17, + 0, + 0, + 10, + 0, + 0, + 3, + 0, + 0, + 28, + 0, + 0, + 50, + 0, + 0, + 68, + 0, + 0, + 77, + 0, + 0, + 72, + 0, + 0, + 61, + 0, + 0, + 35, + 0, + 0, + 22, + 0, + 0, + 38, + 0, + 0, + 97, + 0, + 0, + 123, + 0, + 0, + 134, + 0, + 0, + 135, + 0, + 0, + 125, + 0, + 0, + 116, + 0, + 0, + 96, + 0, + 0, + 57, + 0, + 0, + 20, + 0, + 0, + 6, + 0, + 0, + 39, + 0, + 0, + 75, + 0, + 0, + 111, + 0, + 0, + 144, + 0, + 0, + 165, + 0, + 0, + 187, + 0, + 0, + 191, + 0, + 0, + 171, + 0, + 0, + 161, + 0, + 0, + 140, + 0, + 0, + 115, + 0, + 0, + 91, + 0, + 0, + 46, + 0, + 0, + 8, + 0, + 0, + 76, + 0, + 0, + 119, + 0, + 0, + 153, + 0, + 0, + 180, + 25, + 25, + 202, + 56, + 56, + 213, + 61, + 61, + 219, + 41, + 41, + 221, + 5, + 5, + 184, + 0, + 0, + 168, + 0, + 0, + 121, + 0, + 0, + 49, + 0, + 0, + 24, + 0, + 0, + 4, + 0, + 0, + 69, + 0, + 0, + 154, + 0, + 0, + 187, + 36, + 36, + 209, + 97, + 97, + 223, + 132, + 132, + 230, + 127, + 127, + 230, + 86, + 86, + 234, + 31, + 31, + 210, + 0, + 0, + 185, + 0, + 0, + 163, + 0, + 0, + 93, + 0, + 0, + 66, + 0, + 0, + 40, + 0, + 0, + 9, + 0, + 0, + 103, + 0, + 0, + 186, + 15, + 15, + 208, + 84, + 84, + 222, + 147, + 147, + 229, + 172, + 172, + 233, + 153, + 153, + 237, + 101, + 101, + 239, + 37, + 37, + 215, + 0, + 0, + 193, + 0, + 0, + 177, + 0, + 0, + 156, + 0, + 0, + 109, + 0, + 0, + 83, + 0, + 0, + 54, + 0, + 0, + 27, + 0, + 0, + 5, + 0, + 0, + 74, + 0, + 0, + 129, + 0, + 0, + 203, + 32, + 32, + 221, + 103, + 103, + 232, + 156, + 156, + 235, + 166, + 166, + 237, + 138, + 138, + 239, + 81, + 81, + 239, + 20, + 20, + 209, + 0, + 0, + 195, + 0, + 0, + 182, + 0, + 0, + 120, + 0, + 0, + 94, + 0, + 0, + 64, + 0, + 0, + 34, + 0, + 0, + 87, + 0, + 0, + 146, + 0, + 0, + 194, + 0, + 0, + 218, + 27, + 27, + 232, + 85, + 85, + 236, + 120, + 120, + 239, + 120, + 120, + 239, + 87, + 87, + 239, + 38, + 38, + 225, + 0, + 0, + 206, + 0, + 0, + 183, + 0, + 0, + 167, + 0, + 0, + 149, + 0, + 0, + 71, + 0, + 0, + 43, + 0, + 0, + 15, + 0, + 0, + 157, + 0, + 0, + 197, + 0, + 0, + 225, + 5, + 5, + 235, + 40, + 40, + 239, + 60, + 60, + 239, + 53, + 53, + 239, + 27, + 27, + 227, + 0, + 0, + 208, + 0, + 0, + 201, + 0, + 0, + 181, + 0, + 0, + 151, + 0, + 0, + 132, + 0, + 0, + 108, + 0, + 0, + 79, + 0, + 0, + 18, + 0, + 0, + 2, + 0, + 0, + 98, + 0, + 0, + 233, + 0, + 0, + 239, + 2, + 2, + 231, + 0, + 0, + 216, + 0, + 0, + 203, + 0, + 0, + 186, + 0, + 0, + 176, + 0, + 0, + 112, + 0, + 0, + 19, + 0, + 0, + 36, + 0, + 0, + 88, + 0, + 0, + 200, + 0, + 0, + 211, + 0, + 0, + 205, + 0, + 0, + 179, + 0, + 0, + 131, + 0, + 0, + 110, + 0, + 0, + 30, + 0, + 0, + 126, + 0, + 0, + 192, + 0, + 0, + 164, + 0, + 0, + 141, + 0, + 0, + 127, + 0, + 0, + 105, + 0, + 0, + 80, + 0, + 0, + 48, + 0, + 0, + 145, + 0, + 0, + 169, + 0, + 0, + 188, + 0, + 0, + 170, + 0, + 0, + 155, + 0, + 0, + 101, + 0, + 0, + 73, + 0, + 0, + 42, + 0, + 0, + 14, + 0, + 0, + 52, + 0, + 0, + 172, + 0, + 0, + 175, + 0, + 0, + 173, + 0, + 0, + 166, + 0, + 0, + 137, + 0, + 0, + 122, + 0, + 0, + 107, + 0, + 0, + 90, + 0, + 0, + 62, + 0, + 0, + 41, + 0, + 0, + 106, + 0, + 0, + 130, + 0, + 0, + 159, + 0, + 0, + 158, + 0, + 0, + 150, + 0, + 0, + 143, + 0, + 0, + 124, + 0, + 0, + 25, + 0, + 0, + 7, + 0, + 0, + 85, + 0, + 0, + 142, + 0, + 0, + 138, + 0, + 0, + 56, + 0, + 0, + 16, + 0, + 0, + 63, + 0, + 0, + 114, + 0, + 0, + 128, + 0, + 0, + 92, + 0, + 0, + 55, + 0, + 0, + 44, + 0, + 0, + 102, + 0, + 0, + 67, + 0, + 0, + 86, + 0, + 0, + 32, + 0, + 0, + 51, + 0, + 0, + 60, + 0, + 0, + 58, + 0, + 0, + 31, + 0, + 0, + 12, + 0, + 0, + 29, + 0, + 0, + 13, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 252, + 46, + 217, + 69, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 2, + 8, + 73, + 68, + 65, + 84, + 120, + 156, + 99, + 96, + 128, + 131, + 255, + 16, + 192, + 128, + 1, + 152, + 152, + 89, + 88, + 89, + 217, + 216, + 57, + 56, + 49, + 165, + 57, + 184, + 184, + 121, + 120, + 121, + 249, + 248, + 185, + 5, + 4, + 57, + 80, + 37, + 255, + 51, + 11, + 241, + 8, + 139, + 136, + 138, + 137, + 75, + 72, + 242, + 74, + 9, + 73, + 203, + 32, + 201, + 254, + 103, + 150, + 149, + 147, + 87, + 80, + 84, + 82, + 86, + 81, + 85, + 83, + 215, + 224, + 209, + 100, + 213, + 66, + 72, + 202, + 8, + 105, + 235, + 232, + 234, + 233, + 27, + 24, + 26, + 25, + 155, + 40, + 152, + 10, + 243, + 153, + 153, + 91, + 192, + 228, + 254, + 179, + 90, + 74, + 88, + 89, + 219, + 216, + 218, + 217, + 59, + 56, + 58, + 57, + 43, + 232, + 184, + 184, + 186, + 177, + 67, + 53, + 254, + 119, + 55, + 243, + 176, + 242, + 244, + 242, + 246, + 241, + 245, + 243, + 15, + 8, + 12, + 10, + 22, + 13, + 9, + 13, + 11, + 143, + 128, + 72, + 254, + 103, + 139, + 140, + 10, + 138, + 142, + 137, + 141, + 139, + 79, + 72, + 76, + 74, + 78, + 113, + 86, + 72, + 77, + 75, + 23, + 128, + 58, + 246, + 127, + 70, + 102, + 86, + 118, + 78, + 110, + 94, + 126, + 65, + 97, + 81, + 113, + 114, + 73, + 105, + 89, + 148, + 71, + 121, + 69, + 37, + 88, + 238, + 63, + 147, + 144, + 100, + 85, + 117, + 77, + 109, + 93, + 125, + 67, + 99, + 83, + 179, + 114, + 75, + 105, + 107, + 91, + 123, + 135, + 102, + 39, + 56, + 8, + 254, + 119, + 185, + 117, + 183, + 42, + 59, + 246, + 244, + 246, + 245, + 39, + 77, + 72, + 158, + 56, + 73, + 177, + 85, + 116, + 114, + 40, + 247, + 20, + 136, + 28, + 211, + 212, + 105, + 106, + 147, + 166, + 39, + 205, + 72, + 154, + 217, + 156, + 173, + 52, + 75, + 69, + 53, + 107, + 246, + 156, + 80, + 110, + 105, + 136, + 220, + 255, + 185, + 114, + 243, + 84, + 157, + 170, + 155, + 167, + 87, + 207, + 159, + 56, + 75, + 101, + 129, + 213, + 194, + 69, + 139, + 151, + 44, + 133, + 154, + 249, + 223, + 220, + 85, + 126, + 217, + 242, + 20, + 165, + 21, + 78, + 45, + 147, + 86, + 58, + 175, + 202, + 18, + 75, + 93, + 189, + 102, + 237, + 58, + 168, + 28, + 251, + 122, + 23, + 241, + 214, + 210, + 13, + 27, + 55, + 173, + 220, + 172, + 106, + 149, + 181, + 101, + 235, + 182, + 237, + 59, + 4, + 152, + 161, + 114, + 204, + 59, + 215, + 236, + 218, + 157, + 21, + 188, + 103, + 207, + 94, + 171, + 125, + 251, + 69, + 15, + 200, + 167, + 173, + 49, + 59, + 120, + 8, + 18, + 85, + 255, + 45, + 184, + 164, + 14, + 111, + 19, + 223, + 162, + 176, + 108, + 217, + 145, + 163, + 179, + 183, + 206, + 145, + 228, + 61, + 38, + 112, + 28, + 26, + 139, + 255, + 255, + 31, + 151, + 61, + 113, + 216, + 227, + 164, + 200, + 162, + 83, + 139, + 182, + 170, + 111, + 59, + 173, + 125, + 70, + 72, + 218, + 2, + 46, + 23, + 193, + 118, + 150, + 191, + 195, + 229, + 220, + 54, + 249, + 246, + 93, + 194, + 153, + 124, + 97, + 83, + 165, + 35, + 224, + 137, + 227, + 255, + 127, + 142, + 131, + 178, + 97, + 231, + 121, + 67, + 51, + 47, + 132, + 106, + 167, + 155, + 101, + 116, + 90, + 32, + 165, + 155, + 255, + 255, + 15, + 73, + 95, + 92, + 123, + 73, + 234, + 242, + 229, + 43, + 220, + 59, + 175, + 30, + 239, + 66, + 78, + 82, + 64, + 150, + 197, + 181, + 41, + 172, + 215, + 47, + 94, + 189, + 120, + 157, + 237, + 6, + 90, + 114, + 3, + 177, + 153, + 44, + 100, + 180, + 220, + 221, + 181, + 44, + 48, + 83, + 226, + 127, + 84, + 128, + 154, + 8, + 241, + 72, + 97, + 77, + 215, + 0, + 152, + 72, + 58, + 216, + 223, + 230, + 199, + 242, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 3706, + "offset_body": 3909, + "offset_end": 5899 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "blueball.png" + ] + ] + } + }, + "offset_field": 5985, + "offset_start": 5998, + "offset_end": 6031 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 6031, + "offset_start": 6057, + "offset_end": 6066 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "blueball.png" + ] + ] + } + }, + "offset_field": 6066, + "offset_start": 6086, + "offset_end": 6124 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 8, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 0, + 0, + 8, + 41, + 0, + 16, + 66, + 0, + 16, + 74, + 0, + 8, + 49, + 0, + 16, + 82, + 8, + 33, + 115, + 8, + 41, + 123, + 8, + 41, + 132, + 8, + 33, + 107, + 0, + 24, + 90, + 0, + 8, + 57, + 8, + 33, + 99, + 16, + 57, + 156, + 24, + 66, + 165, + 24, + 66, + 173, + 24, + 66, + 181, + 16, + 57, + 165, + 16, + 49, + 148, + 0, + 24, + 82, + 16, + 49, + 140, + 41, + 82, + 181, + 57, + 99, + 198, + 57, + 99, + 206, + 41, + 90, + 206, + 24, + 74, + 206, + 24, + 66, + 206, + 24, + 66, + 189, + 66, + 107, + 198, + 123, + 156, + 214, + 156, + 189, + 222, + 140, + 181, + 222, + 99, + 148, + 231, + 49, + 107, + 222, + 33, + 82, + 222, + 24, + 74, + 214, + 24, + 66, + 198, + 16, + 49, + 165, + 0, + 0, + 33, + 206, + 231, + 239, + 231, + 239, + 239, + 156, + 198, + 239, + 82, + 132, + 239, + 41, + 90, + 231, + 16, + 57, + 173, + 74, + 123, + 206, + 173, + 206, + 222, + 165, + 206, + 239, + 90, + 140, + 239, + 16, + 49, + 156, + 90, + 132, + 214, + 173, + 214, + 231, + 206, + 239, + 239, + 140, + 189, + 239, + 74, + 123, + 239, + 24, + 57, + 165, + 24, + 74, + 198, + 140, + 189, + 231, + 181, + 231, + 239, + 148, + 189, + 239, + 0, + 0, + 41, + 90, + 140, + 231, + 115, + 165, + 239, + 107, + 156, + 239, + 8, + 41, + 140, + 49, + 99, + 239, + 41, + 90, + 239, + 8, + 33, + 123, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 193, + 50, + 13, + 85, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 136, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 155, + 48, + 24, + 6, + 224, + 18, + 78, + 128, + 38, + 16, + 82, + 147, + 134, + 204, + 9, + 76, + 167, + 5, + 34, + 218, + 170, + 139, + 219, + 172, + 111, + 219, + 124, + 249, + 255, + 191, + 40, + 123, + 210, + 86, + 236, + 177, + 199, + 155, + 47, + 156, + 115, + 157, + 59, + 33, + 228, + 25, + 141, + 134, + 4, + 40, + 68, + 40, + 112, + 163, + 157, + 4, + 56, + 138, + 33, + 81, + 130, + 195, + 143, + 140, + 199, + 132, + 166, + 16, + 146, + 177, + 40, + 65, + 219, + 232, + 114, + 78, + 39, + 123, + 66, + 10, + 49, + 85, + 41, + 41, + 146, + 208, + 13, + 234, + 146, + 76, + 139, + 47, + 251, + 95, + 15, + 202, + 170, + 150, + 83, + 13, + 136, + 6, + 196, + 76, + 239, + 125, + 59, + 60, + 250, + 126, + 124, + 50, + 107, + 90, + 217, + 233, + 44, + 50, + 111, + 123, + 6, + 49, + 157, + 236, + 31, + 158, + 246, + 167, + 103, + 231, + 243, + 166, + 108, + 23, + 138, + 48, + 188, + 41, + 186, + 132, + 107, + 113, + 113, + 217, + 247, + 253, + 213, + 143, + 121, + 83, + 213, + 194, + 82, + 150, + 131, + 121, + 12, + 34, + 50, + 145, + 215, + 63, + 251, + 254, + 215, + 239, + 155, + 89, + 83, + 214, + 66, + 129, + 133, + 107, + 11, + 99, + 186, + 188, + 189, + 190, + 187, + 191, + 127, + 240, + 181, + 86, + 46, + 222, + 205, + 61, + 22, + 90, + 148, + 7, + 127, + 254, + 254, + 187, + 241, + 187, + 213, + 162, + 211, + 132, + 175, + 204, + 141, + 28, + 102, + 79, + 162, + 157, + 205, + 159, + 95, + 26, + 79, + 114, + 106, + 211, + 44, + 78, + 6, + 75, + 151, + 117, + 213, + 128, + 84, + 64, + 11, + 171, + 41, + 143, + 253, + 119, + 122, + 123, + 44, + 168, + 149, + 109, + 89, + 86, + 183, + 53, + 208, + 82, + 105, + 194, + 252, + 249, + 86, + 102, + 98, + 162, + 166, + 117, + 221, + 66, + 73, + 138, + 14, + 136, + 195, + 146, + 27, + 11, + 115, + 150, + 170, + 165, + 20, + 82, + 46, + 58, + 171, + 244, + 107, + 86, + 68, + 102, + 181, + 36, + 88, + 128, + 139, + 44, + 85, + 182, + 235, + 172, + 181, + 42, + 245, + 132, + 215, + 53, + 127, + 136, + 48, + 7, + 212, + 74, + 41, + 157, + 82, + 194, + 139, + 40, + 25, + 8, + 138, + 38, + 31, + 115, + 66, + 41, + 125, + 37, + 156, + 143, + 129, + 214, + 43, + 174, + 204, + 33, + 147, + 199, + 5, + 227, + 156, + 51, + 184, + 119, + 179, + 105, + 109, + 126, + 54, + 96, + 146, + 71, + 144, + 28, + 38, + 2, + 109, + 147, + 199, + 0, + 25, + 131, + 141, + 9, + 223, + 229, + 237, + 110, + 253, + 107, + 128, + 224, + 25, + 192, + 109, + 13, + 197, + 110, + 182, + 167, + 233, + 83, + 249, + 136, + 187, + 227, + 187, + 3, + 255, + 1, + 20, + 84, + 204, + 216, + 153, + 105, + 14, + 191, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 5985, + "offset_body": 6126, + "offset_end": 7940 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "greenball.png" + ] + ] + } + }, + "offset_field": 7980, + "offset_start": 7993, + "offset_end": 8027 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 8027, + "offset_start": 8053, + "offset_end": 8062 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "greenball.png" + ] + ] + } + }, + "offset_field": 8062, + "offset_start": 8082, + "offset_end": 8121 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 27, + 0, + 0, + 0, + 27, + 8, + 3, + 0, + 0, + 0, + 186, + 10, + 4, + 103, + 0, + 0, + 3, + 0, + 80, + 76, + 84, + 69, + 255, + 255, + 255, + 0, + 0, + 0, + 0, + 16, + 0, + 0, + 24, + 0, + 0, + 33, + 0, + 0, + 8, + 0, + 0, + 49, + 0, + 0, + 66, + 0, + 0, + 82, + 0, + 0, + 90, + 0, + 0, + 74, + 0, + 8, + 99, + 0, + 8, + 115, + 0, + 8, + 123, + 0, + 16, + 140, + 0, + 8, + 107, + 0, + 0, + 57, + 0, + 0, + 99, + 0, + 16, + 148, + 0, + 16, + 156, + 0, + 33, + 165, + 0, + 16, + 165, + 0, + 33, + 173, + 0, + 66, + 189, + 24, + 99, + 198, + 49, + 99, + 198, + 57, + 82, + 198, + 33, + 41, + 206, + 0, + 24, + 189, + 0, + 16, + 173, + 0, + 24, + 173, + 0, + 33, + 189, + 0, + 148, + 214, + 99, + 173, + 214, + 123, + 132, + 214, + 82, + 74, + 222, + 24, + 33, + 214, + 0, + 24, + 198, + 0, + 24, + 181, + 0, + 0, + 41, + 0, + 66, + 206, + 16, + 206, + 231, + 148, + 222, + 231, + 173, + 198, + 231, + 148, + 148, + 231, + 99, + 82, + 231, + 33, + 33, + 222, + 0, + 24, + 206, + 0, + 82, + 222, + 33, + 156, + 231, + 107, + 214, + 239, + 156, + 189, + 239, + 140, + 132, + 239, + 82, + 66, + 239, + 16, + 173, + 239, + 123, + 165, + 222, + 115, + 90, + 239, + 41, + 33, + 231, + 0, + 24, + 214, + 0, + 49, + 231, + 0, + 82, + 239, + 33, + 107, + 239, + 57, + 74, + 239, + 24, + 41, + 231, + 0, + 41, + 239, + 0, + 49, + 239, + 0, + 8, + 132, + 0, + 16, + 181, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 41, + 213, + 249, + 217, + 0, + 0, + 0, + 1, + 116, + 82, + 78, + 83, + 0, + 64, + 230, + 216, + 102, + 0, + 0, + 0, + 22, + 116, + 69, + 88, + 116, + 83, + 111, + 102, + 116, + 119, + 97, + 114, + 101, + 0, + 103, + 105, + 102, + 50, + 112, + 110, + 103, + 32, + 50, + 46, + 48, + 46, + 49, + 61, + 94, + 190, + 104, + 0, + 0, + 1, + 109, + 73, + 68, + 65, + 84, + 120, + 156, + 117, + 210, + 109, + 87, + 194, + 32, + 20, + 7, + 112, + 15, + 108, + 200, + 128, + 193, + 4, + 215, + 227, + 92, + 169, + 219, + 40, + 43, + 233, + 185, + 180, + 44, + 179, + 239, + 255, + 153, + 136, + 185, + 135, + 179, + 44, + 239, + 171, + 157, + 243, + 59, + 247, + 50, + 248, + 223, + 94, + 175, + 45, + 91, + 85, + 239, + 79, + 89, + 0, + 61, + 207, + 131, + 16, + 248, + 127, + 24, + 162, + 62, + 198, + 1, + 38, + 125, + 228, + 129, + 223, + 104, + 17, + 166, + 44, + 228, + 156, + 135, + 34, + 32, + 200, + 235, + 182, + 218, + 104, + 16, + 74, + 53, + 28, + 14, + 227, + 88, + 114, + 129, + 163, + 46, + 34, + 202, + 213, + 193, + 225, + 209, + 241, + 201, + 105, + 50, + 138, + 57, + 195, + 8, + 182, + 6, + 49, + 79, + 207, + 78, + 206, + 199, + 227, + 201, + 52, + 203, + 11, + 197, + 5, + 209, + 205, + 153, + 54, + 98, + 170, + 184, + 152, + 92, + 206, + 174, + 174, + 111, + 230, + 38, + 73, + 85, + 24, + 68, + 94, + 125, + 25, + 224, + 218, + 178, + 219, + 187, + 251, + 217, + 195, + 227, + 83, + 102, + 146, + 34, + 118, + 141, + 205, + 137, + 222, + 64, + 22, + 103, + 211, + 235, + 231, + 151, + 199, + 215, + 197, + 210, + 153, + 27, + 138, + 81, + 53, + 212, + 106, + 161, + 242, + 236, + 237, + 125, + 181, + 250, + 248, + 52, + 89, + 94, + 255, + 13, + 216, + 14, + 181, + 145, + 80, + 137, + 89, + 172, + 191, + 214, + 243, + 165, + 201, + 147, + 34, + 85, + 27, + 209, + 26, + 18, + 50, + 49, + 217, + 124, + 153, + 153, + 146, + 70, + 138, + 135, + 148, + 104, + 191, + 182, + 1, + 143, + 19, + 99, + 202, + 38, + 71, + 169, + 228, + 44, + 168, + 110, + 239, + 76, + 227, + 80, + 165, + 73, + 94, + 202, + 119, + 170, + 228, + 182, + 13, + 84, + 137, + 88, + 216, + 119, + 207, + 50, + 74, + 11, + 39, + 177, + 35, + 70, + 113, + 4, + 253, + 218, + 124, + 77, + 4, + 151, + 42, + 142, + 149, + 146, + 114, + 195, + 202, + 247, + 4, + 77, + 146, + 22, + 34, + 66, + 203, + 16, + 56, + 223, + 132, + 130, + 146, + 14, + 185, + 70, + 23, + 94, + 64, + 25, + 99, + 66, + 208, + 160, + 223, + 210, + 214, + 172, + 15, + 116, + 68, + 48, + 198, + 212, + 69, + 171, + 97, + 67, + 182, + 222, + 19, + 0, + 53, + 66, + 145, + 70, + 94, + 181, + 19, + 157, + 189, + 113, + 31, + 190, + 15, + 97, + 185, + 44, + 173, + 52, + 217, + 218, + 255, + 170, + 183, + 31, + 187, + 219, + 180, + 87, + 118, + 241, + 159, + 245, + 221, + 133, + 31, + 205, + 97, + 231, + 141, + 210, + 8, + 44, + 44, + 0, + 0, + 0, + 37, + 116, + 69, + 88, + 116, + 67, + 111, + 109, + 109, + 101, + 110, + 116, + 0, + 99, + 108, + 105, + 112, + 50, + 103, + 105, + 102, + 32, + 118, + 46, + 48, + 46, + 54, + 32, + 98, + 121, + 32, + 89, + 118, + 101, + 115, + 32, + 80, + 105, + 103, + 117, + 101, + 116, + 54, + 115, + 59, + 188, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 7980, + "offset_body": 8123, + "offset_end": 9899 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/052.crlf.json b/tests/legacy/052.crlf.json new file mode 100644 index 0000000..fbb1531 --- /dev/null +++ b/tests/legacy/052.crlf.json @@ -0,0 +1,148 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz M�ller", + "address": "mueller@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 82 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Fr�sche (Microsoft Outlook 00)" + }, + "offset_field": 82, + "offset_start": 90, + "offset_end": 141 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 28, + "second": 40, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 141, + "offset_start": 146, + "offset_end": 180 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGOEKDCHAA.doug@example.com" + }, + "offset_field": 180, + "offset_start": 191, + "offset_end": 241 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 241, + "offset_start": 252, + "offset_end": 265 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 265, + "offset_start": 283, + "offset_end": 292 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 292, + "offset_start": 301, + "offset_end": 354 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 354, + "offset_start": 365, + "offset_end": 374 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 374, + "offset_start": 384, + "offset_end": 432 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Fr�sche\r\n\r\nDie Hasen klagten einst �ber ihre mi�liche Lage; \"wir leben\", sprach ein\r\nRedner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der\r\nAdler, ja fast aller Raubtiere! Unsere stete Angst ist �rger als der Tod\r\nselbst. Auf, la�t uns ein f�r allemal sterben.\"\r\n\r\nIn einem nahen Teich wollten sie sich nun ers�ufen; sie eilten ihm zu;\r\nallein das au�erordentliche Get�se und ihre wunderbare Gestalt erschreckte\r\neine Menge Fr�sche, die am Ufer sa�en, so sehr, da� sie aufs schnellste\r\nuntertauchten.\r\n\r\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ers�ufen noch ein\r\nwenig aufschieben, denn auch uns f�rchten, wie ihr seht, einige Tiere,\r\nwelche also wohl noch ungl�cklicher sein m�ssen als wir.\"\r\n\r\n" + }, + "offset_header": 0, + "offset_body": 434, + "offset_end": 1186 + } + ] +} \ No newline at end of file diff --git a/tests/legacy/053.crlf.json b/tests/legacy/053.crlf.json new file mode 100644 index 0000000..7508da8 --- /dev/null +++ b/tests/legacy/053.crlf.json @@ -0,0 +1,190 @@ +{ + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Doug Sauder", + "address": "doug@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 40 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Heinz Müller", + "address": "mueller@example.com" + } + }, + "offset_field": 40, + "offset_start": 43, + "offset_end": 97 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Die Hasen und die Frösche (Microsoft Outlook 00)" + }, + "offset_field": 97, + "offset_start": 105, + "offset_end": 177 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2000, + "month": 5, + "day": 17, + "hour": 19, + "minute": 27, + "second": 4, + "tz_before_gmt": true, + "tz_hour": 4, + "tz_minute": 0 + } + }, + "offset_field": 177, + "offset_start": 182, + "offset_end": 216 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "NDBBIAKOPKHFGPLCODIGKEKDCHAA.doug@example.com" + }, + "offset_field": 216, + "offset_start": 227, + "offset_end": 277 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 277, + "offset_start": 290, + "offset_end": 296 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "utf-8" + ] + ] + } + }, + "offset_field": 296, + "offset_start": 309, + "offset_end": 341 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 341, + "offset_start": 367, + "offset_end": 386 + }, + { + "name": { + "Other": "X-Priority" + }, + "value": { + "Text": " 3 (Normal)\r\n" + }, + "offset_field": 386, + "offset_start": 397, + "offset_end": 410 + }, + { + "name": { + "Other": "X-MSMail-Priority" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 410, + "offset_start": 428, + "offset_end": 437 + }, + { + "name": { + "Other": "X-Mailer" + }, + "value": { + "Text": " Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)\r\n" + }, + "offset_field": 437, + "offset_start": 446, + "offset_end": 499 + }, + { + "name": { + "Other": "Importance" + }, + "value": { + "Text": " Normal\r\n" + }, + "offset_field": 499, + "offset_start": 510, + "offset_end": 519 + }, + { + "name": { + "Other": "X-MimeOLE" + }, + "value": { + "Text": " Produced By Microsoft MimeOLE V5.00.2314.1300\r\n" + }, + "offset_field": 519, + "offset_start": 529, + "offset_end": 577 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Die Hasen und die Frösche\n\nDie Hasen klagten einst über ihre mißliche Lage; \"wir leben\", sprach ein Redner, \"in steter Furcht vor Menschen und Tieren, eine Beute der Hunde, der Adler, ja fast aller Raubtiere! Unsere stete Angst ist ärger als der Tod selbst. Auf, laßt uns ein für allemal sterben.\" \n\nIn einem nahen Teich wollten sie sich nun ersäufen; sie eilten ihm zu; allein das außerordentliche Getöse und ihre wunderbare Gestalt erschreckte eine Menge Frösche, die am Ufer saßen, so sehr, daß sie aufs schnellste untertauchten. \n\n\"Halt\", rief nun eben dieser Sprecher, \"wir wollen das Ersäufen noch ein wenig aufschieben, denn auch uns fürchten, wie ihr seht, einige Tiere, welche also wohl noch unglücklicher sein müssen als wir.\" \n" + }, + "offset_header": 0, + "offset_body": 579, + "offset_end": 1440 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/000.crlf.json b/tests/malformed/000.crlf.json new file mode 100644 index 0000000..6785c97 --- /dev/null +++ b/tests/malformed/000.crlf.json @@ -0,0 +1,38 @@ +{ + "html_body": [], + "text_body": [], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + ":foo" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 48 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [] + }, + "offset_header": 0, + "offset_body": 50, + "offset_end": 169 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/001.crlf.json b/tests/malformed/001.crlf.json new file mode 100644 index 0000000..1068d03 --- /dev/null +++ b/tests/malformed/001.crlf.json @@ -0,0 +1,116 @@ +{ + "html_body": [ + 2 + ], + "text_body": [ + 2 + ], + "attachments": [ + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "ab" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 46 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1 + ] + }, + "offset_header": 0, + "offset_body": 48, + "offset_end": 142 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "a" + ] + ] + } + }, + "offset_field": 54, + "offset_start": 67, + "offset_end": 99 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3 + ] + }, + "offset_header": 54, + "offset_body": 101, + "offset_end": 142 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 107, + "offset_start": 120, + "offset_end": 133 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "" + }, + "offset_header": 104, + "offset_body": 135, + "offset_end": 135 + }, + { + "headers": [], + "is_encoding_problem": true, + "body": { + "Text": "" + }, + "offset_header": 140, + "offset_body": 142, + "offset_end": 142 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/001.json b/tests/malformed/001.json index 2a4f372..00cda5f 100644 --- a/tests/malformed/001.json +++ b/tests/malformed/001.json @@ -77,14 +77,30 @@ "offset_end": 132 }, { - "headers": [], + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 101, + "offset_start": 114, + "offset_end": 126 + } + ], "is_encoding_problem": false, "body": { - "Text": "Content-Type: text/plain\n" + "Text": "" }, "offset_header": 99, - "offset_body": 101, - "offset_end": 126 + "offset_body": 127, + "offset_end": 127 }, { "headers": [], diff --git a/tests/malformed/002.crlf.json b/tests/malformed/002.crlf.json new file mode 100644 index 0000000..023c5fd --- /dev/null +++ b/tests/malformed/002.crlf.json @@ -0,0 +1,40 @@ +{ + "html_body": [], + "text_body": [], + "attachments": [ + 0 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "ab" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 46 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "body\r\n" + }, + "offset_header": 0, + "offset_body": 48, + "offset_end": 54 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/003.crlf.json b/tests/malformed/003.crlf.json new file mode 100644 index 0000000..bca1098 --- /dev/null +++ b/tests/malformed/003.crlf.json @@ -0,0 +1,101 @@ +{ + "html_body": [], + "text_body": [], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "a" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 45 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1 + ] + }, + "offset_header": 0, + "offset_body": 47, + "offset_end": 138 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "a" + ] + ] + } + }, + "offset_field": 52, + "offset_start": 65, + "offset_end": 97 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2 + ] + }, + "offset_header": 52, + "offset_body": 99, + "offset_end": 138 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 104, + "offset_start": 117, + "offset_end": 130 + } + ], + "is_encoding_problem": true, + "body": { + "Text": "body\r\n" + }, + "offset_header": 104, + "offset_body": 132, + "offset_end": 138 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/004.crlf.json b/tests/malformed/004.crlf.json new file mode 100644 index 0000000..7b12844 --- /dev/null +++ b/tests/malformed/004.crlf.json @@ -0,0 +1,101 @@ +{ + "html_body": [], + "text_body": [], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "a" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 45 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1 + ] + }, + "offset_header": 0, + "offset_body": 47, + "offset_end": 140 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "a" + ] + ] + } + }, + "offset_field": 53, + "offset_start": 66, + "offset_end": 98 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2 + ] + }, + "offset_header": 50, + "offset_body": 100, + "offset_end": 140 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 106, + "offset_start": 119, + "offset_end": 132 + } + ], + "is_encoding_problem": true, + "body": { + "Text": "body\r\n" + }, + "offset_header": 103, + "offset_body": 134, + "offset_end": 140 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/004.json b/tests/malformed/004.json index 8e6c627..b00ef77 100644 --- a/tests/malformed/004.json +++ b/tests/malformed/004.json @@ -2,7 +2,7 @@ "html_body": [], "text_body": [], "attachments": [ - 1 + 2 ], "parts": [ { @@ -39,13 +39,62 @@ "offset_end": 131 }, { - "headers": [], - "is_encoding_problem": true, + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "a" + ] + ] + } + }, + "offset_field": 50, + "offset_start": 63, + "offset_end": 94 + } + ], + "is_encoding_problem": false, "body": { - "Text": "Content-Type: multipart/mixed; boundary=\"a\"\n\n--ac\nContent-Type: text/plain\n\nbody\n" + "Multipart": [ + 2 + ] }, "offset_header": 48, - "offset_body": 50, + "offset_body": 95, + "offset_end": 131 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 100, + "offset_start": 113, + "offset_end": 125 + } + ], + "is_encoding_problem": true, + "body": { + "Text": "body\n" + }, + "offset_header": 98, + "offset_body": 126, "offset_end": 131 } ] diff --git a/tests/malformed/005.crlf.json b/tests/malformed/005.crlf.json new file mode 100644 index 0000000..d932c61 --- /dev/null +++ b/tests/malformed/005.crlf.json @@ -0,0 +1,103 @@ +{ + "html_body": [ + 2 + ], + "text_body": [ + 2 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "a--" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 47 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1 + ] + }, + "offset_header": 0, + "offset_body": 49, + "offset_end": 202 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "a----" + ] + ] + } + }, + "offset_field": 56, + "offset_start": 69, + "offset_end": 105 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2 + ] + }, + "offset_header": 56, + "offset_body": 107, + "offset_end": 193 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 116, + "offset_start": 129, + "offset_end": 142 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "body" + }, + "offset_header": 116, + "offset_body": 144, + "offset_end": 148 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/006.crlf.json b/tests/malformed/006.crlf.json new file mode 100644 index 0000000..6b085a6 --- /dev/null +++ b/tests/malformed/006.crlf.json @@ -0,0 +1,101 @@ +{ + "html_body": [], + "text_body": [], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "a" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 45 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1 + ] + }, + "offset_header": 0, + "offset_body": 47, + "offset_end": 140 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "ab" + ] + ] + } + }, + "offset_field": 52, + "offset_start": 65, + "offset_end": 98 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2 + ] + }, + "offset_header": 52, + "offset_body": 100, + "offset_end": 140 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 106, + "offset_start": 119, + "offset_end": 132 + } + ], + "is_encoding_problem": true, + "body": { + "Text": "body\r\n" + }, + "offset_header": 106, + "offset_body": 134, + "offset_end": 140 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/007.crlf.json b/tests/malformed/007.crlf.json new file mode 100644 index 0000000..1e18c57 --- /dev/null +++ b/tests/malformed/007.crlf.json @@ -0,0 +1,114 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "a" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 45 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 47, + "offset_end": 168 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "ab" + ] + ] + } + }, + "offset_field": 52, + "offset_start": 65, + "offset_end": 98 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 98, + "offset_start": 111, + "offset_end": 117 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 123, + "offset_start": 136, + "offset_end": 149 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "" + }, + "offset_header": 52, + "offset_body": 151, + "offset_end": 151 + }, + { + "headers": [], + "is_encoding_problem": true, + "body": { + "Text": "" + }, + "offset_header": 154, + "offset_body": 168, + "offset_end": 168 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/007.json b/tests/malformed/007.json index 8ab029a..1c1994a 100644 --- a/tests/malformed/007.json +++ b/tests/malformed/007.json @@ -1,6 +1,10 @@ { - "html_body": [], - "text_body": [], + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], "attachments": [ 2 ], @@ -31,7 +35,8 @@ "is_encoding_problem": false, "body": { "Multipart": [ - 1 + 1, + 2 ] }, "offset_header": 0, @@ -70,26 +75,39 @@ "offset_field": 94, "offset_start": 107, "offset_end": 112 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 117, + "offset_start": 130, + "offset_end": 142 } ], "is_encoding_problem": false, "body": { - "Multipart": [ - 2 - ] + "Text": "" }, "offset_header": 49, - "offset_body": 117, - "offset_end": 157 + "offset_body": 143, + "offset_end": 143 }, { "headers": [], "is_encoding_problem": true, "body": { - "Text": "--a--\n\n" + "Text": "" }, - "offset_header": 147, - "offset_body": 150, + "offset_header": 146, + "offset_body": 157, "offset_end": 157 } ] diff --git a/tests/malformed/008.crlf.json b/tests/malformed/008.crlf.json new file mode 100644 index 0000000..c0837f6 --- /dev/null +++ b/tests/malformed/008.crlf.json @@ -0,0 +1,132 @@ +{ + "html_body": [ + 2 + ], + "text_body": [ + 2 + ], + "attachments": [ + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "ab" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 46 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1 + ] + }, + "offset_header": 0, + "offset_body": 48, + "offset_end": 180 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "a" + ] + ] + } + }, + "offset_field": 54, + "offset_start": 67, + "offset_end": 99 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3 + ] + }, + "offset_header": 54, + "offset_body": 101, + "offset_end": 180 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 106, + "offset_start": 119, + "offset_end": 132 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "body" + }, + "offset_header": 106, + "offset_body": 134, + "offset_end": 138 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": null + } + }, + "offset_field": 146, + "offset_start": 159, + "offset_end": 171 + } + ], + "is_encoding_problem": true, + "body": { + "Text": "body2\r\n" + }, + "offset_header": 143, + "offset_body": 173, + "offset_end": 180 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/008.json b/tests/malformed/008.json index 115a302..283040c 100644 --- a/tests/malformed/008.json +++ b/tests/malformed/008.json @@ -1,9 +1,13 @@ { - "html_body": [], - "text_body": [], - "attachments": [ + "html_body": [ 2 ], + "text_body": [ + 2 + ], + "attachments": [ + 3 + ], "parts": [ { "headers": [ @@ -64,7 +68,8 @@ "is_encoding_problem": false, "body": { "Multipart": [ - 2 + 2, + 3 ] }, "offset_header": 51, @@ -89,12 +94,38 @@ "offset_end": 125 } ], - "is_encoding_problem": true, + "is_encoding_problem": false, "body": { - "Text": "body\n--ab\nContent-Type: text/html\n\nbody2\n" + "Text": "body" }, "offset_header": 100, "offset_body": 126, + "offset_end": 130 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": null + } + }, + "offset_field": 136, + "offset_start": 149, + "offset_end": 160 + } + ], + "is_encoding_problem": true, + "body": { + "Text": "body2\n" + }, + "offset_header": 134, + "offset_body": 161, "offset_end": 167 } ] diff --git a/tests/malformed/009.crlf.json b/tests/malformed/009.crlf.json new file mode 100644 index 0000000..1529d68 --- /dev/null +++ b/tests/malformed/009.crlf.json @@ -0,0 +1,132 @@ +{ + "html_body": [ + 2 + ], + "text_body": [ + 2 + ], + "attachments": [ + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 45 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1 + ] + }, + "offset_header": 0, + "offset_body": 47, + "offset_end": 210 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "2" + ] + ] + } + }, + "offset_field": 52, + "offset_start": 65, + "offset_end": 97 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3 + ] + }, + "offset_header": 52, + "offset_body": 99, + "offset_end": 210 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 104, + "offset_start": 117, + "offset_end": 130 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "1" + }, + "offset_header": 104, + "offset_body": 132, + "offset_end": 133 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 140, + "offset_start": 153, + "offset_end": 166 + } + ], + "is_encoding_problem": true, + "body": { + "Text": "22\r\n--1\r\nContent-Type: text/plain\r\n\r\n333\r\n" + }, + "offset_header": 140, + "offset_body": 168, + "offset_end": 210 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/010.crlf.json b/tests/malformed/010.crlf.json new file mode 100644 index 0000000..4f8e0ee --- /dev/null +++ b/tests/malformed/010.crlf.json @@ -0,0 +1,105 @@ +{ + "html_body": [], + "text_body": [], + "attachments": [ + 0 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "rfc822", + "attributes": null + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 30 + } + ], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [], + "text_body": [], + "attachments": [ + 0 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "rfc822", + "attributes": null + } + }, + "offset_field": 32, + "offset_start": 45, + "offset_end": 62 + } + ], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 64, + "offset_start": 77, + "offset_end": 90 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "1\r\n" + }, + "offset_header": 64, + "offset_body": 92, + "offset_end": 95 + } + ] + } + }, + "offset_header": 32, + "offset_body": 64, + "offset_end": 95 + } + ] + } + }, + "offset_header": 0, + "offset_body": 32, + "offset_end": 95 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/011.crlf.json b/tests/malformed/011.crlf.json new file mode 100644 index 0000000..1529d68 --- /dev/null +++ b/tests/malformed/011.crlf.json @@ -0,0 +1,132 @@ +{ + "html_body": [ + 2 + ], + "text_body": [ + 2 + ], + "attachments": [ + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 45 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1 + ] + }, + "offset_header": 0, + "offset_body": 47, + "offset_end": 210 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "2" + ] + ] + } + }, + "offset_field": 52, + "offset_start": 65, + "offset_end": 97 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3 + ] + }, + "offset_header": 52, + "offset_body": 99, + "offset_end": 210 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 104, + "offset_start": 117, + "offset_end": 130 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "1" + }, + "offset_header": 104, + "offset_body": 132, + "offset_end": 133 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 140, + "offset_start": 153, + "offset_end": 166 + } + ], + "is_encoding_problem": true, + "body": { + "Text": "22\r\n--1\r\nContent-Type: text/plain\r\n\r\n333\r\n" + }, + "offset_header": 140, + "offset_body": 168, + "offset_end": 210 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/012.crlf.json b/tests/malformed/012.crlf.json new file mode 100644 index 0000000..534f236 --- /dev/null +++ b/tests/malformed/012.crlf.json @@ -0,0 +1,199 @@ +{ + "html_body": [], + "text_body": [], + "attachments": [ + 2, + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 45 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1 + ] + }, + "offset_header": 0, + "offset_body": 47, + "offset_end": 306 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "2" + ] + ] + } + }, + "offset_field": 52, + "offset_start": 65, + "offset_end": 97 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3 + ] + }, + "offset_header": 52, + "offset_body": 99, + "offset_end": 306 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "rfc822", + "attributes": null + } + }, + "offset_field": 104, + "offset_start": 117, + "offset_end": 134 + } + ], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 136, + "offset_start": 149, + "offset_end": 162 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "1" + }, + "offset_header": 136, + "offset_body": 164, + "offset_end": 165 + } + ] + } + }, + "offset_header": 104, + "offset_body": 136, + "offset_end": 165 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "rfc822", + "attributes": null + } + }, + "offset_field": 172, + "offset_start": 185, + "offset_end": 202 + } + ], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [], + "text_body": [], + "attachments": [ + 0 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 204, + "offset_start": 217, + "offset_end": 230 + } + ], + "is_encoding_problem": true, + "body": { + "Text": "22\r\n--1\r\nContent-Type: message/rfc822\r\n\r\nContent-Type: text/plain\r\n\r\n333\r\n" + }, + "offset_header": 204, + "offset_body": 232, + "offset_end": 306 + } + ] + } + }, + "offset_header": 172, + "offset_body": 204, + "offset_end": 306 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/013.crlf.json b/tests/malformed/013.crlf.json new file mode 100644 index 0000000..85dd65d --- /dev/null +++ b/tests/malformed/013.crlf.json @@ -0,0 +1,298 @@ +{ + "html_body": [ + 1, + 3, + 5, + 7 + ], + "text_body": [ + 1, + 3, + 5, + 7 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 45 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 45, + "offset_start": 58, + "offset_end": 64 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 66, + "offset_end": 468 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 71, + "offset_start": 84, + "offset_end": 97 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "hello, world" + }, + "offset_header": 71, + "offset_body": 99, + "offset_end": 111 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 118, + "offset_start": 131, + "offset_end": 163 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "2.0" + }, + "offset_field": 163, + "offset_start": 176, + "offset_end": 182 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 3, + 4 + ] + }, + "offset_header": 118, + "offset_body": 184, + "offset_end": 468 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 189, + "offset_start": 202, + "offset_end": 215 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "hello, world" + }, + "offset_header": 189, + "offset_body": 217, + "offset_end": 229 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 236, + "offset_start": 249, + "offset_end": 281 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "abc" + }, + "offset_field": 281, + "offset_start": 294, + "offset_end": 300 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 5, + 6 + ] + }, + "offset_header": 236, + "offset_body": 302, + "offset_end": 468 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 307, + "offset_start": 320, + "offset_end": 333 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "hello, world" + }, + "offset_header": 307, + "offset_body": 335, + "offset_end": 347 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 354, + "offset_start": 367, + "offset_end": 399 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": "Empty", + "offset_field": 399, + "offset_start": 412, + "offset_end": 414 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 7 + ] + }, + "offset_header": 354, + "offset_body": 416, + "offset_end": 468 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 421, + "offset_start": 434, + "offset_end": 447 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "hello, world" + }, + "offset_header": 421, + "offset_body": 449, + "offset_end": 461 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/014.crlf.json b/tests/malformed/014.crlf.json new file mode 100644 index 0000000..383985a --- /dev/null +++ b/tests/malformed/014.crlf.json @@ -0,0 +1,70 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 45 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1 + ] + }, + "offset_header": 0, + "offset_body": 47, + "offset_end": 99 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 52, + "offset_start": 65, + "offset_end": 78 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "hello, world" + }, + "offset_header": 52, + "offset_body": 80, + "offset_end": 92 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/015.crlf.json b/tests/malformed/015.crlf.json new file mode 100644 index 0000000..105dd66 --- /dev/null +++ b/tests/malformed/015.crlf.json @@ -0,0 +1,226 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "return_path" + }, + "value": { + "Text": "test@example.org" + }, + "offset_field": 0, + "offset_start": 12, + "offset_end": 33 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Hello world" + }, + "offset_field": 33, + "offset_start": 41, + "offset_end": 55 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Test User", + "address": "test@example.org" + } + }, + "offset_field": 55, + "offset_start": 60, + "offset_end": 91 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Another User", + "address": "test2@example.org" + } + }, + "offset_field": 91, + "offset_start": 94, + "offset_end": 129 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "1.2.3.4@example" + }, + "offset_field": 129, + "offset_start": 140, + "offset_end": 160 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 160, + "offset_start": 173, + "offset_end": 179 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2007, + "month": 5, + "day": 23, + "hour": 4, + "minute": 58, + "second": 8, + "tz_before_gmt": false, + "tz_hour": 3, + "tz_minute": 0 + } + }, + "offset_field": 179, + "offset_start": 184, + "offset_end": 218 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "signed", + "attributes": [ + [ + "micalg", + "pgp-sha1" + ], + [ + "protocol", + "application/pgp-signature" + ], + [ + "boundary", + "=-GNQXLhuj24Pl1aCkk4/d" + ] + ] + } + }, + "offset_field": 218, + "offset_start": 231, + "offset_end": 344 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 346, + "offset_end": 612 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 372, + "offset_start": 385, + "offset_end": 398 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 398, + "offset_start": 424, + "offset_end": 443 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "There was a day \na happy day\n" + }, + "offset_header": 372, + "offset_body": 445, + "offset_end": 480 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "application", + "c_subtype": "pgp-signature", + "attributes": [ + [ + "name", + "signature.asc" + ] + ] + } + }, + "offset_field": 508, + "offset_start": 521, + "offset_end": 569 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 105, + 110, + 118, + 97, + 108, + 105, + 100, + 13, + 10 + ] + }, + "offset_header": 508, + "offset_body": 571, + "offset_end": 580 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/016.crlf.json b/tests/malformed/016.crlf.json new file mode 100644 index 0000000..2736fc8 --- /dev/null +++ b/tests/malformed/016.crlf.json @@ -0,0 +1,223 @@ +{ + "html_body": [ + 3, + 4, + 5 + ], + "text_body": [ + 3, + 4, + 5 + ], + "attachments": [ + 6 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1234567890123456789012345678901234567890123456789012345678901234567890123456789012" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 126 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1 + ] + }, + "offset_header": 0, + "offset_body": 128, + "offset_end": 1021 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "123456789012345678901234567890123456789012345678901234567890123456789012345678901" + ] + ] + } + }, + "offset_field": 214, + "offset_start": 227, + "offset_end": 339 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2 + ] + }, + "offset_header": 214, + "offset_body": 341, + "offset_end": 1021 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "12345678901234567890123456789012345678901234567890123456789012345678901234567890" + ] + ] + } + }, + "offset_field": 426, + "offset_start": 439, + "offset_end": 550 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 3, + 4, + 5, + 6 + ] + }, + "offset_header": 426, + "offset_body": 552, + "offset_end": 1021 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 636, + "offset_start": 649, + "offset_end": 662 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "1" + }, + "offset_header": 636, + "offset_body": 664, + "offset_end": 665 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 753, + "offset_start": 766, + "offset_end": 779 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "22" + }, + "offset_header": 749, + "offset_body": 781, + "offset_end": 783 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 870, + "offset_start": 883, + "offset_end": 896 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "333" + }, + "offset_header": 867, + "offset_body": 898, + "offset_end": 901 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 987, + "offset_start": 1000, + "offset_end": 1013 + } + ], + "is_encoding_problem": true, + "body": { + "Text": "4444\r\n" + }, + "offset_header": 987, + "offset_body": 1015, + "offset_end": 1021 + } + ] +} \ No newline at end of file diff --git a/tests/malformed/016.json b/tests/malformed/016.json index eb2de57..1f3ef3b 100644 --- a/tests/malformed/016.json +++ b/tests/malformed/016.json @@ -1,12 +1,16 @@ { "html_body": [ - 3 + 3, + 4, + 5 ], "text_body": [ - 3 + 3, + 4, + 5 ], "attachments": [ - 4 + 6 ], "parts": [ { @@ -102,7 +106,9 @@ "body": { "Multipart": [ 3, - 4 + 4, + 5, + 6 ] }, "offset_header": 420, @@ -129,10 +135,62 @@ ], "is_encoding_problem": false, "body": { - "Text": "1\n--1234567890123456789012345678901234567890123456789012345678901234567890123456789012\nContent-Type: text/plain\n\n22\n--123456789012345678901234567890123456789012345678901234567890123456789012345678901\nContent-Type: text/plain\n\n333" + "Text": "1" }, "offset_header": 627, "offset_body": 653, + "offset_end": 654 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 740, + "offset_start": 753, + "offset_end": 765 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "22" + }, + "offset_header": 737, + "offset_body": 766, + "offset_end": 768 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 853, + "offset_start": 866, + "offset_end": 878 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "333" + }, + "offset_header": 851, + "offset_body": 879, "offset_end": 882 }, { diff --git a/tests/rfc/000.crlf.json b/tests/rfc/000.crlf.json new file mode 100644 index 0000000..3fa72f2 --- /dev/null +++ b/tests/rfc/000.crlf.json @@ -0,0 +1,418 @@ +{ + "html_body": [ + 1, + 2 + ], + "text_body": [ + 1, + 2 + ], + "attachments": [ + 4, + 5, + 6, + 7 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 19 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Nathaniel Borenstein", + "address": "nsb@nsb.fv.com" + } + }, + "offset_field": 19, + "offset_start": 24, + "offset_end": 64 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Ned Freed", + "address": "ned@innosoft.com" + } + }, + "offset_field": 64, + "offset_start": 67, + "offset_end": 98 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 1994, + "month": 10, + "day": 7, + "hour": 16, + "minute": 15, + "second": 5, + "tz_before_gmt": true, + "tz_hour": 7, + "tz_minute": 0 + } + }, + "offset_field": 98, + "offset_start": 103, + "offset_end": 143 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "A multipart example" + }, + "offset_field": 143, + "offset_start": 151, + "offset_end": 173 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "unique-boundary-1" + ] + ] + } + }, + "offset_field": 173, + "offset_start": 186, + "offset_end": 245 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3, + 6, + 7 + ] + }, + "offset_header": 0, + "offset_body": 247, + "offset_end": 1925 + }, + { + "headers": [], + "is_encoding_problem": false, + "body": { + "Text": "... Some text appears here ...\r\n\r\n[Note that the blank between the boundary and the start\r\nof the text in this part means no header fields were\r\ngiven and this is text in the US-ASCII character set.\r\nIt could have been done with explicit typing as in the\r\nnext part.]\r\n" + }, + "offset_header": 547, + "offset_body": 549, + "offset_end": 818 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "US-ASCII" + ] + ] + } + }, + "offset_field": 841, + "offset_start": 854, + "offset_end": 885 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "This could have been part of the previous part, but\r\nillustrates explicit versus implicit typing of body\r\nparts.\r\n" + }, + "offset_header": 841, + "offset_body": 887, + "offset_end": 1001 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "parallel", + "attributes": [ + [ + "boundary", + "unique-boundary-2" + ] + ] + } + }, + "offset_field": 1024, + "offset_start": 1037, + "offset_end": 1086 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 4, + 5 + ] + }, + "offset_header": 1024, + "offset_body": 1088, + "offset_end": 1416 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "audio", + "c_subtype": "basic", + "attributes": null + } + }, + "offset_field": 1109, + "offset_start": 1122, + "offset_end": 1136 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 1136, + "offset_start": 1162, + "offset_end": 1171 + } + ], + "is_encoding_problem": true, + "body": { + "Text": "... base64-encoded 8000 Hz single-channel\r\n mu-law-format audio data goes here ...\r\n" + }, + "offset_header": 1109, + "offset_body": 1173, + "offset_end": 1260 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "jpeg", + "attributes": null + } + }, + "offset_field": 1283, + "offset_start": 1296, + "offset_end": 1309 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 1309, + "offset_start": 1335, + "offset_end": 1344 + } + ], + "is_encoding_problem": true, + "body": { + "Text": "... base64-encoded image data goes here ...\r\n" + }, + "offset_header": 1283, + "offset_body": 1346, + "offset_end": 1391 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "enriched", + "attributes": null + } + }, + "offset_field": 1439, + "offset_start": 1452, + "offset_end": 1468 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "This is enriched.\r\nas defined in RFC 1896\r\n\r\nIsn't it\r\ncool?\r\n" + }, + "offset_header": 1439, + "offset_body": 1470, + "offset_end": 1615 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "rfc822", + "attributes": null + } + }, + "offset_field": 1638, + "offset_start": 1651, + "offset_end": 1668 + } + ], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "mailbox in US-ASCII", + "address": null + } + }, + "offset_field": 1670, + "offset_start": 1675, + "offset_end": 1699 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "address in US-ASCII", + "address": null + } + }, + "offset_field": 1699, + "offset_start": 1702, + "offset_end": 1726 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "(subject in US-ASCII)" + }, + "offset_field": 1726, + "offset_start": 1734, + "offset_end": 1758 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "ISO-8859-1" + ] + ] + } + }, + "offset_field": 1758, + "offset_start": 1771, + "offset_end": 1804 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "Quoted-printable" + }, + "offset_field": 1804, + "offset_start": 1830, + "offset_end": 1849 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "... Additional text in ISO-8859-1 goes here ...\n" + }, + "offset_header": 1670, + "offset_body": 1851, + "offset_end": 1900 + } + ] + } + }, + "offset_header": 1638, + "offset_body": 1670, + "offset_end": 1900 + } + ] +} \ No newline at end of file diff --git a/tests/rfc/001.crlf.json b/tests/rfc/001.crlf.json new file mode 100644 index 0000000..a3f5c69 --- /dev/null +++ b/tests/rfc/001.crlf.json @@ -0,0 +1,526 @@ +{ + "html_body": [], + "text_body": [], + "attachments": [ + 1, + 2, + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Whomever", + "address": null + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 16 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Someone", + "address": null + } + }, + "offset_field": 16, + "offset_start": 19, + "offset_end": 29 + }, + { + "name": { + "Rfc": "date" + }, + "value": "Empty", + "offset_field": 29, + "offset_start": 34, + "offset_end": 45 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "whatever" + }, + "offset_field": 45, + "offset_start": 53, + "offset_end": 64 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 64, + "offset_start": 77, + "offset_end": 83 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "id1@host.com" + }, + "offset_field": 83, + "offset_start": 94, + "offset_end": 111 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "42" + ] + ] + } + }, + "offset_field": 111, + "offset_start": 124, + "offset_end": 161 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "id001@guppylake.bellcore.com" + }, + "offset_field": 161, + "offset_start": 172, + "offset_end": 205 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3 + ] + }, + "offset_header": 0, + "offset_body": 207, + "offset_end": 1148 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "external-body", + "attributes": [ + [ + "name", + "BodyFormats.ps" + ], + [ + "site", + "thumper.bellcore.com" + ], + [ + "mode", + "image" + ], + [ + "access-type", + "ANON-FTP" + ], + [ + "directory", + "pub" + ], + [ + "expiration", + "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)" + ] + ] + } + }, + "offset_field": 213, + "offset_start": 226, + "offset_end": 446 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 67, + 111, + 110, + 116, + 101, + 110, + 116, + 45, + 116, + 121, + 112, + 101, + 58, + 32, + 97, + 112, + 112, + 108, + 105, + 99, + 97, + 116, + 105, + 111, + 110, + 47, + 112, + 111, + 115, + 116, + 115, + 99, + 114, + 105, + 112, + 116, + 13, + 10, + 67, + 111, + 110, + 116, + 101, + 110, + 116, + 45, + 73, + 68, + 58, + 32, + 60, + 105, + 100, + 52, + 50, + 64, + 103, + 117, + 112, + 112, + 121, + 108, + 97, + 107, + 101, + 46, + 98, + 101, + 108, + 108, + 99, + 111, + 114, + 101, + 46, + 99, + 111, + 109, + 62, + 13, + 10 + ] + }, + "offset_header": 213, + "offset_body": 448, + "offset_end": 529 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "external-body", + "attributes": [ + [ + "access-type", + "local-file" + ], + [ + "name", + "/u/nsb/writing/rfcs/RFC-MIME.ps" + ], + [ + "site", + "thumper.bellcore.com" + ], + [ + "expiration", + "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)" + ] + ] + } + }, + "offset_field": 537, + "offset_start": 550, + "offset_end": 758 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 67, + 111, + 110, + 116, + 101, + 110, + 116, + 45, + 116, + 121, + 112, + 101, + 58, + 32, + 97, + 112, + 112, + 108, + 105, + 99, + 97, + 116, + 105, + 111, + 110, + 47, + 112, + 111, + 115, + 116, + 115, + 99, + 114, + 105, + 112, + 116, + 13, + 10, + 67, + 111, + 110, + 116, + 101, + 110, + 116, + 45, + 73, + 68, + 58, + 32, + 60, + 105, + 100, + 52, + 50, + 64, + 103, + 117, + 112, + 112, + 121, + 108, + 97, + 107, + 101, + 46, + 98, + 101, + 108, + 108, + 99, + 111, + 114, + 101, + 46, + 99, + 111, + 109, + 62, + 13, + 10 + ] + }, + "offset_header": 537, + "offset_body": 760, + "offset_end": 841 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "external-body", + "attributes": [ + [ + "access-type", + "mail-server" + ], + [ + "server", + "listserv@bogus.bitnet" + ], + [ + "expiration", + "Fri, 14 Jun 1991 19:13:14 -0400 (EDT)" + ] + ] + } + }, + "offset_field": 849, + "offset_start": 862, + "offset_end": 1033 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 67, + 111, + 110, + 116, + 101, + 110, + 116, + 45, + 116, + 121, + 112, + 101, + 58, + 32, + 97, + 112, + 112, + 108, + 105, + 99, + 97, + 116, + 105, + 111, + 110, + 47, + 112, + 111, + 115, + 116, + 115, + 99, + 114, + 105, + 112, + 116, + 13, + 10, + 67, + 111, + 110, + 116, + 101, + 110, + 116, + 45, + 73, + 68, + 58, + 32, + 60, + 105, + 100, + 52, + 50, + 64, + 103, + 117, + 112, + 112, + 121, + 108, + 97, + 107, + 101, + 46, + 98, + 101, + 108, + 108, + 99, + 111, + 114, + 101, + 46, + 99, + 111, + 109, + 62, + 13, + 10, + 13, + 10, + 103, + 101, + 116, + 32, + 82, + 70, + 67, + 45, + 77, + 73, + 77, + 69, + 46, + 68, + 79, + 67, + 13, + 10 + ] + }, + "offset_header": 849, + "offset_body": 1035, + "offset_end": 1136 + } + ] +} \ No newline at end of file diff --git a/tests/rfc/002.crlf.json b/tests/rfc/002.crlf.json new file mode 100644 index 0000000..4840b76 --- /dev/null +++ b/tests/rfc/002.crlf.json @@ -0,0 +1,736 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Al Gore", + "address": "vice-president@whitehouse.gov" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 48 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "White House Transportation Coordinator", + "address": "transport@whitehouse.gov" + } + }, + "offset_field": 48, + "offset_start": 51, + "offset_end": 126 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "[Fwd: Map of Argentina with Description]" + }, + "offset_field": 126, + "offset_start": 134, + "offset_end": 177 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "D7F------------D7FD5A0B8AB9C65CCDBFA872" + ] + ] + } + }, + "offset_field": 177, + "offset_start": 190, + "offset_end": 275 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 277, + "offset_end": 2723 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 366, + "offset_start": 379, + "offset_end": 410 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 410, + "offset_start": 436, + "offset_end": 443 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Fred,\r\n\r\nFire up Air Force One! We're going South!\r\n\r\nThanks,\r\nAl" + }, + "offset_header": 366, + "offset_body": 445, + "offset_end": 511 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "rfc822", + "attributes": null + } + }, + "offset_field": 556, + "offset_start": 569, + "offset_end": 586 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 586, + "offset_start": 612, + "offset_end": 619 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": null + } + }, + "offset_field": 619, + "offset_start": 639, + "offset_end": 648 + } + ], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 1, + 2 + ], + "text_body": [ + 1, + 2 + ], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "return_path" + }, + "value": { + "Text": "president@whitehouse.gov" + }, + "offset_field": 650, + "offset_start": 662, + "offset_end": 691 + }, + { + "name": { + "Rfc": "received" + }, + "value": { + "Text": "from mailhost.whitehouse.gov ([192.168.51.200])\r\n by heartbeat.whitehouse.gov (8.8.8/8.8.8) with ESMTP id SAA22453\r\n for ;\r\n Mon, 13 Aug 1998 l8:14:23 +1000" + }, + "offset_field": 691, + "offset_start": 700, + "offset_end": 921 + }, + { + "name": { + "Rfc": "received" + }, + "value": { + "Text": "from the_big_box.whitehouse.gov ([192.168.51.50])\r\n by mailhost.whitehouse.gov (8.8.8/8.8.7) with ESMTP id RAA20366\r\n for vice-president@whitehouse.gov; Mon, 13 Aug 1998 17:42:41 +1000" + }, + "offset_field": 921, + "offset_start": 930, + "offset_end": 1131 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 1998, + "month": 8, + "day": 13, + "hour": 17, + "minute": 42, + "second": 41, + "tz_before_gmt": false, + "tz_hour": 10, + "tz_minute": 0 + } + }, + "offset_field": 1131, + "offset_start": 1136, + "offset_end": 1170 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "199804130742.RAA20366@mai1host.whitehouse.gov" + }, + "offset_field": 1170, + "offset_start": 1181, + "offset_end": 1231 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Bill Clinton", + "address": "president@whitehouse.gov" + } + }, + "offset_field": 1231, + "offset_start": 1236, + "offset_end": 1278 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "A1 Gore (The Enforcer)", + "address": "vice-president@whitehouse.gov" + } + }, + "offset_field": 1278, + "offset_start": 1281, + "offset_end": 1338 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Map of Argentina with Description" + }, + "offset_field": 1338, + "offset_start": 1346, + "offset_end": 1383 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 1383, + "offset_start": 1396, + "offset_end": 1402 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "DC8------------DC8638F443D87A7F0726DEF7" + ] + ] + } + }, + "offset_field": 1402, + "offset_start": 1415, + "offset_end": 1500 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 650, + "offset_body": 1502, + "offset_end": 2676 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 1591, + "offset_start": 1604, + "offset_end": 1635 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 1635, + "offset_start": 1661, + "offset_end": 1668 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Hi A1,\r\n\r\nI finally figured out this MIME thing. Pretty cool. I'll send you\r\nsome sax music in .au files next week!\r\n\r\nAnyway, the attached image is really too small to get a good look at\r\nArgentina. Try this for a much better map:\r\n\r\n http://www.1one1yp1anet.com/dest/sam/graphics/map-arg.htm\r\n\r\nThen again, shouldn't the CIA have something like that?\r\n\r\nBill" + }, + "offset_header": 1591, + "offset_body": 1670, + "offset_end": 2037 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "gif", + "attributes": [ + [ + "name", + "map_of_Argentina.gif" + ] + ] + } + }, + "offset_field": 2082, + "offset_start": 2095, + "offset_end": 2136 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 2136, + "offset_start": 2162, + "offset_end": 2171 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "fi1ename", + "map_of_Argentina.gif" + ] + ] + } + }, + "offset_field": 2171, + "offset_start": 2191, + "offset_end": 2233 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 71, + 77, + 70, + 56, + 61, + 97, + 37, + 0, + 53, + 0, + 162, + 0, + 0, + 255, + 255, + 255, + 255, + 251, + 240, + 255, + 232, + 154, + 125, + 125, + 125, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 44, + 0, + 0, + 0, + 0, + 37, + 0, + 53, + 0, + 0, + 3, + 237, + 8, + 186, + 220, + 254, + 112, + 192, + 73, + 163, + 4, + 34, + 235, + 157, + 9, + 225, + 96, + 40, + 12, + 215, + 8, + 126, + 166, + 72, + 42, + 169, + 224, + 189, + 94, + 187, + 173, + 152, + 25, + 187, + 132, + 2, + 183, + 180, + 253, + 245, + 128, + 87, + 0, + 136, + 82, + 149, + 66, + 177, + 133, + 71, + 169, + 44, + 114, + 122, + 39, + 77, + 238, + 197, + 0, + 6, + 157, + 26, + 232, + 38, + 70, + 237, + 194, + 154, + 32, + 109, + 231, + 183, + 236, + 86, + 173, + 216, + 209, + 81, + 74, + 158, + 150, + 29, + 196, + 240, + 186, + 51, + 182, + 94, + 225, + 202, + 231, + 156, + 123, + 166, + 226, + 131, + 122, + 44, + 82, + 117, + 110, + 126, + 77, + 93, + 51, + 123, + 56, + 94, + 95, + 66, + 67, + 121, + 89, + 138, + 48, + 4, + 67, + 118, + 118, + 65, + 144, + 25, + 98, + 109, + 75, + 58, + 134, + 76, + 128, + 137, + 130, + 116, + 46, + 76, + 147, + 127, + 88, + 155, + 40, + 141, + 167, + 125, + 169, + 115, + 46, + 132, + 133, + 157, + 141, + 114, + 163, + 99, + 139, + 94, + 158, + 58, + 58, + 182, + 53, + 108, + 178, + 77, + 160, + 105, + 106, + 183, + 184, + 99, + 87, + 83, + 166, + 70, + 198, + 199, + 178, + 147, + 196, + 154, + 176, + 108, + 55, + 39, + 209, + 145, + 205, + 212, + 208, + 147, + 45, + 98, + 28, + 219, + 220, + 60, + 211, + 72, + 225, + 50, + 222, + 41, + 215, + 204, + 191, + 45, + 47, + 50, + 162, + 235, + 34, + 219, + 238, + 197, + 240, + 214, + 242, + 230, + 227, + 185, + 224, + 237, + 38, + 231, + 243, + 238, + 43, + 72, + 8, + 28, + 72, + 72, + 160, + 193, + 131, + 8, + 19, + 42, + 60, + 152, + 0, + 0, + 59 + ] + }, + "offset_header": 2082, + "offset_body": 2235, + "offset_end": 2629 + } + ] + } + }, + "offset_header": 556, + "offset_body": 650, + "offset_end": 2676 + } + ] +} \ No newline at end of file diff --git a/tests/rfc/003.crlf.json b/tests/rfc/003.crlf.json new file mode 100644 index 0000000..0b078d7 --- /dev/null +++ b/tests/rfc/003.crlf.json @@ -0,0 +1,256 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2, + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Nathaniel Borenstein", + "address": "nsb@bellcore.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 47 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Ned Freed", + "address": "ned@innosoft.com" + } + }, + "offset_field": 47, + "offset_start": 50, + "offset_end": 81 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 1993, + "month": 3, + "day": 22, + "hour": 9, + "minute": 41, + "second": 9, + "tz_before_gmt": true, + "tz_hour": 8, + "tz_minute": 0 + } + }, + "offset_field": 81, + "offset_start": 86, + "offset_end": 126 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Formatted text mail" + }, + "offset_field": 126, + "offset_start": 134, + "offset_end": 156 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 156, + "offset_start": 169, + "offset_end": 175 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "boundary42" + ] + ] + } + }, + "offset_field": 175, + "offset_start": 188, + "offset_end": 233 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3 + ] + }, + "offset_header": 0, + "offset_body": 235, + "offset_end": 588 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 249, + "offset_start": 262, + "offset_end": 293 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "... plain text version of message goes here ...\r\n" + }, + "offset_header": 249, + "offset_body": 295, + "offset_end": 344 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "enriched", + "attributes": null + } + }, + "offset_field": 360, + "offset_start": 373, + "offset_end": 389 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "... RFC 1896 text/enriched version of same message\r\n goes here ...\r\n" + }, + "offset_header": 360, + "offset_body": 391, + "offset_end": 462 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "application", + "c_subtype": "x-whatever", + "attributes": null + } + }, + "offset_field": 478, + "offset_start": 491, + "offset_end": 516 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 46, + 46, + 46, + 32, + 102, + 97, + 110, + 99, + 105, + 101, + 115, + 116, + 32, + 118, + 101, + 114, + 115, + 105, + 111, + 110, + 32, + 111, + 102, + 32, + 115, + 97, + 109, + 101, + 32, + 109, + 101, + 115, + 115, + 97, + 103, + 101, + 32, + 103, + 111, + 101, + 115, + 32, + 104, + 101, + 114, + 101, + 32, + 46, + 46, + 46, + 13, + 10 + ] + }, + "offset_header": 478, + "offset_body": 518, + "offset_end": 570 + } + ] +} \ No newline at end of file diff --git a/tests/rfc/004.crlf.json b/tests/rfc/004.crlf.json new file mode 100644 index 0000000..bb5e745 --- /dev/null +++ b/tests/rfc/004.crlf.json @@ -0,0 +1,317 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 3, + 4 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Moderator-Address", + "address": null + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 25 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Recipient-List", + "address": null + } + }, + "offset_field": 25, + "offset_start": 28, + "offset_end": 45 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 1994, + "month": 3, + "day": 22, + "hour": 13, + "minute": 34, + "second": 51, + "tz_before_gmt": false, + "tz_hour": 0, + "tz_minute": 0 + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 84 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Internet Digest, volume 42" + }, + "offset_field": 84, + "offset_start": 92, + "offset_end": 121 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 121, + "offset_start": 134, + "offset_end": 140 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "---- main boundary ----" + ] + ] + } + }, + "offset_field": 140, + "offset_start": 153, + "offset_end": 220 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 222, + "offset_end": 762 + }, + { + "headers": [], + "is_encoding_problem": false, + "body": { + "Text": "...Introductory text or table of contents...\r\n" + }, + "offset_header": 249, + "offset_body": 251, + "offset_end": 297 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "digest", + "attributes": [ + [ + "boundary", + "---- next message ----" + ] + ] + } + }, + "offset_field": 326, + "offset_start": 339, + "offset_end": 406 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 3, + 4 + ] + }, + "offset_header": 326, + "offset_body": 408, + "offset_end": 731 + }, + { + "headers": [], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "someone-else", + "address": null + } + }, + "offset_field": 436, + "offset_start": 441, + "offset_end": 456 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 1993, + "month": 3, + "day": 26, + "hour": 11, + "minute": 13, + "second": 32, + "tz_before_gmt": false, + "tz_hour": 2, + "tz_minute": 0 + } + }, + "offset_field": 456, + "offset_start": 461, + "offset_end": 495 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "my opinion" + }, + "offset_field": 495, + "offset_start": 503, + "offset_end": 516 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "...body goes here ...\r\n" + }, + "offset_header": 436, + "offset_body": 518, + "offset_end": 541 + } + ] + } + }, + "offset_header": 434, + "offset_body": 436, + "offset_end": 541 + }, + { + "headers": [], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "someone-else-again", + "address": null + } + }, + "offset_field": 571, + "offset_start": 576, + "offset_end": 597 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 1993, + "month": 3, + "day": 26, + "hour": 10, + "minute": 7, + "second": 13, + "tz_before_gmt": true, + "tz_hour": 5, + "tz_minute": 0 + } + }, + "offset_field": 597, + "offset_start": 602, + "offset_end": 636 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "my different opinion" + }, + "offset_field": 636, + "offset_start": 644, + "offset_end": 667 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "... another body goes here ...\r\n" + }, + "offset_header": 571, + "offset_body": 669, + "offset_end": 701 + } + ] + } + }, + "offset_header": 569, + "offset_body": 571, + "offset_end": 701 + } + ] +} \ No newline at end of file diff --git a/tests/rfc/005.crlf.json b/tests/rfc/005.crlf.json new file mode 100644 index 0000000..f55b7f8 --- /dev/null +++ b/tests/rfc/005.crlf.json @@ -0,0 +1,159 @@ +{ + "html_body": [ + 1, + 2 + ], + "text_body": [ + 1, + 2 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Nathaniel Borenstein", + "address": "nsb@bellcore.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 47 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Ned Freed", + "address": "ned@innosoft.com" + } + }, + "offset_field": 47, + "offset_start": 50, + "offset_end": 81 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 1993, + "month": 3, + "day": 21, + "hour": 23, + "minute": 56, + "second": 48, + "tz_before_gmt": true, + "tz_hour": 8, + "tz_minute": 0 + } + }, + "offset_field": 81, + "offset_start": 86, + "offset_end": 126 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Sample message" + }, + "offset_field": 126, + "offset_start": 134, + "offset_end": 151 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 151, + "offset_start": 164, + "offset_end": 170 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "simple boundary" + ] + ] + } + }, + "offset_field": 170, + "offset_start": 183, + "offset_end": 229 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 231, + "offset_end": 714 + }, + { + "headers": [], + "is_encoding_problem": false, + "body": { + "Text": "This is implicitly typed plain US-ASCII text.\r\nIt does NOT end with a linebreak." + }, + "offset_header": 412, + "offset_body": 414, + "offset_end": 494 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 515, + "offset_start": 528, + "offset_end": 559 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "This is explicitly typed plain US-ASCII text.\r\nIt DOES end with a linebreak.\r\n" + }, + "offset_header": 515, + "offset_body": 561, + "offset_end": 639 + } + ] +} \ No newline at end of file diff --git a/tests/rfc/006.crlf.json b/tests/rfc/006.crlf.json new file mode 100644 index 0000000..dee442f --- /dev/null +++ b/tests/rfc/006.crlf.json @@ -0,0 +1,198 @@ +{ + "html_body": [ + 2 + ], + "text_body": [ + 1 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": null, + "address": "sender@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 26 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": null, + "address": "recipient@example.com" + } + }, + "offset_field": 26, + "offset_start": 29, + "offset_end": 53 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Multipart Email Example" + }, + "offset_field": 53, + "offset_start": 61, + "offset_end": 87 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "boundary-string" + ] + ] + } + }, + "offset_field": 87, + "offset_start": 100, + "offset_end": 152 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 154, + "offset_end": 638 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "utf-8" + ] + ] + } + }, + "offset_field": 173, + "offset_start": 186, + "offset_end": 216 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 216, + "offset_start": 242, + "offset_end": 261 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": null + } + }, + "offset_field": 261, + "offset_start": 281, + "offset_end": 290 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Plain text email goes here!\nThis is the fallback if email client does not support HTML\n" + }, + "offset_header": 173, + "offset_body": 292, + "offset_end": 381 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "utf-8" + ] + ] + } + }, + "offset_field": 402, + "offset_start": 415, + "offset_end": 444 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 444, + "offset_start": 470, + "offset_end": 489 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": null + } + }, + "offset_field": 489, + "offset_start": 509, + "offset_end": 518 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "

This is the HTML Section!

\n

This is what displays in most modern email clients

\n" + }, + "offset_header": 402, + "offset_body": 520, + "offset_end": 615 + } + ] +} \ No newline at end of file diff --git a/tests/rfc/007.crlf.json b/tests/rfc/007.crlf.json new file mode 100644 index 0000000..4824ec3 --- /dev/null +++ b/tests/rfc/007.crlf.json @@ -0,0 +1,598 @@ +{ + "html_body": [ + 1, + 9, + 14 + ], + "text_body": [ + 1, + 5, + 6, + 7, + 14 + ], + "attachments": [ + 6, + 10, + 11, + 12, + 13 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "RFC 8621 Section 4.1.4 test" + }, + "offset_field": 0, + "offset_start": 8, + "offset_end": 38 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 38, + "offset_start": 51, + "offset_end": 83 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 14 + ] + }, + "offset_header": 0, + "offset_body": 85, + "offset_end": 942 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 90, + "offset_start": 103, + "offset_end": 116 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": null + } + }, + "offset_field": 116, + "offset_start": 136, + "offset_end": 145 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "A" + }, + "offset_header": 90, + "offset_body": 147, + "offset_end": 148 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "2" + ] + ] + } + }, + "offset_field": 157, + "offset_start": 170, + "offset_end": 202 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 3, + 11, + 12, + 13 + ] + }, + "offset_header": 157, + "offset_body": 204, + "offset_end": 866 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "3" + ] + ] + } + }, + "offset_field": 209, + "offset_start": 222, + "offset_end": 260 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 4, + 8 + ] + }, + "offset_header": 209, + "offset_body": 262, + "offset_end": 682 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "4" + ] + ] + } + }, + "offset_field": 267, + "offset_start": 280, + "offset_end": 312 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 5, + 6, + 7 + ] + }, + "offset_header": 267, + "offset_body": 314, + "offset_end": 520 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 319, + "offset_start": 332, + "offset_end": 345 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": null + } + }, + "offset_field": 345, + "offset_start": 365, + "offset_end": 374 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "B" + }, + "offset_header": 319, + "offset_body": 376, + "offset_end": 377 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "jpeg", + "attributes": null + } + }, + "offset_field": 386, + "offset_start": 399, + "offset_end": 412 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": null + } + }, + "offset_field": 412, + "offset_start": 432, + "offset_end": 441 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 67 + ] + }, + "offset_header": 386, + "offset_body": 443, + "offset_end": 444 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 453, + "offset_start": 466, + "offset_end": 479 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": null + } + }, + "offset_field": 479, + "offset_start": 499, + "offset_end": 508 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "D" + }, + "offset_header": 453, + "offset_body": 510, + "offset_end": 511 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "related", + "attributes": [ + [ + "boundary", + "5" + ] + ] + } + }, + "offset_field": 528, + "offset_start": 541, + "offset_end": 575 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 9, + 10 + ] + }, + "offset_header": 528, + "offset_body": 577, + "offset_end": 672 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": null + } + }, + "offset_field": 582, + "offset_start": 595, + "offset_end": 607 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "E" + }, + "offset_header": 582, + "offset_body": 609, + "offset_end": 623 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "jpeg", + "attributes": null + } + }, + "offset_field": 632, + "offset_start": 645, + "offset_end": 658 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 70 + ] + }, + "offset_header": 632, + "offset_body": 660, + "offset_end": 661 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "jpeg", + "attributes": null + } + }, + "offset_field": 692, + "offset_start": 705, + "offset_end": 718 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": null + } + }, + "offset_field": 718, + "offset_start": 738, + "offset_end": 751 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 71 + ] + }, + "offset_header": 692, + "offset_body": 753, + "offset_end": 754 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "application", + "c_subtype": "x-excel", + "attributes": null + } + }, + "offset_field": 763, + "offset_start": 776, + "offset_end": 798 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 72 + ] + }, + "offset_header": 763, + "offset_body": 800, + "offset_end": 801 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "rfc822", + "attributes": null + } + }, + "offset_field": 810, + "offset_start": 823, + "offset_end": 840 + } + ], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "J" + }, + "offset_field": 842, + "offset_start": 850, + "offset_end": 854 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "J" + }, + "offset_header": 842, + "offset_body": 856, + "offset_end": 857 + } + ] + } + }, + "offset_header": 810, + "offset_body": 842, + "offset_end": 857 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 875, + "offset_start": 888, + "offset_end": 901 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": null + } + }, + "offset_field": 901, + "offset_start": 921, + "offset_end": 930 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "K" + }, + "offset_header": 875, + "offset_body": 932, + "offset_end": 933 + } + ] +} \ No newline at end of file diff --git a/tests/rfc/008.crlf.json b/tests/rfc/008.crlf.json new file mode 100644 index 0000000..8ff56fe --- /dev/null +++ b/tests/rfc/008.crlf.json @@ -0,0 +1,371 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 84 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 86, + "offset_end": 1677 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "utf-8" + ] + ] + } + }, + "offset_field": 130, + "offset_start": 143, + "offset_end": 171 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 171, + "offset_start": 197, + "offset_end": 204 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "This is a message with a base64 encoded attached email" + }, + "offset_header": 130, + "offset_body": 206, + "offset_end": 260 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "attachment", + "c_subtype": null, + "attributes": [ + [ + "filename", + "attached_email.eml" + ] + ] + } + }, + "offset_field": 306, + "offset_start": 326, + "offset_end": 370 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "rfc822", + "attributes": null + } + }, + "offset_field": 370, + "offset_start": 383, + "offset_end": 400 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 400, + "offset_start": 426, + "offset_end": 435 + } + ], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 2 + ], + "text_body": [ + 1 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "email@example.com", + "address": "email@example.com" + } + }, + "offset_field": 0, + "offset_start": 3, + "offset_end": 45 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Name", + "address": "email@example.com" + } + }, + "offset_field": 45, + "offset_start": 50, + "offset_end": 77 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "HTML test" + }, + "offset_field": 77, + "offset_start": 85, + "offset_end": 97 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "random-message-id@example.com" + }, + "offset_field": 97, + "offset_start": 108, + "offset_end": 142 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2021, + "month": 12, + "day": 14, + "hour": 11, + "minute": 48, + "second": 25, + "tz_before_gmt": false, + "tz_hour": 1, + "tz_minute": 0 + } + }, + "offset_field": 142, + "offset_start": 147, + "offset_end": 181 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 181, + "offset_start": 194, + "offset_end": 200 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + ] + ] + } + }, + "offset_field": 200, + "offset_start": 213, + "offset_end": 292 + }, + { + "name": { + "Rfc": "content_language" + }, + "value": { + "Text": "en-US" + }, + "offset_field": 292, + "offset_start": 309, + "offset_end": 317 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 319, + "offset_end": 872 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "utf-8" + ], + [ + "format", + "flowed" + ] + ] + } + }, + "offset_field": 409, + "offset_start": 422, + "offset_end": 465 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 465, + "offset_start": 491, + "offset_end": 498 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "This is an *HTML* test message" + }, + "offset_header": 409, + "offset_body": 500, + "offset_end": 530 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "utf-8" + ] + ] + } + }, + "offset_field": 576, + "offset_start": 589, + "offset_end": 616 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 616, + "offset_start": 642, + "offset_end": 649 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\r\n \r\n \r\n \r\n \r\n This is an HTML test message\r\n \r\n\r\n" + }, + "offset_header": 576, + "offset_body": 651, + "offset_end": 824 + } + ] + } + }, + "offset_header": 306, + "offset_body": 437, + "offset_end": 1631 + } + ] +} \ No newline at end of file diff --git a/tests/rfc/009.crlf.json b/tests/rfc/009.crlf.json new file mode 100644 index 0000000..cc3715b --- /dev/null +++ b/tests/rfc/009.crlf.json @@ -0,0 +1,275 @@ +{ + "html_body": [ + 3 + ], + "text_body": [ + 2 + ], + "attachments": [ + 4 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Whomever", + "address": "whoever@example.com" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 38 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "Someone", + "address": "someone@example.com" + } + }, + "offset_field": 38, + "offset_start": 41, + "offset_end": 73 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2009, + "month": 10, + "day": 10, + "hour": 0, + "minute": 30, + "second": 4, + "tz_before_gmt": false, + "tz_hour": 2, + "tz_minute": 0 + } + }, + "offset_field": 73, + "offset_start": 78, + "offset_end": 112 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "whatever" + }, + "offset_field": 112, + "offset_start": 120, + "offset_end": 131 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "outer" + ] + ] + } + }, + "offset_field": 131, + "offset_start": 144, + "offset_end": 178 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 4 + ] + }, + "offset_header": 0, + "offset_body": 180, + "offset_end": 793 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "inner" + ] + ] + } + }, + "offset_field": 237, + "offset_start": 250, + "offset_end": 290 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3 + ] + }, + "offset_header": 237, + "offset_body": 292, + "offset_end": 563 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 356, + "offset_start": 369, + "offset_end": 402 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Hello\r\n" + }, + "offset_header": 356, + "offset_body": 404, + "offset_end": 411 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 422, + "offset_start": 435, + "offset_end": 467 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "Hello\r\n" + }, + "offset_header": 422, + "offset_body": 469, + "offset_end": 502 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "rfc822", + "attributes": null + } + }, + "offset_field": 574, + "offset_start": 587, + "offset_end": 604 + } + ], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Someone Else", + "address": null + } + }, + "offset_field": 606, + "offset_start": 611, + "offset_end": 626 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Hello, this is an elaborate request for you to finally say hello already!" + }, + "offset_field": 626, + "offset_start": 634, + "offset_end": 712 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Please say Hello\r\n" + }, + "offset_header": 606, + "offset_body": 714, + "offset_end": 732 + } + ] + } + }, + "offset_header": 574, + "offset_body": 606, + "offset_end": 732 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/000.crlf.json b/tests/thirdparty/000.crlf.json new file mode 100644 index 0000000..49db050 --- /dev/null +++ b/tests/thirdparty/000.crlf.json @@ -0,0 +1,132 @@ +{ + "html_body": [ + 1, + 2 + ], + "text_body": [ + 1, + 2 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 19 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "bound" + ] + ] + } + }, + "offset_field": 19, + "offset_start": 32, + "offset_end": 76 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 78, + "offset_end": 480 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 102, + "offset_start": 128, + "offset_end": 137 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 137, + "offset_start": 150, + "offset_end": 163 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "we have\ra lot \nof \u0000binary stuff in here\nb adjig sadjg jasidgjiaehga3wht8a3w8ghxjc dsgad hasdghsd gasd dsjdsoga sjdga0w3tjhawjgsertniq3n5oqerjqw2r89q23h awhrqh835r8a" + }, + "offset_header": 102, + "offset_body": 165, + "offset_end": 389 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 400, + "offset_start": 413, + "offset_end": 426 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 426, + "offset_start": 452, + "offset_end": 461 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "eh" + }, + "offset_header": 400, + "offset_body": 463, + "offset_end": 467 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/001.crlf.json b/tests/thirdparty/001.crlf.json new file mode 100644 index 0000000..64e3bdc --- /dev/null +++ b/tests/thirdparty/001.crlf.json @@ -0,0 +1,161 @@ +{ + "html_body": [ + 1, + 2, + 3 + ], + "text_body": [ + 1, + 2, + 3 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 19 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "bound" + ] + ] + } + }, + "offset_field": 19, + "offset_start": 32, + "offset_end": 76 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3 + ] + }, + "offset_header": 0, + "offset_body": 78, + "offset_end": 532 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "binary" + }, + "offset_field": 102, + "offset_start": 128, + "offset_end": 137 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 137, + "offset_start": 150, + "offset_end": 163 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "d2UgaGF2ZQ1hIGxvdCAKb2YgAGJpbmFyeSBzdHVmZiBpbiBoZXJlCmIgYWRqaWcgc2FkamcgamFz\r\naWRnamlhZWhnYTN3aHQ4YTN3OGdoeGpjIGRzZ2FkIGhhc2RnaHNkIGdhc2QgZHNqZHNvZ2Egc2pk\r\nZ2EwdzN0amhhd2pnc2VydG5pcTNuNW9xZXJqcXcycjg5cTIzaCBhd2hycWg4MzVyOGE=" + }, + "offset_header": 102, + "offset_body": 165, + "offset_end": 389 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 400, + "offset_start": 413, + "offset_end": 426 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "binary" + }, + "offset_field": 426, + "offset_start": 452, + "offset_end": 461 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "ZWg=" + }, + "offset_header": 400, + "offset_body": 463, + "offset_end": 467 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 478, + "offset_start": 491, + "offset_end": 504 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "hello world\r\n" + }, + "offset_header": 478, + "offset_body": 506, + "offset_end": 519 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/002.crlf.json b/tests/thirdparty/002.crlf.json new file mode 100644 index 0000000..cab5e58 --- /dev/null +++ b/tests/thirdparty/002.crlf.json @@ -0,0 +1,176 @@ +{ + "html_body": [ + 1, + 2 + ], + "text_body": [ + 1, + 2 + ], + "attachments": [ + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "foo" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 45 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3 + ] + }, + "offset_header": 0, + "offset_body": 47, + "offset_end": 386 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 54, + "offset_start": 80, + "offset_end": 99 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "utf-8" + ] + ] + } + }, + "offset_field": 99, + "offset_start": 112, + "offset_end": 140 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "päivää\n" + }, + "offset_header": 54, + "offset_body": 142, + "offset_end": 165 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 174, + "offset_start": 200, + "offset_end": 209 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "utf-8" + ] + ] + } + }, + "offset_field": 209, + "offset_start": 222, + "offset_end": 250 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "yötä vaan.\n�\t�" + }, + "offset_header": 174, + "offset_body": 252, + "offset_end": 280 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 289, + "offset_start": 315, + "offset_end": 324 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "utf-8" + ] + ] + } + }, + "offset_field": 324, + "offset_start": 337, + "offset_end": 365 + } + ], + "is_encoding_problem": true, + "body": { + "Text": "?garbage" + }, + "offset_header": 289, + "offset_body": 367, + "offset_end": 375 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/003.crlf.json b/tests/thirdparty/003.crlf.json new file mode 100644 index 0000000..dbe3244 --- /dev/null +++ b/tests/thirdparty/003.crlf.json @@ -0,0 +1,277 @@ +{ + "html_body": [ + 1, + 2, + 3, + 4, + 5 + ], + "text_body": [ + 1, + 2, + 3, + 4, + 5 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 45 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 45, + "offset_start": 58, + "offset_end": 64 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3, + 4, + 5 + ] + }, + "offset_header": 0, + "offset_body": 66, + "offset_end": 688 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 71, + "offset_start": 97, + "offset_end": 109 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 109, + "offset_start": 122, + "offset_end": 153 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Move black king to queen's bishop\r\n" + }, + "offset_header": 71, + "offset_body": 155, + "offset_end": 190 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "binary" + }, + "offset_field": 197, + "offset_start": 223, + "offset_end": 235 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-8" + ] + ] + } + }, + "offset_field": 235, + "offset_start": 248, + "offset_end": 276 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Move ♚ to ♛'s ♝\r\n" + }, + "offset_header": 197, + "offset_body": 278, + "offset_end": 301 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "8bit" + }, + "offset_field": 308, + "offset_start": 334, + "offset_end": 344 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-8" + ] + ] + } + }, + "offset_field": 344, + "offset_start": 357, + "offset_end": 385 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Move ♚ to ♛'s ♝\r\n" + }, + "offset_header": 308, + "offset_body": 387, + "offset_end": 410 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "quoted-printable" + }, + "offset_field": 417, + "offset_start": 443, + "offset_end": 476 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-8" + ] + ] + } + }, + "offset_field": 476, + "offset_start": 489, + "offset_end": 517 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Move ♚ to ♛'s ♝\n" + }, + "offset_header": 417, + "offset_body": 519, + "offset_end": 560 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 567, + "offset_start": 593, + "offset_end": 602 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-8" + ] + ] + } + }, + "offset_field": 602, + "offset_start": 615, + "offset_end": 643 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Move ♚ to ♛'s ♝\n" + }, + "offset_header": 567, + "offset_body": 645, + "offset_end": 679 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/004.crlf.json b/tests/thirdparty/004.crlf.json new file mode 100644 index 0000000..1b47745 --- /dev/null +++ b/tests/thirdparty/004.crlf.json @@ -0,0 +1,320 @@ +{ + "html_body": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "text_body": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 45 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 45, + "offset_start": 58, + "offset_end": 64 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3, + 4, + 5, + 6 + ] + }, + "offset_header": 0, + "offset_body": 66, + "offset_end": 744 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "6bit" + }, + "offset_field": 71, + "offset_start": 97, + "offset_end": 104 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-8" + ] + ] + } + }, + "offset_field": 104, + "offset_start": 117, + "offset_end": 145 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Move black king to queen's bishop\r\n" + }, + "offset_header": 71, + "offset_body": 147, + "offset_end": 182 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bits" + }, + "offset_field": 189, + "offset_start": 215, + "offset_end": 229 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-8" + ] + ] + } + }, + "offset_field": 229, + "offset_start": 242, + "offset_end": 270 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Move ♚ to ♛'s ♝\r\n" + }, + "offset_header": 189, + "offset_body": 272, + "offset_end": 295 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "8 bit" + }, + "offset_field": 302, + "offset_start": 328, + "offset_end": 336 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-8" + ] + ] + } + }, + "offset_field": 336, + "offset_start": 349, + "offset_end": 377 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Move ♚ to ♛'s ♝\r\n" + }, + "offset_header": 302, + "offset_body": 379, + "offset_end": 402 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7-bit" + }, + "offset_field": 409, + "offset_start": 435, + "offset_end": 443 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-8" + ] + ] + } + }, + "offset_field": 443, + "offset_start": 456, + "offset_end": 484 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Move ♚ to ♛'s ♝\r\n" + }, + "offset_header": 409, + "offset_body": 486, + "offset_end": 509 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "8-bit" + }, + "offset_field": 516, + "offset_start": 542, + "offset_end": 550 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-8" + ] + ] + } + }, + "offset_field": 550, + "offset_start": 563, + "offset_end": 591 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Move ♚ to ♛'s ♝\r\n" + }, + "offset_header": 516, + "offset_body": 593, + "offset_end": 616 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": "Empty", + "offset_field": 623, + "offset_start": 649, + "offset_end": 651 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-8" + ] + ] + } + }, + "offset_field": 651, + "offset_start": 664, + "offset_end": 692 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Move =E2=99=9A to =E2=99=9B's =E2=99=9D\r\n" + }, + "offset_header": 623, + "offset_body": 694, + "offset_end": 735 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/005.crlf.json b/tests/thirdparty/005.crlf.json new file mode 100644 index 0000000..9b9745c --- /dev/null +++ b/tests/thirdparty/005.crlf.json @@ -0,0 +1,277 @@ +{ + "html_body": [ + 1, + 2, + 3, + 4, + 5 + ], + "text_body": [ + 1, + 2, + 3, + 4, + 5 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 0, + "offset_start": 13, + "offset_end": 45 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 45, + "offset_start": 58, + "offset_end": 64 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3, + 4, + 5 + ] + }, + "offset_header": 0, + "offset_body": 66, + "offset_end": 642 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "binary" + }, + "offset_field": 71, + "offset_start": 97, + "offset_end": 106 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "utf-16le" + ] + ] + } + }, + "offset_field": 106, + "offset_start": 119, + "offset_end": 150 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Test message਍" + }, + "offset_header": 71, + "offset_body": 152, + "offset_end": 179 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 186, + "offset_start": 212, + "offset_end": 221 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "utf-16be" + ] + ] + } + }, + "offset_field": 221, + "offset_start": 234, + "offset_end": 265 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Test message\n" + }, + "offset_header": 186, + "offset_body": 267, + "offset_end": 305 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 312, + "offset_start": 338, + "offset_end": 347 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "utf-16le" + ] + ] + } + }, + "offset_field": 347, + "offset_start": 360, + "offset_end": 391 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Test message\n" + }, + "offset_header": 312, + "offset_body": 393, + "offset_end": 431 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 438, + "offset_start": 464, + "offset_end": 473 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "EUC-JP" + ] + ] + } + }, + "offset_field": 473, + "offset_start": 486, + "offset_end": 515 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "『世界人権宣言』" + }, + "offset_header": 438, + "offset_body": 517, + "offset_end": 543 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "binary" + }, + "offset_field": 550, + "offset_start": 576, + "offset_end": 585 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-8" + ] + ] + } + }, + "offset_field": 585, + "offset_start": 598, + "offset_end": 626 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "invalid" + }, + "offset_header": 550, + "offset_body": 628, + "offset_end": 635 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/006.crlf.json b/tests/thirdparty/006.crlf.json new file mode 100644 index 0000000..139c515 --- /dev/null +++ b/tests/thirdparty/006.crlf.json @@ -0,0 +1,276 @@ +{ + "html_body": [ + 3 + ], + "text_body": [ + 4 + ], + "attachments": [ + 5 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "Hide and seek" + }, + "offset_field": 0, + "offset_start": 8, + "offset_end": 24 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 24, + "offset_start": 37, + "offset_end": 43 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 43, + "offset_start": 56, + "offset_end": 86 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1 + ] + }, + "offset_header": 0, + "offset_body": 88, + "offset_end": 614 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "signed", + "attributes": [ + [ + "protocol", + "signature/plain" + ], + [ + "migalc", + "pen+paper" + ], + [ + "boundary", + "2" + ] + ] + } + }, + "offset_field": 93, + "offset_start": 106, + "offset_end": 185 + }, + { + "name": { + "Other": "X-Signature-Type" + }, + "value": { + "Text": " penmanship\r\n" + }, + "offset_field": 185, + "offset_start": 202, + "offset_end": 215 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 5 + ] + }, + "offset_header": 93, + "offset_body": 217, + "offset_end": 607 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "3" + ] + ] + } + }, + "offset_field": 222, + "offset_start": 235, + "offset_end": 271 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 3, + 4 + ] + }, + "offset_header": 222, + "offset_body": 273, + "offset_end": 519 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 278, + "offset_start": 291, + "offset_end": 321 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "Search me

Don't find me here

\r\n" + }, + "offset_header": 278, + "offset_body": 323, + "offset_end": 413 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 420, + "offset_start": 433, + "offset_end": 446 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "binary" + }, + "offset_field": 446, + "offset_start": 472, + "offset_end": 481 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Search me, and Find me here" + }, + "offset_header": 420, + "offset_body": 483, + "offset_end": 510 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "signature", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 526, + "offset_start": 539, + "offset_end": 575 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 83, + 105, + 103, + 110, + 101, + 100, + 32, + 98, + 121, + 32, + 117, + 110, + 100, + 101, + 114, + 115, + 105, + 103, + 110, + 101, + 100 + ] + }, + "offset_header": 526, + "offset_body": 577, + "offset_end": 598 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/007.crlf.json b/tests/thirdparty/007.crlf.json new file mode 100644 index 0000000..87a4347 --- /dev/null +++ b/tests/thirdparty/007.crlf.json @@ -0,0 +1,343 @@ +{ + "html_body": [], + "text_body": [], + "attachments": [ + 1, + 2, + 3 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Moderator-Address", + "address": "moderator" + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 37 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "digest", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 37, + "offset_start": 50, + "offset_end": 82 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3 + ] + }, + "offset_header": 0, + "offset_body": 84, + "offset_end": 603 + }, + { + "headers": [], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "someone-else", + "address": "someone@else" + } + }, + "offset_field": 93, + "offset_start": 98, + "offset_end": 128 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "my opinion" + }, + "offset_field": 128, + "offset_start": 136, + "offset_end": 149 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "This is my opinion" + }, + "offset_header": 93, + "offset_body": 151, + "offset_end": 169 + } + ] + } + }, + "offset_header": 91, + "offset_body": 93, + "offset_end": 169 + }, + { + "headers": [], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 0 + ], + "text_body": [ + 0 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "another one", + "address": "another@one" + } + }, + "offset_field": 178, + "offset_start": 183, + "offset_end": 211 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "i disagree" + }, + "offset_field": 211, + "offset_start": 219, + "offset_end": 232 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Not agreeing one bit!" + }, + "offset_header": 178, + "offset_body": 234, + "offset_end": 255 + } + ] + } + }, + "offset_header": 176, + "offset_body": 178, + "offset_end": 255 + }, + { + "headers": [], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "attachment", + "address": "attachment@user" + } + }, + "offset_field": 264, + "offset_start": 269, + "offset_end": 300 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "funny hat" + }, + "offset_field": 300, + "offset_start": 308, + "offset_end": 320 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "2" + ] + ] + } + }, + "offset_field": 320, + "offset_start": 333, + "offset_end": 363 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 264, + "offset_body": 365, + "offset_end": 596 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 370, + "offset_start": 383, + "offset_end": 396 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "binary" + }, + "offset_field": 396, + "offset_start": 422, + "offset_end": 431 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Lovely attachment for you" + }, + "offset_header": 370, + "offset_body": 433, + "offset_end": 458 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "application", + "c_subtype": "octet-stream", + "attributes": [ + [ + "disposition", + "attachment" + ], + [ + "name", + "test.txt" + ] + ] + } + }, + "offset_field": 465, + "offset_start": 478, + "offset_end": 546 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "binary" + }, + "offset_field": 546, + "offset_start": 572, + "offset_end": 581 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 70, + 111, + 111, + 98, + 97, + 114 + ] + }, + "offset_header": 465, + "offset_body": 583, + "offset_end": 589 + } + ] + } + }, + "offset_header": 262, + "offset_body": 264, + "offset_end": 596 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/008.crlf.json b/tests/thirdparty/008.crlf.json new file mode 100644 index 0000000..598690c --- /dev/null +++ b/tests/thirdparty/008.crlf.json @@ -0,0 +1,406 @@ +{ + "html_body": [ + 3 + ], + "text_body": [ + 3 + ], + "attachments": [ + 1, + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Other": "From user@domain Fri Feb 22 17" + }, + "value": { + "Text": "06:23 2008\r\n" + }, + "offset_field": 0, + "offset_start": 32, + "offset_end": 44 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": null, + "address": "user@domain.org" + } + }, + "offset_field": 44, + "offset_start": 49, + "offset_end": 67 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2007, + "month": 3, + "day": 24, + "hour": 23, + "minute": 0, + "second": 0, + "tz_before_gmt": false, + "tz_hour": 2, + "tz_minute": 0 + } + }, + "offset_field": 67, + "offset_start": 72, + "offset_end": 106 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 106, + "offset_start": 119, + "offset_end": 125 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "foo bar" + ] + ] + } + }, + "offset_field": 125, + "offset_start": 138, + "offset_end": 176 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2, + 3 + ] + }, + "offset_header": 0, + "offset_body": 178, + "offset_end": 866 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "x-myown", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 211, + "offset_start": 224, + "offset_end": 257 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "hello\r\n" + }, + "offset_header": 211, + "offset_body": 259, + "offset_end": 266 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "rfc822", + "attributes": null + } + }, + "offset_field": 279, + "offset_start": 292, + "offset_end": 309 + } + ], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 1, + 5 + ], + "text_body": [ + 4, + 5, + 6 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": null, + "address": "sub@domain.org" + } + }, + "offset_field": 311, + "offset_start": 316, + "offset_end": 333 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2012, + "month": 8, + "day": 12, + "hour": 12, + "minute": 34, + "second": 56, + "tz_before_gmt": false, + "tz_hour": 3, + "tz_minute": 0 + } + }, + "offset_field": 333, + "offset_start": 338, + "offset_end": 372 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "submsg" + }, + "offset_field": 372, + "offset_start": 380, + "offset_end": 389 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "sub1" + ] + ] + } + }, + "offset_field": 389, + "offset_start": 402, + "offset_end": 443 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 311, + "offset_body": 445, + "offset_end": 776 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": null + } + }, + "offset_field": 472, + "offset_start": 485, + "offset_end": 497 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "

Hello world

\r\n" + }, + "offset_header": 472, + "offset_body": 499, + "offset_end": 519 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "sub2" + ] + ] + } + }, + "offset_field": 529, + "offset_start": 542, + "offset_end": 583 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 3, + 6 + ] + }, + "offset_header": 529, + "offset_body": 585, + "offset_end": 745 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "sub3" + ] + ] + } + }, + "offset_field": 593, + "offset_start": 606, + "offset_end": 647 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 4, + 5 + ] + }, + "offset_header": 593, + "offset_body": 649, + "offset_end": 713 + }, + { + "headers": [], + "is_encoding_problem": false, + "body": { + "Text": "sub3 text" + }, + "offset_header": 657, + "offset_body": 659, + "offset_end": 668 + }, + { + "headers": [], + "is_encoding_problem": false, + "body": { + "Text": "sub3 text2" + }, + "offset_header": 678, + "offset_body": 680, + "offset_end": 690 + }, + { + "headers": [], + "is_encoding_problem": false, + "body": { + "Text": "sub2 text2" + }, + "offset_header": 723, + "offset_body": 725, + "offset_end": 735 + } + ] + } + }, + "offset_header": 279, + "offset_body": 311, + "offset_end": 776 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 789, + "offset_start": 802, + "offset_end": 815 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Another part" + }, + "offset_header": 789, + "offset_body": 817, + "offset_end": 829 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/009.crlf.json b/tests/thirdparty/009.crlf.json new file mode 100644 index 0000000..1be8d13 --- /dev/null +++ b/tests/thirdparty/009.crlf.json @@ -0,0 +1,393 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [ + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "In parts" + }, + "offset_field": 0, + "offset_start": 8, + "offset_end": 19 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 19, + "offset_start": 32, + "offset_end": 38 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ] + ] + } + }, + "offset_field": 38, + "offset_start": 51, + "offset_end": 81 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 83, + "offset_end": 542 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 88, + "offset_start": 101, + "offset_end": 114 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "binary" + }, + "offset_field": 114, + "offset_start": 140, + "offset_end": 149 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Hi, this is the fancy thing I was talking about!" + }, + "offset_header": 88, + "offset_body": 151, + "offset_end": 199 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "partial", + "attributes": [ + [ + "number", + "1" + ], + [ + "total", + "5" + ], + [ + "id", + "heks68ewe@example.org" + ] + ] + } + }, + "offset_field": 206, + "offset_start": 219, + "offset_end": 284 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 88, + 45, + 87, + 101, + 105, + 114, + 100, + 45, + 72, + 101, + 97, + 100, + 101, + 114, + 45, + 49, + 58, + 32, + 66, + 97, + 114, + 13, + 10, + 88, + 45, + 87, + 101, + 105, + 114, + 100, + 45, + 72, + 101, + 97, + 100, + 101, + 114, + 45, + 50, + 58, + 32, + 72, + 101, + 108, + 108, + 111, + 13, + 10, + 77, + 101, + 115, + 115, + 97, + 103, + 101, + 45, + 73, + 68, + 58, + 32, + 60, + 99, + 54, + 99, + 99, + 101, + 101, + 98, + 99, + 45, + 49, + 100, + 99, + 102, + 45, + 49, + 49, + 101, + 98, + 45, + 98, + 101, + 56, + 99, + 45, + 102, + 55, + 99, + 97, + 49, + 51, + 50, + 99, + 98, + 102, + 101, + 97, + 64, + 101, + 120, + 97, + 109, + 112, + 108, + 101, + 46, + 111, + 114, + 103, + 62, + 13, + 10, + 67, + 111, + 110, + 116, + 101, + 110, + 116, + 45, + 84, + 121, + 112, + 101, + 58, + 32, + 116, + 101, + 120, + 116, + 47, + 112, + 108, + 97, + 105, + 110, + 59, + 32, + 99, + 104, + 97, + 114, + 115, + 101, + 116, + 61, + 34, + 117, + 115, + 45, + 97, + 115, + 99, + 105, + 105, + 34, + 13, + 10, + 67, + 111, + 110, + 116, + 101, + 110, + 116, + 45, + 84, + 114, + 97, + 110, + 115, + 102, + 101, + 114, + 45, + 69, + 110, + 99, + 111, + 100, + 105, + 110, + 103, + 58, + 32, + 98, + 97, + 115, + 101, + 54, + 52, + 13, + 10, + 13, + 10, + 100, + 71, + 104, + 112, + 99, + 121, + 66, + 112, + 99, + 121, + 66, + 48, + 97, + 71, + 85, + 103, + 90, + 109, + 108, + 121, + 99, + 51, + 81, + 103, + 99, + 71, + 70, + 121, + 100, + 67, + 66, + 118, + 90, + 105, + 66, + 48, + 97, + 71, + 85, + 103, + 98, + 87, + 86, + 122, + 99, + 50, + 70, + 110, + 90, + 81, + 111, + 61 + ] + }, + "offset_header": 206, + "offset_body": 286, + "offset_end": 533 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/010.crlf.json b/tests/thirdparty/010.crlf.json new file mode 100644 index 0000000..05245f3 --- /dev/null +++ b/tests/thirdparty/010.crlf.json @@ -0,0 +1,118 @@ +{ + "html_body": [ + 1 + ], + "text_body": [ + 1 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "こんにちは" + }, + "offset_field": 0, + "offset_start": 8, + "offset_end": 43 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 43, + "offset_start": 56, + "offset_end": 62 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "1" + ], + [ + "comment", + "人権の無視及" + ] + ] + } + }, + "offset_field": 62, + "offset_start": 75, + "offset_end": 149 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1 + ] + }, + "offset_header": 0, + "offset_body": 151, + "offset_end": 266 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 156, + "offset_start": 169, + "offset_end": 182 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "binary" + }, + "offset_field": 182, + "offset_start": 208, + "offset_end": 217 + }, + { + "name": { + "Rfc": "content_language" + }, + "value": { + "Text": "ja" + }, + "offset_field": 217, + "offset_start": 234, + "offset_end": 239 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "人権の無視及" + }, + "offset_header": 156, + "offset_body": 241, + "offset_end": 259 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/011.crlf.json b/tests/thirdparty/011.crlf.json new file mode 100644 index 0000000..ffe6875 --- /dev/null +++ b/tests/thirdparty/011.crlf.json @@ -0,0 +1,3636 @@ +{ + "html_body": [ + 3 + ], + "text_body": [ + 1 + ], + "attachments": [ + 4 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "return_path" + }, + "value": { + "Text": "dummy@xyz-webserver.abcd-gestion.local" + }, + "offset_field": 0, + "offset_start": 12, + "offset_end": 53 + }, + { + "name": { + "Other": "Delivered-To" + }, + "value": { + "Text": " admin@xyz-webserver.abcd-gestion.local\r\n" + }, + "offset_field": 53, + "offset_start": 66, + "offset_end": 107 + }, + { + "name": { + "Rfc": "received" + }, + "value": { + "Text": "from [10.1.1.1] (Unknown [10.1.1.1])\r\n\tby xyz-webserver.abcd-gestion.com with ESMTPA\r\n\t; Mon, 18 Jul 2022 08:19:52 -0700" + }, + "offset_field": 107, + "offset_start": 116, + "offset_end": 239 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "------------89rdZlF87ukwoHkrsSI299lb" + ] + ] + } + }, + "offset_field": 239, + "offset_start": 252, + "offset_end": 327 + }, + { + "name": { + "Rfc": "message_id" + }, + "value": { + "Text": "ca2236fb-9819-82dd-c501-d3bcf737a768@xyz-webserver.abcd-gestion.local" + }, + "offset_field": 327, + "offset_start": 338, + "offset_end": 412 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2022, + "month": 7, + "day": 18, + "hour": 17, + "minute": 19, + "second": 52, + "tz_before_gmt": false, + "tz_hour": 2, + "tz_minute": 0 + } + }, + "offset_field": 412, + "offset_start": 417, + "offset_end": 451 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 451, + "offset_start": 464, + "offset_end": 470 + }, + { + "name": { + "Other": "User-Agent" + }, + "value": { + "Text": " Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101\r\n Thunderbird/91.11.0\r\n" + }, + "offset_field": 470, + "offset_start": 481, + "offset_end": 571 + }, + { + "name": { + "Rfc": "content_language" + }, + "value": { + "Text": "fr" + }, + "offset_field": 571, + "offset_start": 588, + "offset_end": 593 + }, + { + "name": { + "Rfc": "to" + }, + "value": { + "Address": { + "name": "admin xyz", + "address": "admin@xyz-webserver.abcd-gestion.local" + } + }, + "offset_field": 593, + "offset_start": 596, + "offset_end": 649 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": "Dummy", + "address": "dummy@xyz-webserver.abcd-gestion.local" + } + }, + "offset_field": 649, + "offset_start": 654, + "offset_end": 703 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "small image" + }, + "offset_field": 703, + "offset_start": 711, + "offset_end": 725 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 727, + "offset_end": 6206 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": [ + [ + "charset", + "UTF-8" + ], + [ + "format", + "flowed" + ] + ] + } + }, + "offset_field": 813, + "offset_start": 826, + "offset_end": 869 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 869, + "offset_start": 895, + "offset_end": 902 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "" + }, + "offset_header": 813, + "offset_body": 904, + "offset_end": 904 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "related", + "attributes": [ + [ + "boundary", + "------------NiQaqvKcGeCafTrVNpipUb0K" + ] + ] + } + }, + "offset_field": 944, + "offset_start": 957, + "offset_end": 1028 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 3, + 4 + ] + }, + "offset_header": 944, + "offset_body": 1030, + "offset_end": 6164 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": [ + [ + "charset", + "UTF-8" + ] + ] + } + }, + "offset_field": 1070, + "offset_start": 1083, + "offset_end": 1110 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 1110, + "offset_start": 1136, + "offset_end": 1143 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "\r\n \r\n\r\n \r\n \r\n \r\n

\r\n \r\n" + }, + "offset_header": 1070, + "offset_body": 1145, + "offset_end": 1387 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "png", + "attributes": [ + [ + "name", + "01H5HSCoUeEcg6CH.png" + ] + ] + } + }, + "offset_field": 1429, + "offset_start": 1442, + "offset_end": 1483 + }, + { + "name": { + "Rfc": "content_disposition" + }, + "value": { + "ContentType": { + "c_type": "inline", + "c_subtype": null, + "attributes": [ + [ + "filename", + "01H5HSCoUeEcg6CH.png" + ] + ] + } + }, + "offset_field": 1483, + "offset_start": 1503, + "offset_end": 1545 + }, + { + "name": { + "Rfc": "content_id" + }, + "value": { + "Text": "part1.9UVUk3pv.Sy4hPOBH@xyz-webserver.abcd-gestion.local" + }, + "offset_field": 1545, + "offset_start": 1556, + "offset_end": 1617 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "base64" + }, + "offset_field": 1617, + "offset_start": 1643, + "offset_end": 1652 + } + ], + "is_encoding_problem": false, + "body": { + "Binary": [ + 137, + 80, + 78, + 71, + 13, + 10, + 26, + 10, + 0, + 0, + 0, + 13, + 73, + 72, + 68, + 82, + 0, + 0, + 0, + 126, + 0, + 0, + 0, + 91, + 8, + 2, + 0, + 0, + 0, + 58, + 32, + 166, + 90, + 0, + 0, + 0, + 1, + 115, + 82, + 71, + 66, + 0, + 174, + 206, + 28, + 233, + 0, + 0, + 0, + 4, + 103, + 65, + 77, + 65, + 0, + 0, + 177, + 143, + 11, + 252, + 97, + 5, + 0, + 0, + 12, + 98, + 73, + 68, + 65, + 84, + 120, + 94, + 237, + 156, + 123, + 112, + 84, + 87, + 29, + 199, + 239, + 205, + 147, + 132, + 55, + 225, + 85, + 30, + 133, + 66, + 82, + 24, + 90, + 74, + 169, + 16, + 42, + 136, + 86, + 251, + 135, + 29, + 255, + 176, + 15, + 152, + 169, + 182, + 226, + 140, + 163, + 98, + 255, + 169, + 162, + 127, + 89, + 199, + 71, + 209, + 233, + 31, + 62, + 58, + 34, + 211, + 58, + 58, + 50, + 218, + 65, + 58, + 78, + 117, + 70, + 107, + 69, + 107, + 103, + 28, + 167, + 83, + 117, + 148, + 242, + 12, + 125, + 200, + 148, + 4, + 18, + 42, + 143, + 144, + 16, + 18, + 8, + 129, + 60, + 118, + 215, + 239, + 239, + 113, + 206, + 61, + 119, + 119, + 9, + 217, + 144, + 236, + 221, + 108, + 238, + 119, + 239, + 158, + 243, + 253, + 253, + 206, + 185, + 155, + 156, + 207, + 57, + 123, + 184, + 155, + 189, + 131, + 159, + 74, + 165, + 188, + 177, + 47, + 59, + 6, + 59, + 26, + 25, + 23, + 10, + 60, + 130, + 146, + 91, + 225, + 164, + 45, + 73, + 37, + 55, + 120, + 158, + 239, + 121, + 73, + 243, + 50, + 62, + 106, + 95, + 59, + 15, + 38, + 156, + 147, + 242, + 124, + 148, + 185, + 200, + 188, + 108, + 170, + 56, + 209, + 83, + 193, + 14, + 79, + 2, + 77, + 232, + 57, + 197, + 244, + 245, + 65, + 145, + 246, + 146, + 146, + 186, + 72, + 5, + 160, + 52, + 19, + 25, + 226, + 126, + 34, + 223, + 32, + 71, + 106, + 104, + 240, + 249, + 92, + 252, + 92, + 158, + 48, + 168, + 72, + 208, + 67, + 118, + 24, + 50, + 32, + 139, + 83, + 16, + 211, + 152, + 109, + 146, + 185, + 75, + 142, + 106, + 106, + 162, + 208, + 26, + 60, + 9, + 61, + 231, + 172, + 208, + 147, + 17, + 135, + 179, + 44, + 59, + 13, + 217, + 196, + 47, + 104, + 78, + 114, + 79, + 46, + 90, + 244, + 108, + 200, + 161, + 148, + 4, + 42, + 125, + 48, + 96, + 59, + 112, + 74, + 80, + 204, + 15, + 201, + 216, + 38, + 174, + 53, + 128, + 180, + 7, + 45, + 220, + 76, + 185, + 89, + 178, + 230, + 180, + 224, + 116, + 120, + 13, + 168, + 42, + 30, + 244, + 80, + 48, + 18, + 195, + 72, + 217, + 153, + 65, + 218, + 80, + 124, + 168, + 143, + 61, + 135, + 155, + 184, + 86, + 99, + 34, + 146, + 169, + 201, + 177, + 15, + 18, + 34, + 125, + 3, + 100, + 180, + 145, + 55, + 79, + 169, + 138, + 10, + 61, + 20, + 12, + 70, + 209, + 24, + 180, + 108, + 76, + 70, + 67, + 42, + 249, + 169, + 9, + 215, + 163, + 114, + 224, + 102, + 123, + 74, + 145, + 166, + 32, + 167, + 63, + 133, + 61, + 166, + 195, + 132, + 65, + 182, + 216, + 208, + 67, + 238, + 120, + 4, + 167, + 29, + 162, + 27, + 153, + 164, + 116, + 161, + 166, + 204, + 12, + 7, + 161, + 172, + 52, + 177, + 28, + 11, + 193, + 17, + 96, + 39, + 195, + 41, + 23, + 47, + 57, + 243, + 132, + 138, + 16, + 61, + 20, + 26, + 146, + 187, + 120, + 77, + 3, + 70, + 45, + 150, + 179, + 98, + 228, + 161, + 146, + 230, + 112, + 82, + 61, + 133, + 154, + 50, + 149, + 233, + 17, + 106, + 8, + 78, + 132, + 56, + 97, + 98, + 169, + 139, + 19, + 61, + 228, + 142, + 42, + 132, + 198, + 16, + 161, + 146, + 27, + 52, + 228, + 74, + 154, + 157, + 14, + 198, + 112, + 86, + 242, + 240, + 153, + 204, + 156, + 87, + 226, + 138, + 173, + 158, + 97, + 43, + 71, + 232, + 95, + 180, + 232, + 161, + 244, + 129, + 101, + 99, + 167, + 181, + 251, + 38, + 224, + 74, + 250, + 74, + 150, + 29, + 25, + 77, + 216, + 164, + 85, + 144, + 206, + 236, + 200, + 114, + 38, + 1, + 70, + 118, + 166, + 98, + 70, + 47, + 74, + 31, + 158, + 82, + 32, + 103, + 135, + 30, + 244, + 81, + 56, + 250, + 228, + 188, + 22, + 210, + 199, + 161, + 229, + 90, + 91, + 56, + 47, + 202, + 226, + 243, + 244, + 147, + 49, + 187, + 224, + 180, + 226, + 71, + 47, + 74, + 31, + 164, + 65, + 201, + 10, + 49, + 16, + 107, + 88, + 153, + 110, + 118, + 26, + 156, + 19, + 221, + 230, + 112, + 183, + 64, + 238, + 75, + 27, + 167, + 157, + 198, + 11, + 122, + 171, + 208, + 104, + 195, + 164, + 200, + 7, + 12, + 85, + 161, + 57, + 224, + 172, + 197, + 207, + 5, + 41, + 212, + 36, + 10, + 58, + 160, + 8, + 254, + 30, + 100, + 154, + 73, + 227, + 14, + 61, + 148, + 62, + 224, + 204, + 9, + 160, + 138, + 106, + 241, + 198, + 5, + 252, + 216, + 184, + 41, + 219, + 71, + 27, + 177, + 177, + 36, + 169, + 141, + 119, + 117, + 167, + 213, + 138, + 218, + 34, + 70, + 223, + 252, + 178, + 119, + 96, + 187, + 119, + 225, + 136, + 134, + 67, + 209, + 228, + 197, + 222, + 250, + 31, + 123, + 139, + 31, + 210, + 112, + 88, + 74, + 31, + 243, + 141, + 232, + 67, + 18, + 73, + 202, + 73, + 170, + 149, + 60, + 23, + 182, + 74, + 249, + 192, + 27, + 202, + 6, + 66, + 24, + 53, + 250, + 23, + 23, + 123, + 221, + 45, + 234, + 135, + 174, + 154, + 187, + 189, + 205, + 135, + 213, + 15, + 87, + 233, + 44, + 156, + 152, + 184, + 72, + 7, + 135, + 142, + 56, + 70, + 202, + 77, + 44, + 105, + 151, + 167, + 38, + 53, + 195, + 81, + 168, + 167, + 214, + 82, + 65, + 37, + 90, + 71, + 165, + 220, + 185, + 95, + 72, + 204, + 204, + 237, + 93, + 114, + 29, + 1, + 174, + 43, + 55, + 76, + 107, + 10, + 201, + 208, + 68, + 105, + 185, + 163, + 166, + 146, + 30, + 148, + 210, + 76, + 138, + 254, + 246, + 201, + 38, + 36, + 108, + 68, + 162, + 168, + 209, + 23, + 146, + 44, + 113, + 34, + 26, + 22, + 17, + 21, + 184, + 86, + 156, + 18, + 202, + 84, + 16, + 99, + 9, + 5, + 46, + 237, + 245, + 34, + 152, + 36, + 7, + 100, + 120, + 50, + 80, + 226, + 136, + 209, + 171, + 136, + 154, + 90, + 179, + 219, + 216, + 146, + 43, + 42, + 4, + 46, + 101, + 40, + 103, + 23, + 53, + 27, + 69, + 108, + 202, + 164, + 248, + 4, + 106, + 73, + 74, + 222, + 28, + 200, + 23, + 42, + 250, + 169, + 183, + 123, + 235, + 119, + 120, + 31, + 221, + 237, + 221, + 247, + 75, + 111, + 241, + 131, + 154, + 204, + 175, + 24, + 47, + 193, + 165, + 210, + 224, + 22, + 35, + 203, + 86, + 113, + 115, + 69, + 25, + 65, + 172, + 100, + 149, + 175, + 100, + 16, + 82, + 134, + 103, + 66, + 14, + 36, + 11, + 21, + 125, + 213, + 28, + 111, + 225, + 3, + 222, + 146, + 77, + 94, + 237, + 99, + 222, + 204, + 15, + 104, + 114, + 68, + 197, + 72, + 141, + 244, + 27, + 40, + 149, + 240, + 37, + 195, + 157, + 40, + 228, + 238, + 146, + 71, + 146, + 75, + 198, + 77, + 53, + 149, + 124, + 120, + 130, + 88, + 200, + 26, + 250, + 98, + 146, + 137, + 4, + 29, + 156, + 81, + 250, + 133, + 138, + 254, + 220, + 63, + 188, + 151, + 150, + 123, + 13, + 207, + 122, + 201, + 62, + 205, + 140, + 166, + 152, + 176, + 202, + 208, + 14, + 115, + 39, + 220, + 150, + 59, + 37, + 25, + 58, + 133, + 2, + 29, + 76, + 25, + 53, + 205, + 1, + 36, + 134, + 14, + 225, + 78, + 173, + 116, + 200, + 172, + 200, + 17, + 239, + 245, + 14, + 108, + 43, + 19, + 4, + 220, + 217, + 112, + 73, + 55, + 46, + 128, + 53, + 92, + 18, + 5, + 1, + 149, + 41, + 97, + 240, + 98, + 116, + 38, + 100, + 201, + 39, + 19, + 193, + 4, + 80, + 15, + 154, + 131, + 168, + 208, + 95, + 236, + 79, + 236, + 57, + 117, + 225, + 139, + 135, + 78, + 226, + 208, + 148, + 168, + 124, + 178, + 119, + 219, + 38, + 175, + 110, + 11, + 109, + 50, + 211, + 87, + 104, + 114, + 244, + 5, + 140, + 86, + 236, + 9, + 177, + 43, + 10, + 77, + 3, + 216, + 193, + 19, + 96, + 78, + 74, + 133, + 130, + 14, + 157, + 3, + 41, + 131, + 153, + 160, + 12, + 207, + 22, + 12, + 231, + 36, + 204, + 47, + 250, + 107, + 201, + 212, + 215, + 142, + 158, + 154, + 247, + 231, + 67, + 91, + 14, + 52, + 237, + 106, + 110, + 195, + 161, + 13, + 34, + 124, + 80, + 170, + 127, + 198, + 219, + 248, + 188, + 183, + 97, + 231, + 77, + 126, + 88, + 189, + 161, + 152, + 100, + 160, + 193, + 47, + 228, + 179, + 138, + 211, + 84, + 88, + 226, + 100, + 153, + 47, + 172, + 180, + 114, + 82, + 43, + 234, + 66, + 18, + 67, + 249, + 252, + 125, + 154, + 5, + 247, + 71, + 247, + 29, + 127, + 229, + 108, + 167, + 198, + 172, + 84, + 219, + 58, + 117, + 89, + 181, + 230, + 187, + 222, + 93, + 219, + 188, + 163, + 59, + 188, + 3, + 223, + 214, + 12, + 127, + 164, + 170, + 41, + 109, + 247, + 190, + 116, + 131, + 95, + 251, + 59, + 239, + 158, + 254, + 217, + 201, + 86, + 13, + 114, + 209, + 172, + 202, + 242, + 63, + 222, + 91, + 183, + 168, + 186, + 146, + 48, + 9, + 50, + 100, + 201, + 203, + 202, + 165, + 24, + 107, + 150, + 114, + 129, + 199, + 26, + 183, + 112, + 181, + 73, + 22, + 56, + 73, + 50, + 250, + 32, + 201, + 76, + 231, + 111, + 213, + 127, + 243, + 157, + 247, + 247, + 50, + 247, + 213, + 83, + 171, + 27, + 238, + 191, + 51, + 245, + 72, + 125, + 242, + 145, + 122, + 105, + 26, + 13, + 117, + 245, + 15, + 156, + 239, + 29, + 206, + 209, + 222, + 219, + 159, + 16, + 66, + 34, + 159, + 73, + 49, + 45, + 45, + 124, + 175, + 68, + 223, + 38, + 220, + 98, + 10, + 58, + 208, + 104, + 238, + 201, + 129, + 225, + 208, + 30, + 252, + 244, + 125, + 156, + 43, + 153, + 60, + 161, + 63, + 218, + 213, + 179, + 187, + 165, + 29, + 255, + 46, + 129, + 251, + 95, + 63, + 180, + 252, + 174, + 169, + 213, + 72, + 234, + 239, + 88, + 128, + 50, + 191, + 25, + 3, + 53, + 40, + 165, + 212, + 56, + 192, + 90, + 66, + 133, + 231, + 163, + 42, + 97, + 180, + 52, + 49, + 82, + 179, + 225, + 174, + 36, + 110, + 215, + 38, + 82, + 73, + 158, + 54, + 156, + 23, + 90, + 218, + 63, + 127, + 240, + 68, + 121, + 137, + 255, + 155, + 250, + 218, + 135, + 231, + 77, + 215, + 44, + 244, + 115, + 25, + 81, + 14, + 26, + 226, + 134, + 179, + 173, + 161, + 229, + 39, + 77, + 180, + 225, + 44, + 172, + 170, + 120, + 114, + 233, + 156, + 170, + 210, + 244, + 69, + 22, + 58, + 63, + 229, + 237, + 239, + 236, + 254, + 245, + 169, + 11, + 176, + 115, + 42, + 203, + 222, + 248, + 200, + 29, + 75, + 170, + 43, + 40, + 205, + 91, + 132, + 238, + 33, + 108, + 108, + 134, + 156, + 220, + 161, + 198, + 78, + 246, + 23, + 82, + 208, + 13, + 15, + 142, + 145, + 145, + 130, + 207, + 21, + 209, + 148, + 104, + 227, + 40, + 75, + 64, + 96, + 84, + 255, + 186, + 239, + 142, + 165, + 19, + 43, + 53, + 11, + 141, + 62, + 250, + 85, + 83, + 171, + 255, + 190, + 113, + 249, + 140, + 138, + 50, + 201, + 187, + 114, + 95, + 98, + 215, + 201, + 182, + 173, + 135, + 233, + 138, + 75, + 208, + 227, + 151, + 20, + 50, + 12, + 145, + 107, + 54, + 4, + 211, + 24, + 201, + 82, + 200, + 30, + 151, + 52, + 166, + 155, + 38, + 77, + 23, + 58, + 31, + 70, + 43, + 212, + 60, + 232, + 8, + 46, + 46, + 111, + 82, + 196, + 125, + 132, + 20, + 154, + 118, + 39, + 16, + 139, + 77, + 129, + 75, + 94, + 161, + 28, + 145, + 225, + 205, + 154, + 15, + 49, + 92, + 242, + 206, + 194, + 165, + 77, + 250, + 8, + 229, + 40, + 21, + 67, + 73, + 234, + 193, + 158, + 91, + 248, + 167, + 228, + 91, + 127, + 57, + 215, + 249, + 92, + 83, + 235, + 239, + 78, + 119, + 120, + 147, + 22, + 105, + 42, + 39, + 213, + 172, + 82, + 115, + 211, + 114, + 128, + 135, + 196, + 184, + 153, + 56, + 225, + 150, + 9, + 96, + 190, + 20, + 154, + 36, + 91, + 18, + 111, + 235, + 2, + 221, + 136, + 90, + 145, + 209, + 8, + 162, + 30, + 8, + 185, + 35, + 229, + 35, + 90, + 245, + 59, + 155, + 90, + 159, + 108, + 104, + 121, + 230, + 216, + 153, + 238, + 117, + 207, + 230, + 204, + 17, + 179, + 181, + 230, + 105, + 245, + 163, + 35, + 160, + 84, + 177, + 147, + 80, + 104, + 242, + 131, + 128, + 242, + 28, + 136, + 167, + 80, + 146, + 70, + 220, + 65, + 75, + 146, + 206, + 129, + 78, + 134, + 246, + 140, + 120, + 195, + 233, + 187, + 245, + 65, + 111, + 243, + 145, + 142, + 207, + 245, + 223, + 93, + 251, + 150, + 63, + 107, + 223, + 182, + 123, + 155, + 177, + 137, + 55, + 125, + 230, + 218, + 220, + 5, + 7, + 17, + 238, + 250, + 248, + 121, + 218, + 211, + 211, + 142, + 199, + 155, + 71, + 246, + 3, + 23, + 81, + 83, + 107, + 100, + 98, + 170, + 133, + 147, + 116, + 3, + 53, + 138, + 109, + 94, + 51, + 102, + 117, + 115, + 72, + 76, + 109, + 6, + 9, + 77, + 154, + 194, + 190, + 206, + 24, + 220, + 235, + 115, + 85, + 67, + 87, + 79, + 205, + 222, + 67, + 254, + 239, + 223, + 28, + 252, + 216, + 26, + 254, + 171, + 6, + 163, + 98, + 163, + 33, + 213, + 74, + 77, + 24, + 18, + 190, + 176, + 225, + 18, + 208, + 53, + 77, + 25, + 246, + 112, + 124, + 34, + 191, + 130, + 196, + 84, + 23, + 45, + 250, + 47, + 215, + 206, + 93, + 57, + 165, + 74, + 131, + 33, + 171, + 220, + 247, + 191, + 82, + 59, + 119, + 137, + 185, + 6, + 83, + 124, + 44, + 37, + 40, + 158, + 73, + 42, + 66, + 114, + 218, + 174, + 15, + 105, + 147, + 38, + 150, + 158, + 203, + 77, + 220, + 66, + 103, + 20, + 45, + 122, + 224, + 123, + 249, + 131, + 183, + 231, + 68, + 31, + 220, + 183, + 175, + 152, + 255, + 245, + 101, + 243, + 66, + 80, + 4, + 150, + 88, + 33, + 200, + 79, + 205, + 177, + 81, + 160, + 220, + 46, + 54, + 156, + 97, + 113, + 26, + 181, + 94, + 99, + 70, + 245, + 207, + 108, + 126, + 148, + 19, + 125, + 203, + 93, + 72, + 41, + 47, + 35, + 230, + 24, + 24, + 42, + 120, + 30, + 36, + 146, + 70, + 219, + 98, + 19, + 168, + 221, + 185, + 64, + 10, + 220, + 245, + 40, + 250, + 239, + 102, + 135, + 72, + 63, + 141, + 187, + 200, + 245, + 144, + 9, + 181, + 166, + 74, + 16, + 7, + 5, + 203, + 58, + 95, + 41, + 139, + 232, + 51, + 150, + 124, + 188, + 226, + 3, + 69, + 145, + 163, + 135, + 110, + 72, + 63, + 43, + 119, + 81, + 40, + 99, + 2, + 55, + 9, + 207, + 33, + 175, + 105, + 45, + 92, + 133, + 35, + 136, + 19, + 4, + 127, + 156, + 220, + 145, + 48, + 8, + 253, + 65, + 184, + 103, + 74, + 201, + 234, + 126, + 146, + 201, + 53, + 104, + 214, + 253, + 197, + 17, + 173, + 121, + 170, + 148, + 59, + 138, + 113, + 129, + 30, + 2, + 253, + 167, + 150, + 205, + 171, + 48, + 212, + 172, + 214, + 76, + 159, + 136, + 75, + 154, + 44, + 16, + 141, + 66, + 77, + 188, + 135, + 112, + 109, + 36, + 59, + 62, + 129, + 118, + 94, + 154, + 156, + 70, + 82, + 9, + 118, + 151, + 59, + 138, + 241, + 130, + 254, + 213, + 214, + 174, + 39, + 14, + 55, + 247, + 241, + 184, + 23, + 87, + 87, + 108, + 158, + 63, + 67, + 70, + 254, + 239, + 142, + 238, + 79, + 191, + 217, + 120, + 141, + 254, + 242, + 117, + 93, + 5, + 76, + 3, + 162, + 33, + 178, + 86, + 78, + 200, + 63, + 137, + 104, + 103, + 138, + 154, + 240, + 28, + 23, + 232, + 193, + 253, + 83, + 251, + 26, + 47, + 13, + 36, + 224, + 193, + 253, + 79, + 235, + 151, + 253, + 118, + 93, + 237, + 87, + 235, + 230, + 202, + 224, + 95, + 57, + 219, + 249, + 232, + 190, + 227, + 67, + 165, + 159, + 6, + 27, + 146, + 105, + 48, + 203, + 158, + 75, + 60, + 81, + 167, + 119, + 21, + 226, + 244, + 99, + 80, + 142, + 135, + 27, + 255, + 50, + 185, + 223, + 57, + 165, + 10, + 84, + 126, + 184, + 242, + 214, + 156, + 232, + 91, + 9, + 81, + 236, + 52, + 106, + 232, + 48, + 150, + 107, + 9, + 24, + 53, + 5, + 242, + 162, + 230, + 165, + 137, + 189, + 252, + 29, + 185, + 200, + 209, + 103, + 229, + 46, + 77, + 0, + 148, + 19, + 125, + 3, + 212, + 113, + 10, + 159, + 50, + 226, + 50, + 87, + 186, + 40, + 203, + 139, + 22, + 247, + 170, + 31, + 132, + 187, + 8, + 156, + 134, + 71, + 223, + 50, + 15, + 41, + 104, + 214, + 14, + 92, + 82, + 225, + 76, + 137, + 49, + 81, + 253, + 13, + 7, + 151, + 116, + 40, + 175, + 38, + 146, + 125, + 60, + 206, + 246, + 190, + 129, + 214, + 107, + 253, + 220, + 50, + 98, + 186, + 33, + 119, + 17, + 126, + 143, + 97, + 239, + 60, + 144, + 236, + 58, + 140, + 83, + 104, + 155, + 138, + 104, + 107, + 147, + 188, + 22, + 140, + 182, + 120, + 41, + 180, + 192, + 71, + 131, + 254, + 99, + 179, + 167, + 224, + 7, + 55, + 118, + 95, + 123, + 108, + 127, + 227, + 142, + 198, + 115, + 159, + 221, + 223, + 116, + 174, + 183, + 191, + 204, + 247, + 234, + 103, + 76, + 210, + 30, + 55, + 173, + 215, + 206, + 117, + 10, + 247, + 170, + 18, + 31, + 215, + 51, + 175, + 183, + 93, + 122, + 174, + 169, + 53, + 235, + 241, + 124, + 83, + 235, + 162, + 234, + 202, + 123, + 166, + 77, + 148, + 19, + 247, + 117, + 116, + 159, + 190, + 58, + 164, + 187, + 13, + 13, + 74, + 146, + 33, + 78, + 18, + 107, + 19, + 65, + 19, + 79, + 135, + 94, + 142, + 194, + 216, + 175, + 14, + 71, + 85, + 105, + 223, + 205, + 158, + 239, + 29, + 120, + 224, + 159, + 199, + 14, + 119, + 245, + 104, + 51, + 235, + 147, + 183, + 76, + 123, + 105, + 93, + 221, + 132, + 18, + 191, + 233, + 74, + 239, + 134, + 215, + 223, + 105, + 237, + 29, + 248, + 197, + 61, + 183, + 125, + 97, + 241, + 44, + 109, + 206, + 81, + 246, + 187, + 217, + 92, + 149, + 229, + 11, + 228, + 176, + 44, + 47, + 75, + 14, + 12, + 97, + 249, + 234, + 133, + 156, + 9, + 245, + 86, + 28, + 205, + 132, + 238, + 222, + 33, + 69, + 179, + 234, + 103, + 87, + 150, + 237, + 221, + 176, + 236, + 254, + 89, + 180, + 246, + 33, + 236, + 63, + 91, + 110, + 173, + 217, + 179, + 118, + 41, + 184, + 115, + 98, + 108, + 136, + 86, + 175, + 90, + 18, + 45, + 100, + 73, + 106, + 150, + 151, + 184, + 132, + 236, + 74, + 232, + 43, + 43, + 54, + 216, + 232, + 33, + 233, + 53, + 218, + 154, + 198, + 55, + 4, + 96, + 11, + 29, + 224, + 153, + 135, + 230, + 77, + 40, + 255, + 219, + 198, + 229, + 189, + 15, + 175, + 61, + 251, + 137, + 213, + 40, + 119, + 175, + 89, + 58, + 185, + 172, + 84, + 154, + 78, + 245, + 244, + 246, + 36, + 178, + 252, + 31, + 76, + 5, + 34, + 5, + 11, + 153, + 11, + 71, + 34, + 43, + 70, + 157, + 18, + 7, + 105, + 145, + 124, + 33, + 139, + 36, + 27, + 80, + 167, + 175, + 177, + 242, + 132, + 126, + 213, + 212, + 234, + 202, + 18, + 255, + 98, + 255, + 0, + 118, + 82, + 77, + 177, + 202, + 124, + 127, + 238, + 132, + 242, + 96, + 48, + 172, + 131, + 157, + 87, + 46, + 15, + 36, + 39, + 151, + 149, + 12, + 242, + 174, + 47, + 16, + 17, + 98, + 195, + 155, + 66, + 118, + 116, + 48, + 104, + 161, + 15, + 196, + 196, + 157, + 87, + 61, + 76, + 105, + 9, + 153, + 210, + 188, + 173, + 250, + 53, + 211, + 39, + 2, + 241, + 64, + 202, + 251, + 85, + 115, + 219, + 224, + 215, + 15, + 29, + 125, + 3, + 123, + 248, + 86, + 164, + 37, + 19, + 39, + 96, + 194, + 36, + 89, + 184, + 202, + 88, + 248, + 4, + 153, + 136, + 43, + 125, + 251, + 37, + 45, + 65, + 71, + 9, + 238, + 236, + 105, + 26, + 184, + 255, + 168, + 107, + 97, + 85, + 197, + 67, + 183, + 208, + 77, + 103, + 111, + 180, + 95, + 126, + 234, + 237, + 247, + 175, + 199, + 30, + 249, + 239, + 29, + 59, + 243, + 86, + 87, + 15, + 126, + 173, + 199, + 23, + 214, + 100, + 189, + 111, + 169, + 16, + 36, + 148, + 69, + 74, + 156, + 104, + 59, + 244, + 169, + 52, + 139, + 93, + 14, + 14, + 4, + 58, + 221, + 153, + 3, + 195, + 157, + 243, + 161, + 111, + 44, + 159, + 191, + 122, + 106, + 53, + 182, + 112, + 92, + 204, + 129, + 190, + 221, + 244, + 173, + 46, + 15, + 36, + 182, + 30, + 58, + 185, + 179, + 241, + 28, + 250, + 172, + 155, + 49, + 233, + 137, + 37, + 179, + 181, + 161, + 192, + 101, + 231, + 129, + 128, + 83, + 196, + 220, + 149, + 62, + 25, + 146, + 204, + 132, + 9, + 189, + 60, + 174, + 122, + 8, + 87, + 53, + 187, + 215, + 46, + 93, + 80, + 85, + 209, + 159, + 74, + 125, + 255, + 189, + 179, + 139, + 94, + 61, + 242, + 244, + 127, + 79, + 191, + 125, + 233, + 42, + 46, + 37, + 15, + 92, + 188, + 242, + 173, + 119, + 255, + 87, + 247, + 90, + 195, + 174, + 230, + 54, + 112, + 95, + 57, + 165, + 10, + 87, + 59, + 246, + 95, + 221, + 194, + 148, + 5, + 14, + 17, + 102, + 53, + 196, + 149, + 140, + 120, + 53, + 226, + 169, + 160, + 197, + 78, + 239, + 0, + 158, + 6, + 92, + 96, + 242, + 89, + 121, + 210, + 137, + 43, + 189, + 155, + 255, + 115, + 60, + 237, + 138, + 222, + 10, + 11, + 225, + 195, + 51, + 39, + 191, + 88, + 95, + 139, + 235, + 31, + 77, + 13, + 87, + 47, + 180, + 180, + 255, + 225, + 76, + 135, + 6, + 185, + 104, + 90, + 121, + 217, + 15, + 86, + 46, + 156, + 83, + 57, + 164, + 95, + 32, + 196, + 142, + 174, + 235, + 85, + 46, + 85, + 114, + 230, + 25, + 84, + 152, + 146, + 60, + 163, + 135, + 176, + 213, + 252, + 244, + 196, + 249, + 31, + 189, + 119, + 22, + 31, + 26, + 237, + 37, + 36, + 160, + 215, + 77, + 154, + 176, + 125, + 197, + 130, + 77, + 243, + 167, + 227, + 178, + 71, + 179, + 99, + 68, + 105, + 4, + 211, + 177, + 95, + 7, + 112, + 4, + 232, + 173, + 112, + 49, + 115, + 177, + 159, + 62, + 235, + 67, + 88, + 101, + 147, + 202, + 242, + 183, + 251, + 141, + 184, + 178, + 64, + 52, + 41, + 167, + 41, + 212, + 43, + 74, + 244, + 197, + 167, + 193, + 80, + 162, + 205, + 190, + 153, + 185, + 95, + 140, + 126, + 116, + 53, + 8, + 220, + 24, + 125, + 100, + 26, + 195, + 219, + 235, + 88, + 87, + 140, + 62, + 50, + 197, + 232, + 35, + 83, + 140, + 62, + 50, + 197, + 232, + 35, + 83, + 140, + 62, + 50, + 197, + 232, + 35, + 83, + 140, + 62, + 50, + 197, + 232, + 35, + 83, + 140, + 62, + 50, + 197, + 232, + 35, + 83, + 140, + 62, + 50, + 197, + 232, + 35, + 83, + 140, + 62, + 50, + 197, + 232, + 35, + 83, + 140, + 62, + 50, + 197, + 232, + 35, + 83, + 140, + 62, + 50, + 197, + 232, + 35, + 83, + 140, + 62, + 50, + 249, + 201, + 100, + 225, + 222, + 201, + 94, + 152, + 226, + 27, + 250, + 70, + 64, + 241, + 29, + 9, + 57, + 11, + 139, + 117, + 68, + 110, + 142, + 143, + 55, + 156, + 156, + 213, + 223, + 223, + 63, + 34, + 235, + 53, + 70, + 159, + 179, + 18, + 9, + 189, + 89, + 241, + 38, + 21, + 163, + 143, + 76, + 49, + 250, + 200, + 20, + 163, + 207, + 89, + 216, + 232, + 227, + 189, + 126, + 44, + 203, + 243, + 254, + 15, + 104, + 66, + 131, + 97, + 17, + 11, + 80, + 180, + 0, + 0, + 0, + 0, + 73, + 69, + 78, + 68, + 174, + 66, + 96, + 130 + ] + }, + "offset_header": 1429, + "offset_body": 1654, + "offset_end": 6120 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/012.crlf.json b/tests/thirdparty/012.crlf.json new file mode 100644 index 0000000..7c01bec --- /dev/null +++ b/tests/thirdparty/012.crlf.json @@ -0,0 +1,300 @@ +{ + "html_body": [], + "text_body": [], + "attachments": [ + 1, + 2 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Other": "From user@domain Fri Feb 22 17" + }, + "value": { + "Text": "06:23 2008\r\n" + }, + "offset_field": 0, + "offset_start": 32, + "offset_end": 44 + }, + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": null, + "address": "user@domain.org" + } + }, + "offset_field": 44, + "offset_start": 49, + "offset_end": 67 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2007, + "month": 3, + "day": 24, + "hour": 23, + "minute": 0, + "second": 0, + "tz_before_gmt": false, + "tz_hour": 2, + "tz_minute": 0 + } + }, + "offset_field": 67, + "offset_start": 72, + "offset_end": 106 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 106, + "offset_start": 119, + "offset_end": 125 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "foo bar" + ] + ] + } + }, + "offset_field": 125, + "offset_start": 138, + "offset_end": 178 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 0, + "offset_body": 180, + "offset_end": 644 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "x-myown", + "attributes": [ + [ + "charset", + "us-ascii" + ] + ] + } + }, + "offset_field": 213, + "offset_start": 226, + "offset_end": 259 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "hello\r\n" + }, + "offset_header": 213, + "offset_body": 261, + "offset_end": 268 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "message", + "c_subtype": "rfc822", + "attributes": null + } + }, + "offset_field": 281, + "offset_start": 294, + "offset_end": 311 + } + ], + "is_encoding_problem": false, + "body": { + "Message": { + "html_body": [ + 1 + ], + "text_body": [ + 2 + ], + "attachments": [], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "from" + }, + "value": { + "Address": { + "name": null, + "address": "sub@domain.org" + } + }, + "offset_field": 313, + "offset_start": 318, + "offset_end": 335 + }, + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2012, + "month": 8, + "day": 12, + "hour": 12, + "minute": 34, + "second": 56, + "tz_before_gmt": false, + "tz_hour": 3, + "tz_minute": 0 + } + }, + "offset_field": 335, + "offset_start": 340, + "offset_end": 374 + }, + { + "name": { + "Rfc": "subject" + }, + "value": { + "Text": "submsg" + }, + "offset_field": 374, + "offset_start": 382, + "offset_end": 391 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "sub1" + ] + ] + } + }, + "offset_field": 391, + "offset_start": 404, + "offset_end": 445 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 2 + ] + }, + "offset_header": 313, + "offset_body": 447, + "offset_end": 611 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": null + } + }, + "offset_field": 474, + "offset_start": 487, + "offset_end": 499 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "

Hello world

\r\n" + }, + "offset_header": 474, + "offset_body": 501, + "offset_end": 521 + }, + { + "headers": [ + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 531, + "offset_start": 544, + "offset_end": 557 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "Hello another world\r\n" + }, + "offset_header": 531, + "offset_body": 559, + "offset_end": 580 + } + ] + } + }, + "offset_header": 281, + "offset_body": 313, + "offset_end": 611 + } + ] +} \ No newline at end of file diff --git a/tests/thirdparty/013.crlf.json b/tests/thirdparty/013.crlf.json new file mode 100644 index 0000000..cafcd3b --- /dev/null +++ b/tests/thirdparty/013.crlf.json @@ -0,0 +1,473 @@ +{ + "html_body": [ + 3, + 4, + 5, + 6 + ], + "text_body": [ + 2, + 4, + 5, + 6 + ], + "attachments": [ + 4, + 5, + 6 + ], + "parts": [ + { + "headers": [ + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2022, + "month": 8, + "day": 19, + "hour": 13, + "minute": 10, + "second": 40, + "tz_before_gmt": false, + "tz_hour": 0, + "tz_minute": 0 + } + }, + "offset_field": 0, + "offset_start": 5, + "offset_end": 39 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 39, + "offset_start": 52, + "offset_end": 58 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "mixed", + "attributes": [ + [ + "boundary", + "166091464015.94FEC6.541095" + ] + ] + } + }, + "offset_field": 58, + "offset_start": 71, + "offset_end": 126 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 126, + "offset_start": 152, + "offset_end": 159 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 1, + 4, + 5, + 6 + ] + }, + "offset_header": 0, + "offset_body": 161, + "offset_end": 1028 + }, + { + "headers": [ + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2022, + "month": 8, + "day": 19, + "hour": 13, + "minute": 10, + "second": 40, + "tz_before_gmt": false, + "tz_hour": 0, + "tz_minute": 0 + } + }, + "offset_field": 193, + "offset_start": 198, + "offset_end": 232 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 232, + "offset_start": 245, + "offset_end": 251 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "multipart", + "c_subtype": "alternative", + "attributes": [ + [ + "boundary", + "166091464014.8cee04D8.541095" + ] + ] + } + }, + "offset_field": 251, + "offset_start": 264, + "offset_end": 327 + }, + { + "name": { + "Rfc": "content_transfer_encoding" + }, + "value": { + "Text": "7bit" + }, + "offset_field": 327, + "offset_start": 353, + "offset_end": 360 + } + ], + "is_encoding_problem": false, + "body": { + "Multipart": [ + 2, + 3 + ] + }, + "offset_header": 193, + "offset_body": 362, + "offset_end": 639 + }, + { + "headers": [ + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2022, + "month": 8, + "day": 19, + "hour": 13, + "minute": 10, + "second": 40, + "tz_before_gmt": false, + "tz_hour": 0, + "tz_minute": 0 + } + }, + "offset_field": 396, + "offset_start": 401, + "offset_end": 435 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 435, + "offset_start": 448, + "offset_end": 454 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "plain", + "attributes": null + } + }, + "offset_field": 454, + "offset_start": 467, + "offset_end": 480 + } + ], + "is_encoding_problem": false, + "body": { + "Text": "a" + }, + "offset_header": 396, + "offset_body": 482, + "offset_end": 483 + }, + { + "headers": [ + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2022, + "month": 8, + "day": 19, + "hour": 13, + "minute": 10, + "second": 40, + "tz_before_gmt": false, + "tz_hour": 0, + "tz_minute": 0 + } + }, + "offset_field": 517, + "offset_start": 522, + "offset_end": 556 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 556, + "offset_start": 569, + "offset_end": 575 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "text", + "c_subtype": "html", + "attributes": null + } + }, + "offset_field": 575, + "offset_start": 588, + "offset_end": 600 + } + ], + "is_encoding_problem": false, + "body": { + "Html": "b" + }, + "offset_header": 517, + "offset_body": 602, + "offset_end": 603 + }, + { + "headers": [ + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2022, + "month": 8, + "day": 19, + "hour": 13, + "minute": 10, + "second": 40, + "tz_before_gmt": false, + "tz_hour": 0, + "tz_minute": 0 + } + }, + "offset_field": 671, + "offset_start": 676, + "offset_end": 710 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 710, + "offset_start": 723, + "offset_end": 729 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "image", + "c_subtype": "jpeg", + "attributes": null + } + }, + "offset_field": 729, + "offset_start": 742, + "offset_end": 755 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 99 + ] + }, + "offset_header": 671, + "offset_body": 757, + "offset_end": 758 + }, + { + "headers": [ + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2022, + "month": 8, + "day": 19, + "hour": 13, + "minute": 10, + "second": 40, + "tz_before_gmt": false, + "tz_hour": 0, + "tz_minute": 0 + } + }, + "offset_field": 790, + "offset_start": 795, + "offset_end": 829 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 829, + "offset_start": 842, + "offset_end": 848 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "audio", + "c_subtype": "mp3", + "attributes": null + } + }, + "offset_field": 848, + "offset_start": 861, + "offset_end": 873 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 100 + ] + }, + "offset_header": 790, + "offset_body": 875, + "offset_end": 876 + }, + { + "headers": [ + { + "name": { + "Rfc": "date" + }, + "value": { + "DateTime": { + "year": 2022, + "month": 8, + "day": 19, + "hour": 13, + "minute": 10, + "second": 40, + "tz_before_gmt": false, + "tz_hour": 0, + "tz_minute": 0 + } + }, + "offset_field": 908, + "offset_start": 913, + "offset_end": 947 + }, + { + "name": { + "Rfc": "mime_version" + }, + "value": { + "Text": "1.0" + }, + "offset_field": 947, + "offset_start": 960, + "offset_end": 966 + }, + { + "name": { + "Rfc": "content_type" + }, + "value": { + "ContentType": { + "c_type": "video", + "c_subtype": "avi", + "attributes": null + } + }, + "offset_field": 966, + "offset_start": 979, + "offset_end": 991 + } + ], + "is_encoding_problem": false, + "body": { + "InlineBinary": [ + 101 + ] + }, + "offset_header": 908, + "offset_body": 993, + "offset_end": 994 + } + ] +} \ No newline at end of file