[exim-dev] [Bug 2163] RBL Checks an NAT64

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 2163] RBL Checks an NAT64
https://bugs.exim.org/show_bug.cgi?id=2163

--- Comment #1 from Jeremy Harris <jgh146exb@???> ---
Urggh...

Yup, you _can_ do this using existing string-manipulation facilities.


${tr {\
     ${map {\
        ${sg {${substr_-9_9:${ipv6_denorm:$sender_host_address}}} \
             {\N([0-9a-f]{2})([0-9a-f]{2})\N} \
             {\$1:\$2}}\
          } \
          {${eval:0x$item}} \
      }\
     } \
     {:}\
     {.}\
 }




Testing:
$ exim -be '${tr {${map {${sg
{${substr_-9_9:${ipv6denorm:64:ff9b::194.97.1.21}}}
{\N([0-9a-f]{2})([0-9a-f]{2})\N} {\$1:\$2}}} {${eval:0x$item}}}} {:} {.}}'
194.97.1.21

--
You are receiving this mail because:
You are on the CC list for the bug.