diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-11-18 14:55:48 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-11-18 14:55:48 +0200 |
commit | 449a24d075ebeb647beb6424542697046f5ee3e2 (patch) | |
tree | bedbcda46853b3dfbe1d4255fc483a882c6fba4c /melib/src/email/parser.rs | |
parent | 590619de0e41d7f4035c0f4c6fbaa0dcfb1248ff (diff) |
ui: ListActions changes
- Parse List-Post value like List-Unsubscribe: comma separated angle bracket limited list of <mailto:> or <url> values
- Check if List-Archive value is angle bracket delimited
Diffstat (limited to 'melib/src/email/parser.rs')
-rw-r--r-- | melib/src/email/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/melib/src/email/parser.rs b/melib/src/email/parser.rs index ef03353e..67c7308f 100644 --- a/melib/src/email/parser.rs +++ b/melib/src/email/parser.rs @@ -921,7 +921,7 @@ pub fn phrase(input: &[u8]) -> IResult<&[u8], Vec<u8>> { IResult::Done(&input[ptr..], acc) } -named!(pub angle_bracket_delimeted_list<Vec<&[u8]>>, separated_nonempty_list!(complete!(is_a!(",")), ws!(complete!(message_id)))); +named!(pub angle_bracket_delimeted_list<Vec<&[u8]>>, separated_nonempty_list!(complete!(is_a!(",")), ws!(complete!(complete!(delimited!(tag!("<"), take_until1!(">"), tag!(">"))))))); pub fn mailto(mut input: &[u8]) -> IResult<&[u8], Mailto> { if !input.starts_with(b"mailto:") { |