Page MenuHomePhabricator

Tasks created via email don't get "created" feed stories. They say "renamed"
Closed, ResolvedPublic

Description

nyancat

Event Timeline

chad updated the task description. (Show Details)
chad added a subscriber: chad.

The feed story for this was x renamed this from to Sample

Is this a test or a bug report? If it's a bug report, how can I reproduce it?

It is, I planned on digging into it more. Tasks created via email don't get "created" feed stories. They say "renamed"

epriestley renamed this task from Sample to Tasks created via email don't get "created" feed stories. They say "renamed".Jul 24 2017, 3:36 PM
epriestley added projects: Maniphest, Bug Report, Mail.

The easiest fix is probably to add a TYPE_CREATE transaction into ReplyHandler or MailReceiver alongside the other creation transactions.

I think I have a fix but can't find the command line trick you showed me to test it.

Something like:

$ cat raw_mail.txt | ./scripts/mail/mail_handler.php

I found T10983#175931 with a search for "mail command line test" although I vaguely remember typing out more complete instructions but couldn't find them either.

There's also bin/mail receive-test but that only accepts mail --to an existing object, not a random email address, right now. We could make that more flexible to make testing a little easier (raw_mail.txt must be a full piece of mail with proper headers and encoding, but bin/mail receive-test accepts just the plain text of a body and simulates all the headers/encoding/envelope stuff).