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, Apr 25, 2:27 AM
Unknown Object (File)
Sun, Apr 21, 11:25 PM
Unknown Object (File)
Fri, Apr 12, 2:19 AM
Unknown Object (File)
Tue, Apr 9, 12:04 AM
Unknown Object (File)
Tue, Apr 9, 12:04 AM
Unknown Object (File)
Sat, Apr 6, 10:21 AM
Unknown Object (File)
Tue, Apr 2, 9:49 AM
Unknown Object (File)
Sun, Mar 31, 8:37 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.