Sławomir Dworaczek <sla...@dworaczek.info> (So 23 Feb 2025 01:06:40 CET): > You're right, only 256 bytes can be in a file.
I think, it's not because of the file, the command line doesn't allow longer "expansion test strings" too. But that's not your issue here and now and probably can be fixed if it isn't done yet. > Unfortunately, condition behaves as if it didn't work at all, all emails, > even those tagged spam, fall into inboxes > Regardless of whether they come from external or local domains Not sure, whether you ever mentioned, that your bogosity header contains more than just the word "spam" or "ham". The "eqi" condition I suggested tests for an exact (case insensitive) match. So we're back to regular expressions or other matching methods. Given a message "x.eml", you can play: exim -bem $PWD/x.eml '${if match{$h_x-bogosity:}{(?i)^spam,}}' exim -bem $PWD/x.eml '${extract{1}{,}{$h_x-bogosity:}{${lc:$value}}}' exim -bem $PWD/x.eml '${extract{1}{,}{$h_x-bogosity:}{${lc:$value}}}' exim -bem $PWD/x.eml '${if eqi{${extract{1}{,}{$h_x-bogosity:}}}{spam}}' So, I think, your overall condition should look like: ${if and{ {match{$h_x-bogosity:}{(?i)^spam,}} {bool{${lookup{$sender_address_domain}lsearch{/tmp/x.bogook}{no}{yes}}}} } {yes it it spam} {no it is not spam} } And now we got a regex :) The "wildlsearch" as suggested in another post doesn't solve the issue you explained, but it extends the lsearch to accept patterns in the file searched, which you probably do not want. 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/