aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-select-names-editable.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-07-02 22:59:49 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-07-02 22:59:49 +0800
commit2bc7669d539114cb4b4cf19a590abaabcd9e8748 (patch)
tree8b4d9556d9b84e3861f1f0aafe0f489aa8dd1689 /calendar/gui/e-select-names-editable.c
parentcb9a6f71878dc639b0711d97ec3bc8e16d4ffcf6 (diff)
downloadgsoc2013-evolution-2bc7669d539114cb4b4cf19a590abaabcd9e8748.tar.gz
gsoc2013-evolution-2bc7669d539114cb4b4cf19a590abaabcd9e8748.tar.zst
gsoc2013-evolution-2bc7669d539114cb4b4cf19a590abaabcd9e8748.zip
Fixes the problem in sending the meeting to the mailing list if the list
does not contain email ids. svn path=/trunk/; revision=29619
Diffstat (limited to 'calendar/gui/e-select-names-editable.c')
-rw-r--r--calendar/gui/e-select-names-editable.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/calendar/gui/e-select-names-editable.c b/calendar/gui/e-select-names-editable.c
index 10781150d1..67d1c7dab5 100644
--- a/calendar/gui/e-select-names-editable.c
+++ b/calendar/gui/e-select-names-editable.c
@@ -132,6 +132,7 @@ e_select_names_editable_get_emails (ESelectNamesEditable *esne)
GList *destinations;
EDestination *destination;
GList *result = NULL;
+ gboolean contact_list = FALSE;
g_return_val_if_fail (E_SELECT_NAMES_EDITABLE (esne), NULL);
@@ -149,7 +150,15 @@ e_select_names_editable_get_emails (ESelectNamesEditable *esne)
result = g_list_append (result, g_strdup (e_destination_get_email (l->data)));
}
} else {
- result = g_list_append (result, g_strdup (e_destination_get_email (destination)));
+ /* check if the contact is contact list, it does not contain all the email ids */
+ /* we dont expand it currently, TODO do we need to expand it by getting it from addressbook*/
+ if (e_contact_get (e_destination_get_contact (destination), E_CONTACT_IS_LIST)) {
+ /* If its a contact_list which is not expanded, it wont have a email id,
+ so we can use the name as the email id */
+
+ result = g_list_append (result, g_strdup (e_destination_get_name (destination)));
+ } else
+ result = g_list_append (result, g_strdup (e_destination_get_email (destination)));
}
g_list_free (destinations);