Lines Matching refs:email
1537 * @param eventTitle The title of the event to use as the email subject.
1538 * @param body The default text for the email body.
1541 * @param ownerAccount The owner account to use as the email sender.
1549 // TODO: Return a SEND intent if no one to email to, to at least populate
1550 // a draft email with the subject (and no recipients).
1554 // Email app does not work with no "to" recipient. Move all 'cc' to 'to'
1560 // Use the event title as the email subject (prepended with 'Re: ').
1568 // for email addresses. We put all data in the URI instead of using the extra
1569 // Intent fields (ie. EXTRA_CC, etc) because some email apps might not handle
1574 // We will append the first email to the 'mailto' field later (because the
1575 // current state of the Email app requires it). Add the remaining 'to' values
1576 // here. When the email codebase is updated, we can simplify this.
1579 // The Email app requires repeated parameter settings instead of
1597 for (String email : ccList) {
1598 uriBuilder.appendQueryParameter("cc", email);
1602 // Insert the first email after 'mailto:' in the URI manually since Uri.Builder
1611 // Start the email intent. Email from the account of the calendar owner in case there
1612 // are multiple email accounts.
1616 // Workaround a Email bug that overwrites the body with this intent extra. If not
1626 * Example fake email addresses used as attendee emails are resources like conference rooms,
1629 public static boolean isValidEmail(String email) {
1630 return email != null && !email.endsWith(MACHINE_GENERATED_ADDRESS);
1635 * (1) the email is not a resource like a conference room or another calendar.
1637 * (2) the email is not equal to the sync account to prevent mailing himself.
1639 public static boolean isEmailableFrom(String email, String syncAccountName) {
1640 return Utils.isValidEmail(email) && !email.equals(syncAccountName);