diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-09-20 07:51:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-09-20 07:51:37 +0000 |
commit | 8ae41b4846fc46cb521599c0b10fad8e424069f7 (patch) | |
tree | 318731e4cc94522ffcafc13500d13a27a9417b7b /test/fixtures | |
parent | b519aba63ee0043ffd60f9002fc236f717d9f172 (diff) | |
download | redmine-8ae41b4846fc46cb521599c0b10fad8e424069f7.tar.gz redmine-8ae41b4846fc46cb521599c0b10fad8e424069f7.zip |
Ignore email keywords after truncation line (#8758).
git-svn-id: http://svn.redmine.org/redmine/trunk@13413 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/fixtures')
3 files changed, 61 insertions, 9 deletions
diff --git a/test/fixtures/mail_handler/ticket_on_given_project.eml b/test/fixtures/mail_handler/ticket_on_given_project.eml index 5e6d9113e..7c0fe3208 100644 --- a/test/fixtures/mail_handler/ticket_on_given_project.eml +++ b/test/fixtures/mail_handler/ticket_on_given_project.eml @@ -30,6 +30,15 @@ sed, mauris --- Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque sit amet libero. In hac habitasse platea dictumst. +Project: onlinestore +Status: Resolved +due date: 2010-12-31 +Start Date:2010-01-01 +Assigned to: John Smith +fixed version: alpha +estimated hours: 2.5 +done ratio: 30 + --- This line starts with a delimiter and should not be stripped This paragraph is before delimiters. @@ -49,12 +58,3 @@ dictum et, ligula. Sed erat nibh, gravida in, accumsan non, placerat sed, massa. Sed sodales, ante fermentum ultricies sollicitudin, massa leo pulvinar dui, a gravida orci mi eget odio. Nunc a lacus. -Project: onlinestore -Status: Resolved -due date: 2010-12-31 -Start Date:2010-01-01 -Assigned to: John Smith -fixed version: alpha -estimated hours: 2.5 -done ratio: 30 - diff --git a/test/fixtures/mail_handler/ticket_with_duplicate_keyword.eml b/test/fixtures/mail_handler/ticket_with_duplicate_keyword.eml new file mode 100644 index 000000000..e70c27722 --- /dev/null +++ b/test/fixtures/mail_handler/ticket_with_duplicate_keyword.eml @@ -0,0 +1,25 @@ +Return-Path: <JSmith@somenet.foo> +Received: from osiris ([127.0.0.1]) + by OSIRIS + with hMailServer ; Sun, 22 Jun 2008 12:28:07 +0200 +Message-ID: <000501c8d452$a95cd7e0$0a00a8c0@osiris> +From: "John Smith" <JSmith@somenet.foo> +To: <redmine@somenet.foo> +Subject: New ticket on a given project +Date: Sun, 22 Jun 2008 12:28:07 +0200 +MIME-Version: 1.0 +Content-Type: text/plain; + format=flowed; + charset="iso-8859-1"; + reply-type=original +Content-Transfer-Encoding: 7bit +X-Priority: 3 +X-MSMail-Priority: Normal +X-Mailer: Microsoft Outlook Express 6.00.2900.2869 +X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 + +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. + +Project: ecookbook +Priority: High +Priority: Low diff --git a/test/fixtures/mail_handler/ticket_with_keyword_after_delimiter.eml b/test/fixtures/mail_handler/ticket_with_keyword_after_delimiter.eml new file mode 100644 index 000000000..736ea5dec --- /dev/null +++ b/test/fixtures/mail_handler/ticket_with_keyword_after_delimiter.eml @@ -0,0 +1,27 @@ +Return-Path: <JSmith@somenet.foo> +Received: from osiris ([127.0.0.1]) + by OSIRIS + with hMailServer ; Sun, 22 Jun 2008 12:28:07 +0200 +Message-ID: <000501c8d452$a95cd7e0$0a00a8c0@osiris> +From: "John Smith" <JSmith@somenet.foo> +To: <redmine@somenet.foo> +Subject: New ticket on a given project +Date: Sun, 22 Jun 2008 12:28:07 +0200 +MIME-Version: 1.0 +Content-Type: text/plain; + format=flowed; + charset="iso-8859-1"; + reply-type=original +Content-Transfer-Encoding: 7bit +X-Priority: 3 +X-MSMail-Priority: Normal +X-Mailer: Microsoft Outlook Express 6.00.2900.2869 +X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 + +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. + +Project: ecookbook + +== DELIMITER == + +Priority: High |