diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-12-04 19:42:31 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-12-13 00:04:58 +0200 |
commit | 1ee8ef7a055d41de9aae0b078b5422cc9bf24456 (patch) | |
tree | 1dec1176b3b56c2f2545855546089a7c2d7a0356 /melib/src/email/parser.rs | |
parent | a1efeed34352e60434e511edc5d35ffb4c6b4276 (diff) |
JMAP WIP #4
Diffstat (limited to 'melib/src/email/parser.rs')
-rw-r--r-- | melib/src/email/parser.rs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/melib/src/email/parser.rs b/melib/src/email/parser.rs index 4176dce9..cad0dd32 100644 --- a/melib/src/email/parser.rs +++ b/melib/src/email/parser.rs @@ -1102,36 +1102,6 @@ mod tests { ); } - macro_rules! make_address { - ($d:literal, $a:literal) => { - Address::Mailbox(if $d.is_empty() { - MailboxAddress { - raw: format!("<{}>", $a).into_bytes(), - display_name: StrBuilder { - offset: 0, - length: 0, - }, - address_spec: StrBuilder { - offset: 1, - length: $a.len(), - }, - } - } else { - MailboxAddress { - raw: format!("{} <{}>", $d, $a).into_bytes(), - display_name: StrBuilder { - offset: 0, - length: $d.len(), - }, - address_spec: StrBuilder { - offset: $d.len() + 2, - length: $a.len(), - }, - } - }) - }; - } - #[test] fn test_address_list() { let s = b"Obit Oppidum <user@domain>, |