Lines Matching refs:email
1330 * @param eventTitle The title of the event to use as the email subject.
1331 * @param body The default text for the email body.
1334 * @param ownerAccount The owner account to use as the email sender.
1342 // TODO: Return a SEND intent if no one to email to, to at least populate
1343 // a draft email with the subject (and no recipients).
1347 // Email app does not work with no "to" recipient. Move all 'cc' to 'to'
1353 // Use the event title as the email subject (prepended with 'Re: ').
1361 // for email addresses. We put all data in the URI instead of using the extra
1362 // Intent fields (ie. EXTRA_CC, etc) because some email apps might not handle
1367 // We will append the first email to the 'mailto' field later (because the
1368 // current state of the Email app requires it). Add the remaining 'to' values
1369 // here. When the email codebase is updated, we can simplify this.
1372 // The Email app requires repeated parameter settings instead of
1390 for (String email : ccList) {
1391 uriBuilder.appendQueryParameter("cc", email);
1395 // Insert the first email after 'mailto:' in the URI manually since Uri.Builder
1404 // Start the email intent. Email from the account of the calendar owner in case there
1405 // are multiple email accounts.
1409 // Workaround a Email bug that overwrites the body with this intent extra. If not
1419 * Example fake email addresses used as attendee emails are resources like conference rooms,
1422 public static boolean isValidEmail(String email) {
1423 return email != null && !email.endsWith(MACHINE_GENERATED_ADDRESS);
1428 * (1) the email is not a resource like a conference room or another calendar.
1430 * (2) the email is not equal to the sync account to prevent mailing himself.
1432 public static boolean isEmailableFrom(String email, String syncAccountName) {
1433 return Utils.isValidEmail(email) && !email.equals(syncAccountName);