aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-junk-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-junk-filter.c')
-rw-r--r--mail/em-junk-filter.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/em-junk-filter.c b/mail/em-junk-filter.c
index 8e12b0efdd..ef5578e555 100644
--- a/mail/em-junk-filter.c
+++ b/mail/em-junk-filter.c
@@ -105,6 +105,7 @@ pipe_to_sa_with_error (CamelMimeMessage *msg, const char *in, char **argv, int r
{
int result, status, errnosav, fds[2];
CamelStream *stream;
+ char *program;
pid_t pid;
#if d(!)0
@@ -117,6 +118,13 @@ pipe_to_sa_with_error (CamelMimeMessage *msg, const char *in, char **argv, int r
printf ("\n");
}
#endif
+
+ program = g_find_program_in_path (argv [0]);
+ if (program == NULL) {
+ d(printf ("program not found, returning %d\n", rv_err));
+ return rv_err;
+ }
+ g_free (program);
if (pipe (fds) == -1) {
errnosav = errno;