- def mv_domain(from, to)
- # Roundcube doesn't have a concept of domains.
- end
-
- def mv_user(from, to)
- sql_queries = ['UPDATE users SET username = $1 WHERE username = $2;']
+ def mv_user(src, dst)
+ # It's obviously an error if the source user does not exist. It
+ # would also be an error if the destination domain didn't exist;
+ # however, Roundcube doesn't know about domains, so we let that slide.
+ raise NonexistentUserError.new(src.to_s()) if not user_exists(src)