aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2002-03-06 09:43:22 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-03-06 09:43:22 +0800
commitf0ca248aed0b9a9f82022d2695e6b90778a845be (patch)
treecbc1246211ddd0ea28ba4acc9fe7eee6a66f8c4c
parent3110d8b7404d6ad6eff79a1aac52c15417361008 (diff)
downloadgsoc2013-evolution-f0ca248aed0b9a9f82022d2695e6b90778a845be.tar
gsoc2013-evolution-f0ca248aed0b9a9f82022d2695e6b90778a845be.tar.gz
gsoc2013-evolution-f0ca248aed0b9a9f82022d2695e6b90778a845be.tar.bz2
gsoc2013-evolution-f0ca248aed0b9a9f82022d2695e6b90778a845be.tar.lz
gsoc2013-evolution-f0ca248aed0b9a9f82022d2695e6b90778a845be.tar.xz
gsoc2013-evolution-f0ca248aed0b9a9f82022d2695e6b90778a845be.tar.zst
gsoc2013-evolution-f0ca248aed0b9a9f82022d2695e6b90778a845be.zip
treat "" as "always" to maintain compatablity with old config settings
svn path=/trunk/; revision=15939
-rw-r--r--camel/providers/smtp/camel-smtp-transport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c
index c5bf11971e..3ab0f2b122 100644
--- a/camel/providers/smtp/camel-smtp-transport.c
+++ b/camel/providers/smtp/camel-smtp-transport.c
@@ -159,7 +159,8 @@ smtp_construct (CamelService *service, CamelSession *session,
CAMEL_SERVICE_CLASS (parent_class)->construct (service, session, provider, url, ex);
if ((use_ssl = camel_url_get_param (url, "use_ssl"))) {
- if (!strcmp (use_ssl, "always"))
+ /* Note: previous versions would use "" to toggle use_ssl to 'on' */
+ if (!*use_url || !strcmp (use_ssl, "always"))
smtp_transport->flags |= CAMEL_SMTP_TRANSPORT_USE_SSL_ALWAYS;
else if (!strcmp (use_ssl, "when-possible"))
smtp_transport->flags |= CAMEL_SMTP_TRANSPORT_USE_SSL_WHEN_POSSIBLE;