Mailing List Archive

ExtractText options in user_prefs, spamd problem
Hello,

I have configured my personal user_prefs to process options for extracttext.

so far, spamd complains:

Oct 7 09:29:05 fantomas spamd[26887]: spamd: setuid to uhlar succeeded
Oct 7 09:29:05 fantomas spamd[26887]: config: failed to parse line in /home/uhlar/.spamassassin/user_prefs (line 47): extracttext_external\tpdftotext\t/usr/bin/pdftotext -nopgbrk -layout -enc UTF-8 {} -
Oct 7 09:29:05 fantomas spamd[26887]: config: failed to parse line in /home/uhlar/.spamassassin/user_prefs (line 48): extracttext_use\t\tpdftotext\t.pdf application/pdf

is there any problem with extracttext options when spamd is used?

e.g. are they considered rules? (user rules are disabled by default iirc)

--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Spam = (S)tupid (P)eople's (A)dvertising (M)ethod
Re: ExtractText options in user_prefs, spamd problem [ In reply to ]
On Fri, Oct 07, 2022 at 10:58:07AM +0200, Matus UHLAR - fantomas wrote:
> Hello,
>
> I have configured my personal user_prefs to process options for extracttext.
>
> so far, spamd complains:
>
> Oct 7 09:29:05 fantomas spamd[26887]: spamd: setuid to uhlar succeeded
> Oct 7 09:29:05 fantomas spamd[26887]: config: failed to parse line in /home/uhlar/.spamassassin/user_prefs (line 47): extracttext_external\tpdftotext\t/usr/bin/pdftotext -nopgbrk -layout -enc UTF-8 {} -
> Oct 7 09:29:05 fantomas spamd[26887]: config: failed to parse line in /home/uhlar/.spamassassin/user_prefs (line 48): extracttext_use\t\tpdftotext\t.pdf application/pdf
>
> is there any problem with extracttext options when spamd is used?
>
> e.g. are they considered rules? (user rules are disabled by default iirc)

They are not allowed in user_prefs

extracttext_use
extracttext_external

Dunno if the code would support that or if it would be safe to allow it.
Re: ExtractText options in user_prefs, spamd problem [ In reply to ]
>On Fri, Oct 07, 2022 at 10:58:07AM +0200, Matus UHLAR - fantomas wrote:
>> I have configured my personal user_prefs to process options for extracttext.
>>
>> so far, spamd complains:
>>
>> Oct 7 09:29:05 fantomas spamd[26887]: spamd: setuid to uhlar succeeded
>> Oct 7 09:29:05 fantomas spamd[26887]: config: failed to parse line in /home/uhlar/.spamassassin/user_prefs (line 47): extracttext_external\tpdftotext\t/usr/bin/pdftotext -nopgbrk -layout -enc UTF-8 {} -
>> Oct 7 09:29:05 fantomas spamd[26887]: config: failed to parse line in /home/uhlar/.spamassassin/user_prefs (line 48): extracttext_use\t\tpdftotext\t.pdf application/pdf
>>
>> is there any problem with extracttext options when spamd is used?
>>
>> e.g. are they considered rules? (user rules are disabled by default iirc)

On 07.10.22 12:17, Henrik K wrote:
>They are not allowed in user_prefs
>
>extracttext_use
>extracttext_external
>
>Dunno if the code would support that or if it would be safe to allow it.

holy sh... I see now:

CONFIGURATION
All configuration lines in user_prefs files will be ignored.

OK, I'll try that globally on my machine.

--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I feel like I'm diagonally parked in a parallel universe.