mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: replace 'discourse_email_parser' with 'email_reply_trimmer' to better trim replies from plain text emails
FIX: undefined method `number_to_human_size' when email contains attachments
This commit is contained in:
30
spec/fixtures/emails/attached_txt_file.eml
vendored
Normal file
30
spec/fixtures/emails/attached_txt_file.eml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
Return-Path: <discourse@bar.com>
|
||||
From: Foo Bar <discourse@bar.com>
|
||||
To: reply+4f97315cc828096c9cb34c6f1a0d6fe8@bar.com
|
||||
Date: Sat, 30 Jan 2016 01:10:11 +0100
|
||||
Message-ID: <38@foo.bar.mail>
|
||||
Mime-Version: 1.0
|
||||
Content-Type: multipart/mixed;
|
||||
boundary="--==_mimepart_56abff5d49749_ddf83fca6d033a28548ad";
|
||||
charset=UTF-8
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
|
||||
----==_mimepart_56abff5d49749_ddf83fca6d033a28548ad
|
||||
Content-Type: text/plain;
|
||||
charset=UTF-8;
|
||||
filename=text.txt
|
||||
Content-Transfer-Encoding: 7bit
|
||||
Content-Disposition: attachment;
|
||||
filename=text.txt
|
||||
Content-ID: <56abff637aac_ddf83fca6d033a2855099@HAL.lan.mail>
|
||||
|
||||
This is a txt file.
|
||||
|
||||
----==_mimepart_56abff5d49749_ddf83fca6d033a28548ad
|
||||
Content-Type: text/plain;
|
||||
charset=UTF-8
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
Please find some text file attached.
|
||||
----==_mimepart_56abff5d49749_ddf83fca6d033a28548ad--
|
||||
12
spec/fixtures/emails/signature.eml
vendored
12
spec/fixtures/emails/signature.eml
vendored
@@ -1,12 +0,0 @@
|
||||
Return-Path: <discourse@bar.com>
|
||||
From: Foo Bar <discourse@bar.com>
|
||||
To: reply+4f97315cc828096c9cb34c6f1a0d6fe8@bar.com
|
||||
Date: Fri, 15 Jan 2016 00:12:43 +0100
|
||||
Message-ID: <26@foo.bar.mail>
|
||||
Mime-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
|
||||
You shall not sign!
|
||||
|
||||
---
|
||||
Foo Bar
|
||||
Reference in New Issue
Block a user