# # Copyright (c) 2004-2007 - Consultas, PKG.fr # # This file is part of A2P. # # A2P is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # A2P is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with A2P; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # # $Id: e-adresse.conf 3 2007-10-18 16:20:19Z g $ # # Configuration example for e-adresse.pl # ################################################################################ # SMTP configuration # our %SMTP = ( # API mode as key _smtp => { # hostname or IP remote SMTP port '192.168.0.1' => 25, }, sub => { test => sub { open SMTP, '>', '/tmp/e-adresse.txt' or return 0 ; print SMTP "Host: $_[1]\nMessage:", $_[0]->as_string ; close(SMTP); return 1 ; } }, order => [ 'smtp' , 'sendmail', 'sub' ] ); ################################################################################ # Composition configuration # our %body = ( disposition => 'inline', type => 'text/plain', encoding => '8bit', charset => 'iso-8859-1' ); our %attachment = ( disposition => 'inline', type => 'application/pdf', encoding => 'base64', name => 'from subject', name_re => qr/:\s+([^#]+)\s+#\s+([^#]+)\s+#\s+([^#]+)\s+#/, name_printf => '%s-%s-%s.pdf', skip => 0 ); ################################################################################ # Mailing configuration # our %From = ( 'address' => 'abuse@pkg.fr', 'name' => 'Guillaume Bougard', 'active' => 0 ); our %To = ( 'address' => 'abuse_test@pkg.fr', 'name' => 'Guillaume Bougard', 'replace' => 0, 'active' => 0 ); our %Cc = ( 'address' => 'abuse_test@pkg.fr', 'name' => 'Guillaume Bougard', 'replace' => 0, 'active' => 0 ); our %Bcc = ( 'address' => 'abuse_test@pkg.fr', 'name' => 'Guillaume Bougard', 'replace' => 0, 'active' => 0 ); 1 ;