ok. please send me an email with the modified time as an attachment.
On Mar 31, 2:09 am, szimszon <[email protected]> wrote: > I need email_auth for various domain names. Like @oregpreshaz.eu > @kopaszhegy.hu... > > But there is a limitation in email_auth: > > if not email[-len(domain):]==domain: > return False > > So you have to specify one and only one domain. > > Here is my proposal: > > 17,18c17,26 > < if not email[-len(domain):]==domain: > < return False > --- > > > if domain: > > if not isinstance(domain,list) and not > > isinstance(domain,tuple): > > domain=[str(domain)] > > found=False > > for d in domain: > > if email[-len(d):]==d: > > found=True > > break > > if not found: > > return False > > With it you could disable to the check of the domain part completly. > Just specify domain=None. > Or you could specify a list of valid domain names: > domain=['[email protected]','[email protected]'] > > And you still have the old behavior too.

