X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=greylist.h;h=f9640d1d77620934d57be460507ab349040f1aa2;hb=c2a3b7df6de7e023639789864940b0c997869954;hp=ac58a977ee34b0209b78d03b72b160cfa3faef09;hpb=26fccb93b1256eb435e16e5c4646ec8ed4116b71;p=apps%2Fpfixtools.git diff --git a/greylist.h b/greylist.h index ac58a97..f9640d1 100644 --- a/greylist.h +++ b/greylist.h @@ -33,7 +33,21 @@ * Copyright © 2007 Pierre Habouzit */ +#ifndef PFIXTOOLS_GREYLIST_H +#define PFIXTOOLS_GREYLIST_H + +struct greylist_cfg { + unsigned lookup_by_host : 1; + int delay; + int retry_window; + int client_awl; +}; + +extern struct greylist_cfg greylist_cfg; + int greylist_initialize(const char *directory, const char *prefix); bool try_greylist(const char *sender, const char *c_addr, const char *c_name, const char *rcpt); + +#endif