Package: spamd Version: 4.0.0-6 Severity: normal Tags: l10n X-Debbugs-Cc: benjamin.bay...@mail.numerique.gouv.fr, christophe.ninu...@mail.numerique.gouv.fr
1. The man page for spamd should mention possiblity for localization, via the /etc/default/spamd file 2. The default /etc/default/spamd file should have an example of localisation (eg. LANG=fr in the provided file) to help users 3. On our system, the report mail is sent encoded in utf8 (which is right), but spamassassin is taking the french texts from /usr/share/spamassassin/30_text_fr.cf (which is right), but that file is latin1 encoded, which produces a wrong result : a latin1 encoded e-mail sent as utf8. Dirty fix : recode the 30_text_fr.cf file (which I did on our server) Proper fix : spamassassin should be instructed that the file is encoded as latin1, read as such, so that perl will produce the right encoding for the e-mail (perl IO supports lot of encodings). The dirty fix can be used purely in Debian, the proper one supposes an upstream improvement (way to set the encoding for a file that contains text that is going to be in the sent report). -- System Information: Debian Release: 12.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-13-cloud-amd64 (SMP w/4 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages spamd depends on: ii init-system-helpers 1.65.2 ii rsyslog [system-log-daemon] 8.2302.0-1 ii spamassassin 4.0.0-6 ii systemd 252.26-1~deb12u2 spamd recommends no packages. spamd suggests no packages. -- Configuration Files: /etc/default/spamd changed: OPTIONS="--create-prefs --max-children 5 --helper-home-dir" PIDFILE="/run/spamd.pid" LANG=fr -- no debconf information