Page MenuHomePhabricator

Investigate automatic ping when you've got an email
Closed, ResolvedPublic

Description

Investigate if it is possible to get an automatic ping (an email saying "You've got an email at your.name@wikimedia.se) when you've got an email to your G Suite mail to your main email account.

Event Timeline

It's possible to set up a Apps script that checks if there are any unread emails and send an email in that case. It's also possible to have this triggered periodically, e.g. once a day.

I'll have to look into how easy this would be to set up for the individual accounts.

I've emailed Google support about this, asking if there is (built in) a way to do this.

The script is now done. It reads an address map from a spreadsheet and use those to send alert email to the correct email address. The script can be triggered at set intervals. A new alert email will be sent as long as there are any unread emails, so they shouldn't be too frequent. You can probably implement a more sophisticated solution that only checks if there are new emails, but that will require more work.

If we want to do it this way, it's probably easiest to share the script and add the triggers when an account is created (before they're given to the intended person). It will be possible to update the script in the future, since it's shared, but if a change requires additional permissions, it seems every user will need to accept them.

According to Google support, there is no built in functionality for this.

To make it easier to modify, some variables are read externally from the spreadsheet that contains the address map.

This has been implemented and seems to work. Created guide for how to change the alert mail interval: https://se.wikimedia.org/wiki/Inst%C3%A4llning_f%C3%B6r_avisering_av_mail.

CommunityTechBot renamed this task from 75baaaaaaa to Investigate automatic ping when you've got an email .Jul 2 2018, 3:35 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
Lokal_Profil subscribed.

This has been implemented and seems to work. Created guide for how to change the alert mail interval: https://se.wikimedia.org/wiki/Inst%C3%A4llning_f%C3%B6r_avisering_av_mail.

IS this guide still valid or has the process been more updated since then?

I believe this task can be resolved.

A separate task for triggering an alert to drift@ when the script throws an error should also be started to prevent the sudden breakage in the notifications which we just experienced.
A further task for investigating if we can make this script run without new board members having to be manually added to "shared with" in the script file should also bes started.

Sebastian_Berlin-WMSE claimed this task.

I believe this task can be resolved.

A separate task for triggering an alert to drift@ when the script throws an error should also be started to prevent the sudden breakage in the notifications which we just experienced.

T202048: Send mail to drift@wikimedia.se when notification script fails

A further task for investigating if we can make this script run without new board members having to be manually added to "shared with" in the script file should also bes started.

T202049: Allow admins to control script for mail notifications