df4437d23be1ba77ea16e0c601c9756f18353606
[dead/harbl.git] / src / DnsblSite.hs
1 -- | This module contains the 'DnsblSite' data type representing one
2 -- blacklist with its associated return codes and multiplier. For example,
3 -- in Postfix's main.cf you might have,
4 --
5 -- postscreen_dnsbl_sites = bl.mailspike.net=127.0.0.[2;10;11]*2, ...
6 --
7 -- Here, the 'Domain' is \"bl.mailspike.net\", the return code
8 -- pattern is \"127.0.0.[2;10;11]\", and the multiplier is \"2".
9 --
10 module DnsblSite
11 where
12
13 import IPv4Pattern ( IPv4Pattern )
14
15 newtype Domain = Domain String
16 newtype Multiplier = Multiplier Int
17
18 data DnsblSite = DnsblSite Domain IPv4Pattern Multiplier