Google can return an array of emails.
We only give back the first one, since we request one e-mail address
191589
public function getUserEmail($info = NULL) {
    if (empty($info)) {
      $info = $this->getUserInfo();
    }
    $emails = $info->get('emails');
    if (is_array($emails) && count($emails)) {
      $email = reset($emails);
      return $email['value'];
    }
  }
807188
function checkemail(next) {
      if (user.email) {
        userent.load$({ email: user.email }, function(err, userfound) {
          if (err) return done(err, { ok: false, user: user })
          if (userfound)
            return done(null, {
              ok: false,
              why: 'email-exists',
              nick: args.nick
            })
          next()
        })
        return
      }
      next()
    }
1210322
def email_to(self):
        
        for field in self.form_fields:
            if field.is_a(fields.EMAIL):
                return self.cleaned_data[field.slug]
        return None
99268
public function getCustomerByEmail(string $email) : array
    {
        Assert::that($email)->email();

        return (array)$this->master->doRequest(
            'GET',
            sprintf('/admin/WEBAPI/Endpoints/v1_0/CustomerService/{KEY}/GetCustomerByEmail?email=%s', rawurlencode($email))
        );
    }
879173
public ArrayList<User> lookupUsersByEmail (String email)
        throws PersistenceException
    {
        return loadAll(_utable, "where email = " + JDBCUtil.escape(email));
    }
529441
function(input) {
		// In case of type=email and multiple attribute, we would need to grab the last piece
		// Using .getAttribute here for IE9 purpose - elsewhere it wouldn't return the newer HTML5 values correctly
		return input.getAttribute('type') === 'email' &&
			input.getAttribute('multiple') !== null
			? input.value.substring(input.value.lastIndexOf(',') + 1)
			: input.value;
	}
530051
function(recipientsArr) {
  var ret = [];
  for(var i = 0; i < recipientsArr.length; i ++) {
    ret.push(_recipientInfoToAsn1(recipientsArr[i]));
  }
  return ret;
}
411659
public function getEmails($start = 0, $range = 10, $body = false)
    {
        //if not connected
        if (!$this->socket) {
            //then connect
            $this->connect();
        }

        //if the total in this mailbox is 0
        //it means they probably didn't select a mailbox
        //or the mailbox selected is empty
        if ($this->total == 0) {
            //we might as well return an empty array
            return array();
        }

        //if start is an array
        if (is_array($start)) {
            //it is a set of numbers
            $set = implode(',', $start);
            //just ignore the range parameter
        } else {
            //start is a number
            //range must be grater than 0
            $range = $range > 0 ? $range : 1;
            //start must be a positive number
            $start = $start >= 0 ? $start : 0;

            //calculate max (ex. 300 - 4 = 296)
            $max = $this->total - $start;

            //if max is less than 1
            if ($max < 1) {
                //set max to total (ex. 300)
                $max = $this->total;
            }

            //calculate min (ex. 296 - 15 + 1 = 282)
            $min = $max - $range + 1;

            //if min less than 1
            if ($min < 1) {
                //set it to 1
                $min = 1;
            }

            //now add min and max to set (ex. 282:296 or 1 - 300)
            $set = $min . ':' . $max;

            //if min equal max
            if ($min == $max) {
                //we should only get one number
                $set = $min;
            }
        }

        $items = array('UID', 'FLAGS', 'BODY[HEADER]');

        if ($body) {
            $items  = array('UID', 'FLAGS', 'BODY[]');
        }

        //now lets call this
        $emails = $this->getEmailResponse('FETCH', array($set, $this->getList($items)));

        //this will be in ascending order
        //we actually want to reverse this
        $emails = array_reverse($emails);

        return $emails;
    }
249209
def by_email_address(cls, email):
        """"""
        return DBSession.query(cls).filter_by(email_address=email).first()
1124556
def lookup(self, query=''):
        """"""
        res = []
        query = re.compile('.*%s.*' % re.escape(query), self.reflags)
        for name, email in self.get_contacts():
            if query.match(name) or query.match(email):
                res.append((name, email))
        return res
877485
def get_recipients(self, name):
        
        to_str = self.render_string(self.data[name])
        formatted_emails = [
            email.utils.formataddr(addr_pair)
            for addr_pair in email.utils.getaddresses([to_str])
        ]
        return [i for i in formatted_emails if i]
841077
def get_one_mail(self):
        

        while True:
            mail_key = random.choice(self.mailbox.keys())
            mail = self.mailbox[mail_key]
            from_addr = mail.get_from()
            to_addr = mail['To']
            mail_body = mail.get_payload()
            if not from_addr or not to_addr:
                continue
            return from_addr, to_addr, mail_body
1310200
public static Recipient[] toRecipient(EmailAddress[] to) {
		Recipient[] addresses = new Recipient[to.length];
		int i = 0;
		for (EmailAddress t : to) {
			addresses[i++] = new Recipient(t);
		}
		return addresses;
	}
48984
public static ServiceAccount of(String email, String... scopes) {
    return of(email, Arrays.asList(scopes));
  }
1175317
@Override
	public String getEmail() {
		StringBuilder sb = new StringBuilder();

		sb.append(getFirstName().toLowerCase());
		sb.append(".");
		sb.append(getLastName().toLowerCase());
		sb.append("@example.com");

		return sb.toString().replace(' ', '.');
	}
264292
def get_contact_by_email(self, email):
        
        if not email:
            return None

        email = email.strip()

        url = self.build_url('{}/{}'.format(self._endpoints.get('gal'), email))

        response = self.con.get(url)
        if not response:
            return []

        data = response.json()

        # Everything received from cloud must be passed as self._cloud_data_key
        return self.contact_constructor(parent=self,
                                        **{self._cloud_data_key: data})
106970
def rand_email():
    
    name = random.choice(string.ascii_letters) + \
        rand_str(string.ascii_letters + string.digits, random.randint(4, 14)) 
    domain = rand_str(string.ascii_lowercase, random.randint(2, 10)) 
    kind = random.choice(_all_email_kinds)
    return "%s@%s%s" % (name, domain, kind)