kopia lustrzana https://github.com/newroco/mail2deck
				
				
				
			
						commit
						82c869f6ba
					
				| 
						 | 
				
			
			@ -9,4 +9,5 @@ define("MAIL_USER", "incoming");
 | 
			
		|||
define("MAIL_PASSWORD", "****");
 | 
			
		||||
define("DECODE_SPECIAL_CHARACTERS", true); //requires mbstring, if false special characters (like öäüß) won't be displayed correctly
 | 
			
		||||
define("ASSIGN_SENDER", true); // if true, sender will be assigned to card if has NC account
 | 
			
		||||
define("MAIL_NOTIFICATION", true); // if true, send notifications when a new card was created or an error occured
 | 
			
		||||
?>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -90,10 +90,14 @@ if ($emails)
 | 
			
		|||
        $response = $newcard->addCard($data, $mailSender, $board);
 | 
			
		||||
        $mailSender->userId .= "@{$overview->reply_to[0]->host}";
 | 
			
		||||
 | 
			
		||||
        if(MAIL_NOTIFICATION) {
 | 
			
		||||
            if($response) {
 | 
			
		||||
                $inbox->reply($mailSender->userId, $response);
 | 
			
		||||
            } else {
 | 
			
		||||
                $inbox->reply($mailSender->userId);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        if(!$response) {
 | 
			
		||||
            foreach($attNames as $attachment) unlink(getcwd() . "/attachments/" . $attachment);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue