Thank you, Reindl, for the answer. I had tried "normalize_charset 1" but it doesn't work on my email system.
I had also tried : rawbody REGLE_B001_ISO /^Votre bo=EEte aux lettres est pleine et doit =EAtre valid=E9e/ bit it doesn't work either. I finally found the solution : It consists in replacing the accuentuated French characters by their hexadecimal code : Rule which works for UTF-8 encoded emails : body REGLE_B001 /^Votre boîte aux lettres est pleine et doit être validée/ Rule which works for ISO-8859-1 encoded emails : body REGLE_B0016 /^Votre bo\x{ee}te aux lettres est pleine et doit \x{ea}tre valid\x{e9}e/ Cordialement, Joëlle Pfeffer, Cheffe de projet DINSI/Infrastructures Conseil Départemental de Seine-Saint-Denis 33 (0)1 43 93 97 58 ----- Mail original ----- De: "Reindl Harald" <h.rei...@thelounge.net> À: "Joëlle Pfeffer" <jpfef...@seinesaintdenis.fr>, users@spamassassin.apache.org Envoyé: Dimanche 6 Mai 2018 05:49:14 Objet: Re: My body rules match when incoming emails are encoded in charset=utf-8 but don't when incoming emails are encoded in charset="iso-8859-1" Am 05.05.2018 um 02:39 schrieb Joëlle Pfeffer: > How can I configure my rules so that they will match for charsets utf-8 > and iso-8859-1 ? https://clicktime.symantec.com/a/1/IgXXV31Usz-n4Jx8nMUan4gTPV2WrWbyDLB_2Vbe9aw=?d=eN2Min1kmrMZNv-FoyyfYfhHSXPLwVFss0aAurcWTLmaMoH1sX6cz1PprwiClFQd7zrjsohcEqZ4suQDg3EUcx029SWStDGsRNxFymhr3MXV2Y1-1gU2UPwlSoJIxAvMA0otS6Caiz71PqmZ5wq6JDZzGfubxy8WC_6EOFIKdwzDAWXlcKgG3H3f9_qDZB2hDUQFIRdv2HMQNoJb1E5zDlytHzH2qRTqSgFegHz98HbkUHSy6n2-GFFuVliLq5RDXD-Q36F1_v5qzugcJAH1zskR09jq_lBfFrG0_GjIMS4559hL97Obw7MTMwYAgGACF3edg0jvDhP7l-0dS2Hnf4EmpD75Wjy07i3SbXnc51xsUMaZLC8tfD_LP-mOqii21PocWaF05H8hfFk9xXDqLh4nd978ifTvCVW9WblNxBHLXSd8ok4tn-04_xVTKHK78FI_CZRwoNV1EfNG1R1O&u=https%3A%2F%2Fspamassassin.apache.org%2Ffull%2F3.4.x%2Fdoc%2FMail_SpamAssassin_Conf.html normalize_charset ( 0 | 1) (default: 0) Whether to decode non- UTF-8 and non-ASCII textual parts and recode them to UTF-8 before the text is given over to rules processing. The character set used for attempted decoding is primarily based on a declared character set in a Content-Type header, but if the decoding attempt fails a module Encode::Detect::Detector is consulted (if available) to provide a guess based on the actual text, and decoding is re-attempted. Even if the option is enabled no unnecessary decoding and re-encoding work is done when possible (like with an all-ASCII text with a US-ASCII or extended ASCII character set declaration, e.g. UTF-8 or ISO-8859-nn or Windows-nnnn). Unicode support in old versions of perl or in a core module Encode is likely to be buggy in places, so if the normalize_charset function is enabled it is advised to stick to more recent versions of perl (preferably 5.12 or later). The module Encode::Detect::Detector is optional, when necessary it will be used if it is available. Ce message et toutes les pièces jointes sont établis à l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite sauf autorisation expresse. L'internet ne permettant pas d'assurer l'intégrité de ce message, le Conseil Départemental de Seine-Saint-Denis décline toute responsabilité au titre de ce message, dans l'hypothèse où il aurait été modifié. D'autre part, le Conseil Départemental de Seine-Saint-Denis ne reconnait exclusivement que les délégations de signatures écrites par les personnes habilitées et ne peut donc être engagé par un message électronique