Skip to content

Commit f5e4f99

Browse files
committed
Stop detecting outlook blockquotes
The id we used to detect outlook blockquotes is not enough. The div with this id only contains the header of the reply/forward but the content of the body of the previous email is right next to this div, at the same level as the div and was therefore not detected. Instead of half detecting outlook blockquotes, don't detect anything for now until we truly detect them correctly
1 parent 76e6a79 commit f5e4f99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/java/com/infomaniak/mail/utils/MessageBodyUtils.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Infomaniak Mail - Android
3-
* Copyright (C) 2023 Infomaniak Network SA
3+
* Copyright (C) 2023-2024 Infomaniak Network SA
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -39,7 +39,9 @@ object MessageBodyUtils {
3939

4040
private val quoteDescriptors = arrayOf(
4141
"blockquote[type=cite]", // macOS and iOS mail client
42-
"#divRplyFwdMsg", // Microsoft Outlook
42+
// The reply and forward #divRplyFwdMsg div only contains the header, the previous message body is written right next to
43+
// this div and can't be detected
44+
// "#divRplyFwdMsg", // Microsoft Outlook
4345
"#isForwardContent",
4446
"#isReplyContent",
4547
"#mailcontent:not(table)",

0 commit comments

Comments
 (0)