Move the "mv" invalid destination user check into the runner.
[mailshears.git] / lib / mv / plugins / postfixadmin.rb
index 82ddf055c4b1bd747fb6f1319e344ad8b26c3055..3b6d1884975b939bbf7bd01f370fbde10cdf653a 100644 (file)
@@ -17,12 +17,6 @@ class PostfixadminMv
     localpart_to = user_to_parts[0]
     domain_to = user_to_parts[1]
 
-    if domain_to.nil?
-      # There was no "@" in the destination user.
-      msg = "the destination user #{user_to} is not valid"
-      raise InvalidUserError.new(msg)
-    end
-
     if not domain_exists(domain_to)
       msg = "destination domain #{domain_to} does not exist"
       raise NonexistentDomainError.new(msg)