aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-11-10 20:28:38 +0800
committerMilan Crha <mcrha@redhat.com>2011-11-10 20:28:38 +0800
commitf9fee6a584746edf859119142b2f1ec31f5a1198 (patch)
tree66399f09e9b3441aa36d1203b654b7d8f3c46e0e /mail
parentcc48354fd5d8380565b112502cf1302dcde0cc74 (diff)
downloadgsoc2013-evolution-f9fee6a584746edf859119142b2f1ec31f5a1198.tar.gz
gsoc2013-evolution-f9fee6a584746edf859119142b2f1ec31f5a1198.tar.zst
gsoc2013-evolution-f9fee6a584746edf859119142b2f1ec31f5a1198.zip
Bug #659945 - "New" button in toolbar for new mail message not working
Diffstat (limited to 'mail')
-rw-r--r--mail/em-utils.c27
-rw-r--r--mail/em-utils.h2
2 files changed, 0 insertions, 29 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 399e51294b..1423130772 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -219,33 +219,6 @@ em_utils_uids_free (GPtrArray *uids)
g_ptr_array_free (uids, TRUE);
}
-/**
- * em_utils_check_user_can_send_mail:
- *
- * Returns %TRUE if the user has an account configured (to send mail)
- * or %FALSE otherwise.
- **/
-gboolean
-em_utils_check_user_can_send_mail (void)
-{
- EAccountList *account_list;
- EAccount *account;
-
- account_list = e_get_account_list ();
-
- if (e_list_length (E_LIST (account_list)) == 0)
- return FALSE;
-
- if (!(account = e_get_default_account ()))
- return FALSE;
-
- /* Check for a transport */
- if (!account->transport->url)
- return FALSE;
-
- return TRUE;
-}
-
/* Editing Filters/Search Folders... */
static GtkWidget *filter_editor = NULL;
diff --git a/mail/em-utils.h b/mail/em-utils.h
index b07b74b186..b7e3ec6f49 100644
--- a/mail/em-utils.h
+++ b/mail/em-utils.h
@@ -42,8 +42,6 @@ gboolean em_utils_prompt_user (GtkWindow *parent, const gchar *promptkey, const
GPtrArray *em_utils_uids_copy (GPtrArray *uids);
void em_utils_uids_free (GPtrArray *uids);
-gboolean em_utils_check_user_can_send_mail (void);
-
void em_utils_edit_filters (GtkWidget *parent, EMailBackend *backend);
void em_filename_make_safe (gchar *string);
void em_utils_edit_vfolders (GtkWidget *parent);