X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postfix.c;h=0b5f84aa7c3679a799f00722805240bcb4f295b5;hb=1ff926eac33152aee930a454ac1d3dec6e6e5faf;hp=e9cea6af3044a7046e0212e09b9beb3bfaf15cc8;hpb=838faa794a5feec77680499eb4e71bf8a92a4509;p=apps%2Fpfixtools.git diff --git a/postfix.c b/postfix.c index e9cea6a..0b5f84a 100644 --- a/postfix.c +++ b/postfix.c @@ -1,5 +1,5 @@ /******************************************************************************/ -/* postlicyd: a postfix policy daemon with a lot of features */ +/* pfixtools: a collection of postfix related tools */ /* ~~~~~~~~~ */ /* ________________________________________________________________________ */ /* */ @@ -33,24 +33,20 @@ * Copyright © 2006-2007 Pierre Habouzit */ -#include -#include -#include -#include -#include - -#include "job.h" +#include "common.h" #include "postfix.h" #include "buffer.h" #include "tokens.h" +#if 0 + #define ishspace(c) ((c) == ' ' || (c) == '\t') -struct jpriv_t { +typedef struct jpriv_t { buffer_t ibuf; buffer_t obuf; query_t query; -}; +} jpriv_t; static jpriv_t *postfix_jpriv_init(jpriv_t *jp) { @@ -68,11 +64,6 @@ static void postfix_jpriv_wipe(jpriv_t *jp) DO_NEW(jpriv_t, postfix_jpriv); DO_DELETE(jpriv_t, postfix_jpriv); -static void postfix_stop(job_t *job) -{ - postfix_jpriv_delete(&job->jdata); -} - static int postfix_parsejob(query_t *query) { #define PARSE_CHECK(expr, error, ...) \ @@ -195,8 +186,6 @@ static void postfix_process(job_t *job) if (job->jdata->obuf.len) return; - job_update_mode(job, JOB_READ); - /* fall through */ case JOB_READ: @@ -233,8 +222,6 @@ static void postfix_process(job_t *job) return; } - job_update_mode(job, JOB_IDLE); - /* TODO: run the scenario */ return; @@ -243,3 +230,4 @@ static void postfix_process(job_t *job) return; } } +#endif