Hi all!

I'm having a problem handling .qmail files containing spamassassin
commands. I need this command:

|/usr/bin/spamc -f -s 262144 -u [EMAIL PROTECTED] | /usr/bin/maildir %dir%/Maildir

but everytime I use moduser the file get scrambled.
Using --enable-spam-command is not useful, because I need to
insert the username and the domain in the line, so I've wrote
a little patch to solve my problem, in attach.
In config.h there is

#define SPAM_START   "|/usr/bin/spamc -f -s 262144 -u "
#define SPAM_MIDDLE  " | /usr/bin/maildir "
#define SPAM_END     "/Maildir"

Sorry for the style, but I'm not a C programmer.


The optimal solution would be something similar:

--enable-spam-command="|mycommand %user% %dir%"

and then make the substitution when writing the file.
Someone knows which C function makes strings substitutions? :-)

Best regards,
Valerio

Attachment: qmailadmin.patch
Description: Binary data



Reply via email to