On Mon, Oct 05, 2020 at 12:57:59AM +0100, Julian Gilbey wrote:
> 4) The output of "greylist list" is now somewhat mangled: the "Data"
> field shows something like:
> [ ' 1 . 2 . 3 . 4 / 2 4 ' ,   ' i n f o @ e x a m p l e . c o m ' ,   ' j d g 
> @ d e b i a n . o r g ' ]
> rather than
> 1.2.3.4/24  i...@example.com  j...@debian.org
> I guess this should be easy to fix?

Oh, it turns out that this is not so straightforward: the command
greylist add 1.2.3.4/24  i...@example.com  j...@debian.org
yields the following line in /var/lib/greylistd/triplets, which will
probably break things:
4921632547390726349 = 1.2.3.4/24 i...@example.com j...@debian.org

So it seems the triplets need turning into simple strings before they
are stored in the triplets file / triplets hash, rather than being
stored as Python literals with lots of excess spaces.

Best wishes,

   Julian

Reply via email to