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
F14342937: D12494.diff
Wed, Dec 18, 11:38 PM
F14329016: D12494.id29989.diff
Wed, Dec 18, 3:09 PM
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
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.