[exim-dev] [Bug 2684] Add HTTP lookup method (extend json lo…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 2684] Add HTTP lookup method (extend json lookup to accept URLs ?)
https://bugs.exim.org/show_bug.cgi?id=2684

--- Comment #1 from Lena <Lena@???> ---
You can fetch via HTTP using ${readsocket
An example:

 condition = ${if or{\
   {bool{${lookup dnsdb{a=$sender_address_domain}{0}{1}}}}\
   {!match{${readsocket{inet:$sender_address_domain:80}\
     {GET / HTTP/1.0\r\nHost: $sender_address_domain\r\n\r\n}\
     {4s:shutdown=no}{ }{socket failure}}}{UCEPROTECT-Network}}\
                    }}


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