11 May
2020
11 May
'20
11:10 a.m.
In data lunedì 11 maggio 2020 10:00:38 CEST, lists@mlserv.org ha scritto:
Hi,
I struggle with directory hashing. I want something like this:
/srv/mail/c/cf37a8dff5e360927ba10ab2
The final folder is simpel, as it is:
%{sha256;truncate=96:user}
But how do I get a first level from sha256? Unfortunately, the truncate option aligns only full 8bit and does not divide into low and high nibbles. How can I express this for sha256?
in MD5 this would be %1Mu
Many thanks in advance
Christian
Maybe as a workaround you can create a directory named /srv/mail/c and make 16 symbolic links to it: /srv/mail/c0, /srv/mail/c1, /srv/mail/c2, up to /srv/ mail/cf.
In that way you can use truncate=8.
-- Simone Lazzaris QCom SpA