Homec4science

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

Authored by epriestley <git@epriestley.com> on Apr 21 2015, 18:49.

Description

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

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.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: chad, epriestley

Differential Revision: https://secure.phabricator.com/D12494

Details

Committed
epriestley <git@epriestley.com>Apr 21 2015, 18:49
Pushed
aubortJan 31 2017, 17:16
Parents
rPHd8ab5f594c7f: Quicksand - make page object notifications work properly with quicksand
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH80b23b21f396: Work around mailparse bug (?) with messages that have no terminal newline (authored by epriestley <git@epriestley.com>).Apr 21 2015, 18:49