mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +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() {
|
if let Some(ref subject) = self.get_subject() {
|
||||||
let mut prepend_subject = 1i32;
|
let mut prepend_subject = true;
|
||||||
if !self.decrypting_failed {
|
if !self.decrypting_failed {
|
||||||
let colon = subject.find(':');
|
let colon = subject.find(':');
|
||||||
if colon == Some(2)
|
if colon == Some(2)
|
||||||
@@ -236,10 +236,10 @@ impl<'a> MimeParser<'a> {
|
|||||||
|| self.has_chat_version()
|
|| self.has_chat_version()
|
||||||
|| subject.contains("Chat:")
|
|| subject.contains("Chat:")
|
||||||
{
|
{
|
||||||
prepend_subject = 0i32
|
prepend_subject = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if 0 != prepend_subject {
|
if prepend_subject {
|
||||||
let subj = if let Some(n) = subject.find('[') {
|
let subj = if let Some(n) = subject.find('[') {
|
||||||
&subject[0..n]
|
&subject[0..n]
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user