Page MenuHomePhabricator

Work around mailparse bug (?) with messages that have no terminal newline
ClosedPublic

Authored by epriestley on Apr 21 2015, 4:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 5, 8:31 AM
Unknown Object (File)
Wed, Dec 4, 11:41 PM
Unknown Object (File)
Sun, Dec 1, 9:43 AM
Unknown Object (File)
Wed, Nov 27, 8:45 AM
Unknown Object (File)
Sat, Nov 23, 5:11 AM
Unknown Object (File)
Wed, Nov 20, 3:59 PM
Unknown Object (File)
Wed, Nov 20, 3:59 PM
Unknown Object (File)
Wed, Nov 20, 3:59 PM
Subscribers

Details

Summary

Under some unusual circumstances, mailparse appears to incorrectly discard the last line of some mail messages.

Test Plan
  • Constructed a raw mail with no terminal newline.
  • Piped it into mail_receiver.php.
  • Saw the last line vanish into the aether.
  • Applied patch; repeated; last line survived.

Diff Detail

Repository
rP Phabricator
Branch
mail1
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 5421
Build 5439: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Work around mailparse bug (?) with messages that have no terminal newline.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
chad added a reviewer: chad.
chad added a subscriber: chad.

┻━┻ ︵ヽ(`Д´)ノ︵ ┻━┻

This revision is now accepted and ready to land.Apr 21 2015, 4:45 PM
This revision was automatically updated to reflect the committed changes.