diff options
author | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-03-06 09:43:22 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-03-06 09:43:22 +0800 |
commit | f0ca248aed0b9a9f82022d2695e6b90778a845be (patch) | |
tree | cbc1246211ddd0ea28ba4acc9fe7eee6a66f8c4c /camel | |
parent | 3110d8b7404d6ad6eff79a1aac52c15417361008 (diff) | |
download | gsoc2013-evolution-f0ca248aed0b9a9f82022d2695e6b90778a845be.tar.gz gsoc2013-evolution-f0ca248aed0b9a9f82022d2695e6b90778a845be.tar.zst gsoc2013-evolution-f0ca248aed0b9a9f82022d2695e6b90778a845be.zip |
treat "" as "always" to maintain compatablity with old config settings
svn path=/trunk/; revision=15939
Diffstat (limited to 'camel')
-rw-r--r-- | camel/providers/smtp/camel-smtp-transport.c | 3 |
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; |