David Sparks wrote:
> Is there a preferred way to get the config dir?  To call config_dir() I
>  seem to need to "use Qpsmtpd;" in my plugin and call it via
> Qpsmtpd::configdir().

Perhaps you could tell us what you intend to accomplish, rather than just
teasing us with a series of concentric circles around your real question. ;-)

The reason I ask is that, for most plugins, it is sufficient to do

        my @config = $self->qp->config("plugin_name");

to get the configuration lines out of the config/plugin_name file (ignoring the
comment lines automatically).  There shouldn't be any reason to directly query
for the config file location; though it should always be available via

        my $configdir = $self->qp->config_dir();

but that is besides the point (as I said above).

John

Reply via email to