Neah version mail forward fix 4
This commit is contained in:
parent
60168e70f7
commit
708ce642e2
@ -1376,7 +1376,7 @@ export default function MailPage() {
|
|||||||
.split('\n')
|
.split('\n')
|
||||||
.map(line => line.trim())
|
.map(line => line.trim())
|
||||||
.filter(line => {
|
.filter(line => {
|
||||||
// Remove email headers and common footer markers
|
// Remove email client signatures and headers
|
||||||
return !line.match(/^(From|To|Sent|Subject|Date|Cc|Bcc):/i) &&
|
return !line.match(/^(From|To|Sent|Subject|Date|Cc|Bcc):/i) &&
|
||||||
!line.match(/^-{2,}/) &&
|
!line.match(/^-{2,}/) &&
|
||||||
!line.match(/^_{2,}/) &&
|
!line.match(/^_{2,}/) &&
|
||||||
@ -1386,7 +1386,11 @@ export default function MailPage() {
|
|||||||
!line.match(/^[*_-]{3,}/) &&
|
!line.match(/^[*_-]{3,}/) &&
|
||||||
!line.match(/^Envoyé depuis/i) &&
|
!line.match(/^Envoyé depuis/i) &&
|
||||||
!line.match(/^Envoyé à partir de/i) &&
|
!line.match(/^Envoyé à partir de/i) &&
|
||||||
!line.match(/^Sent from/i);
|
!line.match(/^Sent from/i) &&
|
||||||
|
!line.match(/^Outlook pour/i) &&
|
||||||
|
!line.match(/^De :/i) &&
|
||||||
|
!line.match(/^À :/i) &&
|
||||||
|
!line.match(/^Objet :/i);
|
||||||
})
|
})
|
||||||
.join('\n')
|
.join('\n')
|
||||||
.trim();
|
.trim();
|
||||||
@ -1414,11 +1418,11 @@ export default function MailPage() {
|
|||||||
}
|
}
|
||||||
replyHeader += `\n`;
|
replyHeader += `\n`;
|
||||||
} else {
|
} else {
|
||||||
// Same header format for both reply and reply all
|
// Simple header for reply and reply all
|
||||||
replyHeader = `\n\nOn ${formattedDate}, ${selectedEmail.from} wrote:\n`;
|
replyHeader = `\n\nOn ${formattedDate}, ${selectedEmail.from} wrote:\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Indent the original content with proper spacing
|
// Indent the original content
|
||||||
const indentedContent = originalContent
|
const indentedContent = originalContent
|
||||||
.split('\n')
|
.split('\n')
|
||||||
.map(line => line ? `> ${line}` : '>') // Keep empty lines as '>' for better readability
|
.map(line => line ? `> ${line}` : '>') // Keep empty lines as '>' for better readability
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user