http://bugzilla.spamassassin.org/show_bug.cgi?id=4153


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|[email protected] |[EMAIL PROTECTED]
                   |                            |ie




------- Additional Comments From [EMAIL PROTECTED]  2005-02-28 10:52 -------
(In reply to comment #3)
> Subject: Re:  Spamc patch for config file
> 
> Why not using the "sysconfdir" variable provided by the configure script?
> 
> Rename spamc.c to spamc.c.in, just write a test for "@sysconfdir@/spamc.conf"
> (and remove all those other unnecessary cases), add
> "AC_CONFIG_FILES([spamc.c])" at the end of configure.in and recreate
> the configure script with autoconf.
> 
I've done all this (new patches to follow). However, in the case that spamc is
built on it's own (ie. not using Makefile.PL from the source base-dir), the
directory will need to be figured out. What I've done for this case is :
if ${prefix} starts with /usr, use /etc/mail/spamassassin/spamc.conf
if ${prefix} starts with /opt, use /etc/opt/mail/spamassassin/spamc.conf
else, use ${prefix}/etc/spamc.conf

> Why do you use a while-loop when you are looking for spamc.conf? What
> happens if "config_file" remains NULL because there is no such file?
> 
I've removed the while loop, since it's no longer necessary with the above 
changes.

In the case of spamc not finding a config file, it returns the transport type to
TRANSPORT_LOCALHOST and sets the hostname to NULL, and will continue normally
using spamd on localhost.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to