kopia lustrzana https://github.com/newroco/mail2deck
				
				
				
			
						commit
						82c869f6ba
					
				| 
						 | 
					@ -9,4 +9,5 @@ define("MAIL_USER", "incoming");
 | 
				
			||||||
define("MAIL_PASSWORD", "****");
 | 
					define("MAIL_PASSWORD", "****");
 | 
				
			||||||
define("DECODE_SPECIAL_CHARACTERS", true); //requires mbstring, if false special characters (like öäüß) won't be displayed correctly
 | 
					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("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
 | 
				
			||||||
?>
 | 
					?>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										12
									
								
								index.php
								
								
								
								
							
							
						
						
									
										12
									
								
								index.php
								
								
								
								
							| 
						 | 
					@ -90,10 +90,14 @@ if ($emails)
 | 
				
			||||||
        $response = $newcard->addCard($data, $mailSender, $board);
 | 
					        $response = $newcard->addCard($data, $mailSender, $board);
 | 
				
			||||||
        $mailSender->userId .= "@{$overview->reply_to[0]->host}";
 | 
					        $mailSender->userId .= "@{$overview->reply_to[0]->host}";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if($response) {
 | 
					        if(MAIL_NOTIFICATION) {
 | 
				
			||||||
            $inbox->reply($mailSender->userId, $response);
 | 
					            if($response) {
 | 
				
			||||||
        } else {
 | 
					                $inbox->reply($mailSender->userId, $response);
 | 
				
			||||||
            $inbox->reply($mailSender->userId);
 | 
					            } else {
 | 
				
			||||||
 | 
					                $inbox->reply($mailSender->userId);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        if(!$response) {
 | 
				
			||||||
            foreach($attNames as $attachment) unlink(getcwd() . "/attachments/" . $attachment);
 | 
					            foreach($attNames as $attachment) unlink(getcwd() . "/attachments/" . $attachment);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Ładowanie…
	
		Reference in New Issue