equal
deleted
inserted
replaced
1 # -*- coding: utf-8 -*- |
|
2 #Copyright (C) 2009 Sandro Knauß <bugs@sandroknauss.de> |
|
3 |
|
4 #This program is free software; you can redistribute it and/or modify it under the terms |
|
5 #of the GNU General Public License as published by the Free Software Foundation; |
|
6 #either version 3 of the License, or any later version. |
|
7 #This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
|
8 #without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
9 #See the GNU General Public License for more details. |
|
10 |
|
11 #You should have received a copy of the GNU General Public License |
|
12 #along with this program; if not, see <http://www.gnu.org/licenses/>. |
|
13 |
|
14 from smtp import SMTP |
|
15 from geonet import geonet |
|
16 from telnumber import telnumber |
|
17 |
|
18 class FAX_de(geonet): |
|
19 section="FAX_de" |
|
20 default_conf="iro.conf" |
|
21 max_recipients=50 |
|
22 |
|
23 def __init__(self): |
|
24 self.smtp=SMTP(self.default_conf,self.section) |
|
25 |
|
26 def createMailaddress(produkt,number): |
|
27 try: |
|
28 tel=telnumber(number) |
|
29 return "%s00%s%s@fax.de" %(produkt,tel.land,tel.number) |
|
30 except: |
|
31 return number |
|