[evolution] mail_session_add_from_source(): Warn if backend name is unset.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] mail_session_add_from_source(): Warn if backend name is unset.
- Date: Sun, 15 Jul 2012 15:07:21 +0000 (UTC)
commit fe2961aa501364ac45c2ded6834d312112818073
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Jul 15 11:05:06 2012 -0400
mail_session_add_from_source(): Warn if backend name is unset.
Even send-only accounts should have a backend name of "none".
libemail-engine/e-mail-session.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/libemail-engine/e-mail-session.c b/libemail-engine/e-mail-session.c
index 850f9b0..305bf2d 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. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]