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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: admin
Datum:  
To: exim-dev
Betreff: [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.