aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-09-16 02:26:36 +0800
committerDan Winship <danw@src.gnome.org>2000-09-16 02:26:36 +0800
commite2c2e5b55a51ac34b4089c000898c4a70b1a01e2 (patch)
tree43e30e6663d5f6592d7d1f8dfc1a399b729cfceb /camel/camel.c
parentb10192b1e0b6d86463237605bf0fc0cb865ed122 (diff)
downloadgsoc2013-evolution-e2c2e5b55a51ac34b4089c000898c4a70b1a01e2.tar
gsoc2013-evolution-e2c2e5b55a51ac34b4089c000898c4a70b1a01e2.tar.gz
gsoc2013-evolution-e2c2e5b55a51ac34b4089c000898c4a70b1a01e2.tar.bz2
gsoc2013-evolution-e2c2e5b55a51ac34b4089c000898c4a70b1a01e2.tar.lz
gsoc2013-evolution-e2c2e5b55a51ac34b4089c000898c4a70b1a01e2.tar.xz
gsoc2013-evolution-e2c2e5b55a51ac34b4089c000898c4a70b1a01e2.tar.zst
gsoc2013-evolution-e2c2e5b55a51ac34b4089c000898c4a70b1a01e2.zip
Set camel_verbose_debug to TRUE if CAMEL_VERBOSE_DEBUG is set in the
* camel.c (camel_init): Set camel_verbose_debug to TRUE if CAMEL_VERBOSE_DEBUG is set in the environment. * camel-remote-store.c (remote_send_line, remote_recv_line): only log if camel_verbose_debug is TRUE. svn path=/trunk/; revision=5462
Diffstat (limited to 'camel/camel.c')
-rw-r--r--camel/camel.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/camel/camel.c b/camel/camel.c
index 0121c1082f..846d946b9a 100644
--- a/camel/camel.c
+++ b/camel/camel.c
@@ -27,11 +27,11 @@
#include "camel.h"
#include <unicode.h>
+gboolean camel_verbose_debug = FALSE;
+
gint
camel_init(void)
{
-
-
#ifdef ENABLE_THREADS
#ifdef G_THREADS_ENABLED
g_thread_init (NULL);
@@ -40,6 +40,9 @@ camel_init(void)
#endif /* G_THREADS_ENABLED */
#endif /* ENABLE_THREADS */
+ if (getenv ("CAMEL_VERBOSE_DEBUG"))
+ camel_verbose_debug = TRUE;
+
unicode_init ();
return 0;