mirror of
				https://github.com/optim-enterprises-bv/Mailu.git
				synced 2025-10-31 01:57:59 +00:00 
			
		
		
		
	Fixed auto-forward email validation
This commit is contained in:
		| @@ -37,7 +37,7 @@ class MultipleEmailAddressesVerify(object): | ||||
|         self.message = message | ||||
|  | ||||
|     def __call__(self, form, field): | ||||
|         pattern = re.compile(r'^([_a-z0-9\-]+)(\.[_a-z0-9\-]+)*@([a-z0-9\-]{2,}\.)*([a-z]{2,4})(,([_a-z0-9\-]+)(\.[_a-z0-9\-]+)*@([a-z0-9\-]{2,}\.)*([a-z]{2,4}))*$') | ||||
|         pattern = re.compile(r'^([_a-z0-9\-]+)(\.[_a-z0-9\-]+)*@([a-z0-9\-]{2,}\.)*([a-z]{2,})(,([_a-z0-9\-]+)(\.[_a-z0-9\-]+)*@([a-z0-9\-]{2,}\.)*([a-z]{2,}))*$') | ||||
|         if not pattern.match(field.data.replace(" ", "")): | ||||
|             raise validators.ValidationError(self.message) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ionut Filip
					Ionut Filip