Hi Sławomir, Sławomir Dworaczek <sla...@dworaczek.info> (Sa 22 Feb 2025 21:49:05 CET): > I've always had a problem with regex That's why I'm asking for help.
Yes, and we're here for helping you, even as your current issue isn't related to regex at all. > It turns out that the second condition $sender_address is not processed at > all because I added a domain there from which I sent messages tagged as spam > and they still fell into spam > > I also checked with $sender_address_domain, the same > > condition = ${if and{{eqi{$h_X-Bogosity:}{Spam}}\ > {!bool_lax{${lookup{$sender_address}lsearch{/etc/exim/acl_lists/bogo_lists}}}}}\ > {yes}{no}} This I put into a file "x", prepared a message with the x-bogosity header in "x.eml", and a "x.bogook" file with a allowd-to-spam domain. ${if and{ {eqi{$h_X-Bogosity:}{Spam}} {bool{${lookup{$sender_address_domain}lsearch{/tmp/x.bogook}{false}{true}}}} } {yes it it spam}{no it is not spam} } Tests I ran exim -f h...@example.com -bem /tmp/x.eml "$(</tmp/x)" … and varied the sender and used /dev/null instead of /tmp/x.eml Unfortunately there is a bug(?) which doesn't allow you the content of the file being longer than 256 bytes. Before putting this expression in the config, you've to care about the continuation lines using the usual "\" at the physical line end, as usual. Best regards from Dresden/Germany Viele Grüße aus Dresden Heiko Schlittermann -- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} - gnupg encrypted messages are welcome --------------- key ID: F69376CE -
signature.asc
Description: PGP signature
-- ## subscription configuration (requires account): ## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/ ## unsubscribe (doesn't require an account): ## exim-users-unsubscr...@lists.exim.org ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/