GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit d08053f5 authored by Milan Crha's avatar Milan Crha

Use lower-case "mailto:" consistently in the code

parent 70b1a782
......@@ -269,7 +269,7 @@ ecep_general_attendees_add_clicked_cb (GtkButton *button,
attendee = e_meeting_store_add_attendee_with_defaults (page_general->priv->meeting_store);
if ((flags & E_COMP_EDITOR_FLAG_DELEGATE) != 0)
e_meeting_attendee_set_delfrom (attendee, g_strdup_printf ("MAILTO:%s",
e_meeting_attendee_set_delfrom (attendee, g_strdup_printf ("mailto:%s",
page_general->priv->user_delegator ? page_general->priv->user_delegator : ""));
e_meeting_list_view_edit (E_MEETING_LIST_VIEW (page_general->priv->attendees_list_view), attendee);
......@@ -463,7 +463,7 @@ ecep_general_attendee_added_cb (EMeetingListView *meeting_list_view,
client = e_comp_editor_get_target_client (comp_editor);
/* do not remove here, it did EMeetingListView already */
e_meeting_attendee_set_delfrom (attendee, g_strdup_printf ("MAILTO:%s",
e_meeting_attendee_set_delfrom (attendee, g_strdup_printf ("mailto:%s",
page_general->priv->user_delegator ? page_general->priv->user_delegator : ""));
if (client && !e_client_check_capability (E_CLIENT (client), CAL_STATIC_CAPABILITY_DELEGATE_TO_MANY)) {
......@@ -531,7 +531,7 @@ ecep_general_get_organizer (ECompEditorPageGeneral *page_general,
if (out_name)
*out_name = g_strdup (str_name);
if (out_mailto)
*out_mailto = g_strconcat ("MAILTO:", itip_strip_mailto (str_address), NULL);
*out_mailto = g_strconcat ("mailto:", itip_strip_mailto (str_address), NULL);
} else if (out_error_message) {
*out_error_message = _("Organizer address is not a valid user mail address");
}
......@@ -637,7 +637,7 @@ ecep_general_list_view_event_cb (EMeetingListView *list_view,
flags = e_comp_editor_get_flags (comp_editor);
if ((flags & E_COMP_EDITOR_FLAG_DELEGATE) != 0) {
e_meeting_attendee_set_delfrom (attendee, g_strdup_printf ("MAILTO:%s", page_general->priv->user_delegator));
e_meeting_attendee_set_delfrom (attendee, g_strdup_printf ("mailto:%s", page_general->priv->user_delegator));
}
g_clear_object (&comp_editor);
......@@ -1130,7 +1130,7 @@ ecep_general_fill_component (ECompEditorPage *page,
gchar *sentby;
gboolean differs;
sentby = g_strconcat ("MAILTO:", cal_email_address, NULL);
sentby = g_strconcat ("mailto:", cal_email_address, NULL);
differs = !organizer_mailto || g_ascii_strcasecmp (sentby, organizer_mailto) != 0;
if (differs) {
......
......@@ -381,7 +381,7 @@ attendee_edited_cb (GtkCellRenderer *renderer,
}
attendee = e_meeting_store_add_attendee_with_defaults (model);
e_meeting_attendee_set_address (attendee, g_strdup_printf ("MAILTO:%s", (gchar *) l->data));
e_meeting_attendee_set_address (attendee, g_strdup_printf ("mailto:%s", (gchar *) l->data));
e_meeting_attendee_set_cn (attendee, g_strdup (m->data));
if (existing_attendee) {
e_meeting_attendee_set_cutype (attendee, e_meeting_attendee_get_cutype (existing_attendee));
......@@ -418,7 +418,7 @@ attendee_edited_cb (GtkCellRenderer *renderer,
if (existing_attendee) {
const gchar *addr = e_meeting_attendee_get_address (existing_attendee);
if (addr && g_ascii_strncasecmp (addr, "MAILTO:", 7) == 0)
if (addr && g_ascii_strncasecmp (addr, "mailto:", 7) == 0)
addr += 7;
address_changed = addr && g_ascii_strcasecmp (addr, email) != 0;
......@@ -432,7 +432,7 @@ attendee_edited_cb (GtkCellRenderer *renderer,
value_edited (view, E_MEETING_STORE_ADDRESS_COL, path, email);
value_edited (view, E_MEETING_STORE_CN_COL, path, name);
e_meeting_attendee_set_address (attendee, g_strdup_printf ("MAILTO:%s", email));
e_meeting_attendee_set_address (attendee, g_strdup_printf ("mailto:%s", email));
e_meeting_attendee_set_cn (attendee, g_strdup (name));
e_meeting_attendee_set_role (attendee, ICAL_ROLE_REQPARTICIPANT);
......@@ -1001,7 +1001,7 @@ process_section (EMeetingListView *view,
if (e_meeting_store_find_attendee (priv->store, email_addr, NULL) == NULL) {
EMeetingAttendee *ia = e_meeting_store_add_attendee_with_defaults (priv->store);
e_meeting_attendee_set_address (ia, g_strdup_printf ("MAILTO:%s", email_addr));
e_meeting_attendee_set_address (ia, g_strdup_printf ("mailto:%s", email_addr));
e_meeting_attendee_set_role (ia, role);
if (role == ICAL_ROLE_NONPARTICIPANT)
e_meeting_attendee_set_cutype (ia, ICAL_CUTYPE_RESOURCE);
......
......@@ -543,7 +543,7 @@ e_meeting_store_set_value (EMeetingStore *store,
if (val != NULL && *((gchar *) val))
e_meeting_attendee_set_address (
attendee, g_strdup_printf (
"MAILTO:%s", (gchar *) val));
"mailto:%s", (gchar *) val));
break;
case E_MEETING_STORE_MEMBER_COL:
e_meeting_attendee_set_member (attendee, g_strdup (val));
......
......@@ -1386,7 +1386,7 @@ comp_sentby (ECalComponent *comp,
e_cal_component_get_organizer (comp, &organizer);
if (!organizer.value && name != NULL && address != NULL) {
organizer.value = g_strdup_printf ("MAILTO:%s", address);
organizer.value = g_strdup_printf ("mailto:%s", address);
organizer.sentby = NULL;
organizer.cn = name;
organizer.language = NULL;
......@@ -1420,7 +1420,7 @@ comp_sentby (ECalComponent *comp,
!itip_sentby_is_user (registry, comp, cal_client) &&
address != NULL) {
organizer.value = g_strdup (organizer.value);
organizer.sentby = g_strdup_printf ("MAILTO:%s", address);
organizer.sentby = g_strdup_printf ("mailto:%s", address);
organizer.cn = g_strdup (organizer.cn);
organizer.language = g_strdup (organizer.language);
......
......@@ -689,7 +689,7 @@ action_event_delegate_cb (GtkAction *action,
icalparameter *parameter;
gchar *address;
address = g_strdup_printf ("MAILTO:%s", attendee);
address = g_strdup_printf ("mailto:%s", attendee);
property = icalproperty_new_attendee (address);
icalcomponent_add_property (clone, property);
......
......@@ -5248,7 +5248,7 @@ set_attendee (ECalComponent *comp,
if (!found) {
icalparameter *param;
gchar *temp = g_strdup_printf ("MAILTO:%s", address);
gchar *temp = g_strdup_printf ("mailto:%s", address);
prop = icalproperty_new_attendee ((const gchar *) temp);
icalcomponent_add_property (icalcomp, prop);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment