To reproduce:
./bin/mail show-outbound --id cat@dog.com
Stack Trace:
[2017-04-18 05:37:59] EXCEPTION: (AphrontParameterQueryException) Expected a numeric scalar or null for %Ld conversion. Query: SELECT * FROM %s WHERE id IN (%Ld) %Q at [<phutil>/src/xsprintf/qsprintf.php:294]
arcanist(head=master, ref.master=a59cfca5f190), phabricator(head=master, ref.master=a56f9a1a5599), phutil(head=master, ref.master=6fe33623cda6)
#0 qsprintf_check_scalar_type(string, string, string) called at [<phutil>/src/xsprintf/qsprintf.php:267] #1 qsprintf_check_type(array, string, string) called at [<phutil>/src/xsprintf/qsprintf.php:134] #2 xsprintf_query(AphrontMySQLiDatabaseConnection, string, integer, array, integer) called at [<phutil>/src/xsprintf/xsprintf.php:70] #3 xsprintf(string, AphrontMySQLiDatabaseConnection, array) called at [<phutil>/src/xsprintf/qsprintf.php:64] #4 qsprintf(AphrontMySQLiDatabaseConnection, string, string, array, string) called at [<phutil>/src/xsprintf/queryfx.php:5] #5 queryfx(AphrontMySQLiDatabaseConnection, string, string, array, string) called at [<phutil>/src/xsprintf/queryfx.php:13] #6 queryfx_all(AphrontMySQLiDatabaseConnection, string, string, array, string) called at [<phutil>/src/aphront/storage/connection/AphrontDatabaseConnection.php:52] #7 AphrontDatabaseConnection::queryData(string, string, array, string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:535] #8 LiskDAO::loadRawDataWhere(string, array) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:476] #9 LiskDAO::loadAllWhere(string, array) called at [<phabricator>/src/applications/metamta/management/PhabricatorMailManagementShowOutboundWorkflow.php:41] #10 PhabricatorMailManagementShowOutboundWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:441] #11 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:333] #12 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/mail/manage_mail.php:21]