On Tue, 22 Sep 2020, Tim Wetterek Andersson wrote:
I am very new to SpamAssassin and I can not get the following to work:
I am trying to use the swedish characters åäö in the report template I have set
up in my SpamAssasin instances.
FYI, QP encodes that as: the swedish characters =E5=E4=F6
I have tried using the ASCII-tables described here
<https://cwiki.apache.org/confluence/display/SPAMASSASSIN/WritingRulesAdvanced>
but the only thing that shows is the following below.
That's specific to writing the regular expressions used in rules. Report
template text is just... text.
Excerpts of different config outputs I've tried:
Spam programvaran /p(?:\xfc|\xc3\xa5)/ "xxxx"
Spam programvaran p(?:\xfc|\xc3\xa5) "xxxx"
I note that none of the characters there are \xe5, \xe4 or \xf6.
Excerpts of how the mail looks without tried configs:
Spam programvaran på "xxxx"
FYI, QP encodes that as: Spam programvaran p=C3=A5 "xxxx"
...so the second half of what you used (\xc3\xa5) *is* being emitted in
the report.
Try:
Spam programvaran p\xe5 "xxxx"
Did you try just pasting in the proper accented text verbatim? Explicit
hex values shouldn't be needed. See the report lines of this for example:
https://cwiki.apache.org/confluence/display/SPAMASSASSIN/TranslateFrench
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
The tree of freedom must be freshened from time to time
with the blood of tyrants and tyrannosaurs.
-- DW, commenting on the GM6 Lynx .50BMG bullpup
-----------------------------------------------------------------------
42 days until the Presidential Election