Remove Palante special cases
This commit is contained in:
		
							
								
								
									
										21
									
								
								redirect.php
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								redirect.php
									
									
									
									
									
								
							@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user