diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-02-08 13:45:24 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-02-08 23:55:47 +0200 |
commit | 6b7dea35dcb1f045e7291c7f8002b3be92ea049c (patch) | |
tree | 0226193c50d6cc4a9864659806ed261b3d60f062 /melib/src/email/parser.rs | |
parent | 6afac835e00499b4438ebb8b4fabdf836308bcef (diff) |
melib/parser: fix minor encoded word error
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 8df71c01..c3b980aa 100644 --- a/melib/src/email/parser.rs +++ b/melib/src/email/parser.rs @@ -929,7 +929,7 @@ pub fn phrase(input: &[u8]) -> IResult<&[u8], Vec<u8>> { /* We have the start of an encoded word but not the end, so parse it as ascii */ ascii_e = input[ascii_s..] .find(b" ") - .unwrap_or_else(|| input[ascii_s..].len()); + .unwrap_or_else(|| ascii_s + input[ascii_s..].len()); ptr = ascii_e; } |