diff options
-rw-r--r-- | mail/ChangeLog | 4 | ||||
-rw-r--r-- | mail/em-junk-filter.c | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 873ec617a9..b4c9f43a27 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,7 @@ +2005-02-15 Radek Doulik <rodo@novell.com> + + * em-junk-filter.c: use camel_debug + 2005-02-10 Not Zed <NotZed@Ximian.com> ** See bug #72266 diff --git a/mail/em-junk-filter.c b/mail/em-junk-filter.c index f9b74a8c0c..78fe042fdb 100644 --- a/mail/em-junk-filter.c +++ b/mail/em-junk-filter.c @@ -36,6 +36,7 @@ #include <signal.h> #include <time.h> +#include <camel/camel-debug.h> #include <camel/camel-file-utils.h> #include <camel/camel-data-wrapper.h> #include <camel/camel-stream-fs.h> @@ -48,7 +49,7 @@ #include <gconf/gconf-client.h> -#define d(x) x +#define d(x) (camel_debug("junk")?(x):0) static pthread_mutex_t em_junk_sa_init_lock = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t em_junk_sa_report_lock = PTHREAD_MUTEX_INITIALIZER; @@ -118,16 +119,16 @@ pipe_to_sa_full (CamelMimeMessage *msg, const char *in, char **argv, int rv_err, char *program; pid_t pid; -#if d(!)0 - { + + if (camel_debug_start ("junk")) { int i; printf ("pipe_to_sa "); for (i = 0; argv[i]; i++) printf ("%s ", argv[i]); printf ("\n"); + camel_debug_end (); } -#endif program = g_find_program_in_path (argv [0]); if (program == NULL) { |