only use command if use_command is set.
authorShreyas Srinivasan <sshreyas@novell.com>
Wed, 3 Aug 2005 07:12:37 +0000 (07:12 +0000)
committerShreyas Srinivasan <shres@src.gnome.org>
Wed, 3 Aug 2005 07:12:37 +0000 (07:12 +0000)
2005-08-02  Shreyas Srinivasan  <sshreyas@novell.com>

* camel-imap-store.c (connect_to_server_wrapper): only use command
if use_command is set.

camel/providers/imap4/ChangeLog
camel/providers/imap4/camel-imap4-store.c

index bd99766..9a19662 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-02  Shreyas Srinivasan  <sshreyas@novell.com>
+
+       * camel-imap-store.c (connect_to_server_wrapper): only use command
+       if use_command is set.
+
 2005-05-23  Jeffrey Stedfast  <fejj@novell.com>
 
        * camel-imap4-folder.c (imap4_append_message): The UIDPLUS
index c54946b..439fb3a 100644 (file)
@@ -419,7 +419,8 @@ connect_to_server_wrapper (CamelIMAP4Engine *engine, CamelException *ex)
        const char *port;
        char *serv;
        
-       if ((command = camel_url_get_param (service->url, "command")))
+       if (camel_url_get_param(service->url, "use_command")
+           &&(command = camel_url_get_param (service->url, "command")))
                return connect_to_server_process (engine, command, ex);
        
        if ((ssl_mode = camel_url_get_param (service->url, "use_ssl"))) {