discourse/spec/fixtures/emails
Régis Hanol d523c37057
FIX: correctly extract body and/or reply from exchange emails (#30512)
When receiving emails sent with Exchange, we look for some markers to identify the body of the mail and the reply (aka. previous email).

For some reasons, those markers aren't 100% reliable and sometimes, only one of them is present.

The commit 20ba54d536 introduced the bug because the `HTML_EXTRACTERS` regex for exchange looks for either `messageBodySection` or `messageReplySection` but we were only using the `reply` section. So if an email had only the `body` section, it would not be correctly extracted.

This commit handle the cases where either one of them is missing and use the other one as the actual "reply". When both are present, it correctly elides the "reply" section.
2024-12-31 15:29:36 +01:00
..
apple_mail_attachment.eml
attached_eml_file.eml
attached_pdf_file.eml
attached_rb_file.eml
attached_txt_file_2.eml
attached_txt_file.eml
auto_generated_allowlisted.eml
auto_generated_header.eml
auto_generated_precedence.eml
auto_generated_unblocked.eml
bad_destinations.eml
blocklist_allowlist_email.eml
body_with_image.eml
bounced_email_multiple_status_codes.eml
bounced_email.eml
cc.eml
chinese_reply.eml
dmarc_fail.eml
email_reply_1.eml
email_reply_2.eml
email_reply_3.eml
email_reply_4.eml
email_reply_like.eml
email_reply_staged.eml
email_reply_to_group_email_username.eml
email_to_group_email_username_1.eml
email_to_group_email_username_2_as_unknown_sender.eml
email_to_group_email_username_2.eml
email_to_group_email_username_3.eml FIX: Handle multiple In-Reply-To Message-ID in group inbox (#29912) 2024-11-26 11:12:40 +10:00
email_to_group_email_username_auto_generated.eml DEV: Add email fixture (#23364) 2023-09-01 16:29:47 +10:00
encoded_display_name.eml
encoded_filename.eml
encoding_undefined_conversion.eml
exchange_html_body_and_reply.eml FIX: correctly extract body and/or reply from exchange emails (#30512) 2024-12-31 15:29:36 +01:00
exchange_html_body.eml FIX: correctly extract body and/or reply from exchange emails (#30512) 2024-12-31 15:29:36 +01:00
exchange_html_reply.eml FIX: correctly extract body and/or reply from exchange emails (#30512) 2024-12-31 15:29:36 +01:00
existing_user.eml
forwarded_by_group_to_inbox_double_cc.eml
forwarded_by_group_to_inbox.eml
forwarded_email_1.eml
forwarded_email_2.eml
forwarded_email_3.eml
forwarded_email_4.eml
forwarded_email_to_category.eml
from_reply_by_email_address.eml
from_the_future.eml
gmail_html_reply.eml
group_existing_user.eml
hard_bounce_via_verp_2.eml
hard_bounce_via_verp.eml
hebrew_reply.eml
html_reply.eml
ignored.eml
inactive_sender.eml
inline_image_2.eml
inline_image.eml
inline_mixed_replies.eml
inline_reply.eml
invalid_from_1.eml
invalid_from_2.eml
iphone_signature.eml
like.eml
logo_1.eml FIX: prevents duplicate attachments in incoming emails (#25986) 2024-03-01 18:38:49 +01:00
logo_2.eml FIX: prevents duplicate attachments in incoming emails (#25986) 2024-03-01 18:38:49 +01:00
long_embedded_email_headers.eml
mailinglist_dmarc_fail.eml
mailinglist_reply.eml
mailinglist_short_message.eml
mailinglist_unsubscribe.eml
mailinglist.eml
mailman_1.eml
mailman_2.eml
mailman_3.eml
mailman_4.eml
missing_message_id.eml
mute.eml
new_user.eml
no_body_with_image.eml
no_body.eml
no_date.eml
no_from.eml
no_subject.eml
null_byte_in_subject.eml
old_destination.eml DEV: Remove old TODOs for message-id formats (#27196) 2024-05-28 13:57:09 +10:00
on_date_contact_wrote.eml
original_message.eml
paragraphs.eml
previous_replies_de.eml
previous_replies.eml
quirks_exchange_xars.eml
readonly.eml
removed_attachments.eml
reply_above_de.eml
reply_above.eml
reply_and_forwarded.eml
reply_to_different_to_from_no_x_original.eml
reply_to_different_to_from_quoted_display_name.eml
reply_to_different_to_from_x_original_different.eml
reply_to_different_to_from.eml
reply_to_whitespaces.eml
reply_user_matching.eml
reply_user_not_matching_but_known.eml
reply_user_not_matching.eml
reply_with_8bit_encoding.eml
reply_with_weird_encoding.eml
screened_email.eml
silenced_sender.eml
soft_bounce_via_verp.eml
spam_x_ses_spam_verdict.eml
spam_x_spam_flag.eml
spam_x_spam_status.eml
staged_reply_restricted.eml
staged_sender.eml
text_and_html_reply.eml
text_reply.eml
tl3_user.eml
tl4_user.eml
too_many_mentions.eml
too_small.eml
track.eml
unparsable_email_addresses.eml
unsubscribe_body.eml
unsubscribe_new_user.eml
unsubscribe_subject.eml
user_not_found.eml
verp_bounce_different_final_recipient.eml
watch.eml