mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +03:00
Make prepend_subject a bool
This commit is contained in:
committed by
holger krekel
parent
1de535363d
commit
256bb01606
@@ -228,7 +228,7 @@ impl<'a> MimeParser<'a> {
|
||||
}
|
||||
}
|
||||
if let Some(ref subject) = self.get_subject() {
|
||||
let mut prepend_subject = 1i32;
|
||||
let mut prepend_subject = true;
|
||||
if !self.decrypting_failed {
|
||||
let colon = subject.find(':');
|
||||
if colon == Some(2)
|
||||
@@ -236,10 +236,10 @@ impl<'a> MimeParser<'a> {
|
||||
|| self.has_chat_version()
|
||||
|| subject.contains("Chat:")
|
||||
{
|
||||
prepend_subject = 0i32
|
||||
prepend_subject = false
|
||||
}
|
||||
}
|
||||
if 0 != prepend_subject {
|
||||
if prepend_subject {
|
||||
let subj = if let Some(n) = subject.find('[') {
|
||||
&subject[0..n]
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user