|  | @@ -296,13 +296,18 @@ function quarantine($_action, $_data = null) {
 | 
	
		
			
				|  |  |            $release_format = 'raw';
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          $max_size = $_data['max_size'];
 | 
	
		
			
				|  |  | +        $max_age = intval($_data['max_age']);
 | 
	
		
			
				|  |  |          $subject = $_data['subject'];
 | 
	
		
			
				|  |  |          $sender = $_data['sender'];
 | 
	
		
			
				|  |  |          $html = $_data['html_tmpl'];
 | 
	
		
			
				|  |  | +        if ($max_age <= 0) {
 | 
	
		
			
				|  |  | +          $max_age = 365;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          $exclude_domains = (array)$_data['exclude_domains'];
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |            $redis->Set('Q_RETENTION_SIZE', intval($retention_size));
 | 
	
		
			
				|  |  |            $redis->Set('Q_MAX_SIZE', intval($max_size));
 | 
	
		
			
				|  |  | +          $redis->Set('Q_MAX_AGE', $max_age);
 | 
	
		
			
				|  |  |            $redis->Set('Q_EXCLUDE_DOMAINS', json_encode($exclude_domains));
 | 
	
		
			
				|  |  |            $redis->Set('Q_RELEASE_FORMAT', $release_format);
 | 
	
		
			
				|  |  |            $redis->Set('Q_SENDER', $sender);
 | 
	
	
		
			
				|  | @@ -647,6 +652,7 @@ function quarantine($_action, $_data = null) {
 | 
	
		
			
				|  |  |            $settings['exclude_domains'] = json_decode($redis->Get('Q_EXCLUDE_DOMAINS'), true);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          $settings['max_size'] = $redis->Get('Q_MAX_SIZE');
 | 
	
		
			
				|  |  | +        $settings['max_age'] = $redis->Get('Q_MAX_AGE');
 | 
	
		
			
				|  |  |          $settings['retention_size'] = $redis->Get('Q_RETENTION_SIZE');
 | 
	
		
			
				|  |  |          $settings['release_format'] = $redis->Get('Q_RELEASE_FORMAT');
 | 
	
		
			
				|  |  |          $settings['subject'] = $redis->Get('Q_SUBJ');
 |