Remove Palante special cases

This commit is contained in:
Jon Goldberg 2018-01-18 01:35:36 -05:00
parent 36576d043a
commit 687d97e111

View File

@ -72,27 +72,6 @@ if($from == 'Google Calendar <calendar-notification@google.com>') {
$params['unknown-user'] = 'accept';
$email = str_replace("Auto-Submitted: auto-generated\n", '', $email);
}
//Linode alerts from ramen
if($from == 'Linode Alerts <noreply@linode.com>') {
if(strpos($email, 'Subject: Linode Alert - disk io rate - ramen_ALP')) {
die;
}
}
//Linode alerts from gravy
if($from == 'Linode Alerts <noreply@linode.com>') {
if(strpos($email, 'Subject: Linode Alert - disk io rate - gravy_HQ')) {
die;
}
}
//Any e-mails to tickets+fromwebsite@palantetech.com automatically get sent to tickets+prospecting, but no account is created
if(strpos($deliveredTo, 'tickets+fromwebsite') !== FALSE) {
$project = 'prospecting';
$params['unknown-user'] = 'accept';
}
//Any e-mails to tickets+hiring don't get an account created
if(strpos($from, 'tickets+hiring' !== FALSE)) {
$params['unknown-user'] = 'accept';
}
// If we don't know the project yet, attempt to determine it from the complete email address.
if(!$project) {