Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mbovan created an issue. See original summary.

mbovan’s picture

Assigned: Unassigned » mbovan
Priority: Normal » Major

While working on #2820989: Identify message body content I couldn't process the message and ended up creating the bug report.

Raising it to "Major" since processing messages with multiple "Received" headers happens quite often.

mbovan’s picture

Improved validation, fixed wrong field, improved tests.

One-line test-only should be enough for a fail.

The last submitted patch, 3: fixed_wrong_validation-2821018-3-TEST-ONLY.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 3: fixed_wrong_validation-2821018-3.patch, failed testing.

mbovan’s picture

The last submitted patch, 6: fixed_wrong_validation-2821018-3-TEST-ONLY.patch, failed testing.

mbovan’s picture

Title: Fixed wrong validation field assertion » Fix wrong validation field assertion
miro_dietiker’s picture

Status: Needs review » Needs work
  1. +++ b/inmail_demo/eml/simple.eml
    @@ -1,5 +1,5 @@
    -Received: from mail.example.com; Wed, 27 May 2015 15:42:10 +0200 (CEST)
    +Date: Wed, 27 May 2015 15:42:10 +0200 (CEST)
    

    Don't remove it, add it.

  2. +++ b/src/MIME/Message.php
    @@ -46,24 +46,22 @@ class Message extends Entity implements MessageInterface {
    +        $this->setValidationError($field_name, "$count $field_name fields.");
    

    This doesn't explain what is wrong with the count.

mbovan’s picture

Addressed #9.

miro_dietiker’s picture

Status: Needs review » Fixed

Committed.

miro_dietiker’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.