Can't create maniphest tasks by email

Observed Behavior:
Error when creating maniphest tasks by mail

Expected Behavior:
Create the task

Phabricator Version:
Latest from Github

Reproduction Steps:
Send mail to phabricator via postfix (/opt/phabricator/phabricator/scripts/mail/mail_handler.php) and mail bounces back with error:

Command died with status 255: " sudo -u www-data
    /opt/phabricator/phabricator/scripts/mail/mail_handler.php". Command
    output: [2017-11-21 14:54:22] EXCEPTION: (InvalidArgumentException)
    Argument 1 passed to idx() must be of the type array, boolean given, called
    in /opt/phabricator/phabricator/scripts/mail/mail_handler.php on line 42
    and defined at [<phutil>/src/error/PhutilErrorHandler.php:200]
    arcanist(head=master, ref.master=90546042144f), phabricator(head=master,

That’s possible, but in order to test a fix, we’ll need a good reproduction steps - see https://phurl.io/u/reproduction.
Specifically, we’ll need to know how you set up everything, including inbound mail and what kind of mail program and server you are using, how you’re testing this, and preferably exact version information.

Version:

  • master d2cff6a [origin/master] Transcode the HTML part of incoming email into UTF-8 as well

We have postfix.

In /etc/aliases we have:
phabricator: “| sudo -u www-data /opt/phabricator/phabricator/scripts/mail/mail_handler.php”

All this worked fine untill the latest pull.

Reproduction is easy. I have sent mail to the phabricator@domain and got back an a bounce message with the error message i have pasted above.

That last commit looks like it might have something to do with email. Try reverting it and see if things work out.

The quality of this report was poor, but this issue should be fixed by D18778.

Hi there.

We have again the same issue.
Did a git pull update today and now Creating bugs by email or replying with comments gives us a bounce.

 relay=local, delay=0.19, delays=0.06/0.01/0/0.12, dsn=5.3.0, status=bounced (Command died with status 255: " sudo -u www-data /opt/phabricator/phabricator/scripts/mail/mail_handler.php". Command output: PHP Fatal error:  Call to undefined function mailparse_msg_create() in /opt/phabricator/phabricator/externals/mimemailparser/MimeMailParser.class.php on line 122  Fatal error: Call to undefined function mailparse_msg_create() in /opt/phabricator/phabricator/externals/mimemailparser/MimeMailParser.class.php on line 122 )

Fixed. Had to reinstall: https://pecl.php.net/package/mailparse/2.1.6.
Pls ignore.