Page MenuHomePhabricator

Email sometimes not being sent when a task is created and "other task activity" is not set in user preferences
Open, Needs TriagePublic

Description

I did not receive an email about the creation of T182538, the only reason I saw it was because Reedy's comment did send me an email. It does not appear that I was subscribed after creation or anything weird like that.

I do receive task-creation emails for other tasks. Mostly that's tasks that I get mail for via being subscribed to tags though, so perhaps it's something with directly-added subscribers or even subscribers that are only added via @-mentions in the task description? Although perhaps not, since I didn't get mail about the creation of T182478 either which is via a watched project.

Event Timeline

Anomie created this task.Dec 11 2017, 4:54 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 11 2017, 4:54 AM
Anomie updated the task description. (Show Details)Dec 11 2017, 4:57 AM

This keeps happening. It's annoying.

In T182538, Anomie was mentioned in the task desc and the bugmail I received says Cc: [...], Anomie, [...]
In T182478, Anomie watches the Security project which was added at creation. Again, the bugmail I received says Cc: [...], Anomie, [...]
I wonder if someone with shell access could check bin/phd log (but I don't know the parameters).

Anomie added a comment.EditedDec 15 2017, 3:10 PM

For comparison, I did receive an email that T182751 was created. Also T182144.

greg added subscribers: mmodell, greg.Jan 9 2018, 8:33 PM

I wonder if someone with shell access could check bin/phd log (but I don't know the parameters).

not sure how long those logs are saved, but we're almost a month out. @mmodell ?

@Anomie have you or @Aklapper heard of anyone else experiencing this? It's a hard thing to realize (the lack of a notification).

@greg not that long. Probably 7 days? I'll check.

Anomie added a comment.Jan 9 2018, 9:19 PM

If necessary I can supply more examples. It's still happening with most task creations.

@greg: yeah, phd logs are kept for 7 days.

Ping. This is still happening. :(

I'm not sure how to debug this without more information. Are other people experiencing similar problems? Can you post a screenshot of your phabricator email notification settings? I really can't think of anything that would explain it.

I'm not sure how to debug this without more information. Are other people experiencing similar problems?

Not that I've heard of, but I don't hear from many people. I have heard others' workflows differ, e.g. some people use Phab's notifications for everything rather than triaging emails, and others dump the bugmail into a folder and seldom check it.

Can you post a screenshot of your phabricator email notification settings?

EddieGP added a subscriber: EddieGP.EditedApr 9 2018, 11:24 PM

I've not received a mail for the creation of T191701, found this task and made a few tests in a local phabricator instance:

  • If I set maniphest notification settings to ignore anything but Other task activity not listed above occurs: a notification ("$user created $taskNumber: $taskTitle") was sent if the account was @mentioned in the description
  • If I set maniphest notification settings to ignore anything but Other task activity not listed above occurs: a notification ("$user created $taskNumber: $taskTitle") was sent if the account was added to the subscribers field at task creation
  • If I set maniphest notification settings to notify for anything but Other task activity not listed above occurs: no notification was sent if the account was added to the subscribers field at task creation
  • If I set maniphest notification settings to notify for anything but Other task activity not listed above occurs: no notification was sent if the account was @mentioned in the description

tl;dr: Task creation is "other task activity". Subscribe to mails from that one if you want to be sure to get mails for all tasks you've been @mentioned in or subscribed to.

Edit: Updated my outdated install to HEAD (d398bcd67), tested again, updated third bullet point above.

Unfortunately "other activity" includes a lot of crap I really don't care to get mail about.

EddieGP added a comment.EditedApr 10 2018, 9:11 AM

That's why I didn't mark the task resolved. But I guess we now have an idea of where this comes from and what to report to upstream: "Please move task creation notifications out of 'other activity'". Unfortunately I don't seem to be able to create a task on secure.phabricator.com any more.

Aklapper renamed this task from Email sometimes not being sent when a task is created to Email sometimes not being sent when a task is created and "other task activity" is not set in user preferences.Apr 10 2018, 9:44 AM

Same problem here which affects my work... (In https://phabricator.wikimedia.org/T192719 I only received an email about the first comment, not the task creation.)

EddieGP added a comment.EditedApr 22 2018, 8:46 PM

Per the answer on the discourse discussion, see https://secure.phabricator.com/T10448#186240 for why upstream probably won't move $whatever (here: task creation) into it's own notification setting, and https://secure.phabricator.com/T13069 for the preferred approach. I agree with their interpretation that this is just part of a more general problem and it seems the modular solution proposed would be better suited to solve that general problem, allowing very fine-grained notification control using the new system of mail stamps.
As the downside of that, this is not a trivial thing to fix but might take a while until we see the current system being replaced by the new one.

Also, after it being mentioned in the discourse thread, I had a look at phabricators code: Task creation is not a seperate type of event, but is defined as "The task title changes and the task title was empty before". A temporary hack for our local instance could probably be made until the above solution is in place, but I think it'd be significantly harder doing so without also notifying about each title change. Not sure whether we really want a local hack in general, and especially one that comes with that downside.

@EddieGP thanks for summarizing the situation. I'm not sure if a custom hack is warranted either but I will take a look at the code and see how difficult it looks.

JJMC89 added a subscriber: JJMC89.Jun 24 2018, 10:06 PM
Pcoombe added a subscriber: Pcoombe.