source: A2P/a2p/test/e-adresse.conf @ 15

Last change on this file since 15 was 3, checked in by guillaume, 17 years ago
  • AUTHORS: Ajout des différents contributeurs
  • COPYING: Ajout de la licence GPL v3
  • a2p: Préparation des sources pour leur publication sous GPL
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1#
2# Copyright (c) 2004-2007 - Consultas, PKG.fr
3#
4# This file is part of A2P.
5#
6# A2P is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# A2P is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with A2P; if not, write to the Free Software
18# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19#
20# $Id: e-adresse.conf 3 2007-10-18 16:20:19Z guillaume $
21#
22# Configuration example for e-adresse.pl
23#
24
25################################################################################
26# SMTP configuration
27#
28our %SMTP = (
29    # API mode as key
30    _smtp => {
31        # hostname or IP                        remote SMTP port
32        '192.168.0.1'                   =>              25,
33        },
34
35    sub => {
36        test    =>      sub {
37                        open SMTP, '>', '/tmp/e-adresse.txt' or return 0 ;
38                        print SMTP "Host: $_[1]\nMessage:", $_[0]->as_string ;
39                        close(SMTP);
40                        return 1 ;
41                    }
42        },
43    order => [ 'smtp' , 'sendmail', 'sub' ]
44    );
45
46################################################################################
47# Composition configuration
48#
49our %body = (
50    disposition => 'inline',
51    type                => 'text/plain',
52    encoding    => '8bit',
53    charset             => 'iso-8859-1'
54    );
55
56our %attachment = (
57    disposition => 'inline',
58    type                => 'application/pdf',
59    encoding    => 'base64',
60    name        => 'from subject',
61    name_re     => qr/:\s+([^#]+)\s+#\s+([^#]+)\s+#\s+([^#]+)\s+#/,
62    name_printf => '%s-%s-%s.pdf',
63    skip                => 0
64    );
65
66################################################################################
67# Mailing configuration
68#
69our %From = (
70    'address'   =>      'abuse@pkg.fr',
71    'name'              =>      'Guillaume Bougard',
72    'active'    =>      0
73    );
74our %To = (
75    'address'   =>      'abuse_test@pkg.fr',
76    'name'              =>      'Guillaume Bougard',
77    'replace'   =>      0,
78    'active'    =>      0
79    );
80our %Cc = (
81    'address'   =>      'abuse_test@pkg.fr',
82    'name'              =>      'Guillaume Bougard',
83    'replace'   =>      0,
84    'active'    =>      0
85    );
86our %Bcc = (
87    'address'   =>      'abuse_test@pkg.fr',
88    'name'              =>      'Guillaume Bougard',
89    'replace'   =>      0,
90    'active'    =>      0
91    );
92
931 ;
Note: See TracBrowser for help on using the repository browser.