diff options
Diffstat (limited to 'headers/src/header_components/word.rs')
-rw-r--r-- | headers/src/header_components/word.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/headers/src/header_components/word.rs b/headers/src/header_components/word.rs index ed8b065..84713ca 100644 --- a/headers/src/header_components/word.rs +++ b/headers/src/header_components/word.rs @@ -74,7 +74,7 @@ pub fn do_encode_word<'a,'b: 'a>( let input: &str = &*word.input; let mail_type = handle.mail_type(); handle.write_if(input, |input| { - (!input.starts_with("=?")) + (!input.contains("=?")) && input.chars().all( |ch| is_atext( ch, mail_type ) ) }).handle_condition_failure(|handle| { |