aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-07-15 23:05:06 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-07-15 23:07:16 +0800
commitfe2961aa501364ac45c2ded6834d312112818073 (patch)
tree6baca8d3005c33341b0ba8c3edba19afa287ee12 /libemail-engine
parent55a033036524b7c19c0733a74edfaccceaf1f11f (diff)
downloadgsoc2013-evolution-fe2961aa501364ac45c2ded6834d312112818073.tar.gz
gsoc2013-evolution-fe2961aa501364ac45c2ded6834d312112818073.tar.zst
gsoc2013-evolution-fe2961aa501364ac45c2ded6834d312112818073.zip
mail_session_add_from_source(): Warn if backend name is unset.
Even send-only accounts should have a backend name of "none".
Diffstat (limited to 'libemail-engine')
-rw-r--r--libemail-engine/e-mail-session.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libemail-engine/e-mail-session.c b/libemail-engine/e-mail-session.c
index 850f9b0d97..305bf2de04 100644
--- a/libemail-engine/e-mail-session.c
+++ b/libemail-engine/e-mail-session.c
@@ -505,10 +505,7 @@ mail_session_add_from_source (EMailSession *session,
/* Sanity checks. */
g_return_if_fail (uid != NULL);
-
- /* send-only accounts */
- if (!backend_name)
- return;
+ g_return_if_fail (backend_name != NULL);
/* Our own CamelSession.add_service() method will handle the
* resulting CamelService, so we don't need the return value. */