diff -r 000000000000 -r a3b6e531f0d2 iro/anbieter/FAX_de.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iro/anbieter/FAX_de.py Thu Oct 22 10:00:01 2009 +0200 @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +#Copyright (C) 2009 Sandro Knauß + +#This program 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 3 of the License, or any later version. +#This program 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 this program; if not, see . + +from smtp import SMTP +from geonet import geonet +from telnumber import telnumber + +class FAX_de(geonet): + section="FAX_de" + default_conf="iro.conf" + max_recipients=50 + + def __init__(self): + self.smtp=SMTP(self.default_conf,self.section) + + def createMailaddress(produkt,number): + try: + tel=telnumber(number) + return "%s00%s%s@fax.de" %(produkt,tel.land,tel.number) + except: + return number