   parts[0]  if (parts = username.split '+').length
 
 
-module.exports = sanitize
+module.exports = (email, options = {}) ->
+
+  email = email.trim().toLowerCase()
+
+  if checkKoding email
+  then email
+  else sanitize email, options

checkGmail = (email) -> /^(.)+@(gmail|googlemail).com/.test email


excludeDots = (username) -> username.replace /\./g, ''



sanitize = (email, options = {}) ->

  options.excludeDots or= no
  options.excludePlus or= no
