-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 15 Aug 2002, Joseph W. stated:
I have a situation where we use virtual mail accounts. I want to be
able to allow users to create filters (through an interface which I
define) and then generate the mailfilter on the fly for each email -
this is not an intensive task.
I currently have a script that reads my database and generates output
that I would like to include into the script. The output looks like:
if ((/^Subject: test/)) {
to br...@test-domain.org
exit
}
if ((/^Subject: blah/)) {
to br...@test-domain.org
exit
}
How do I get this text inserted into the maildrop execution? I tried
using include `/path/to/my/perl/script` and include
"`/path/to/my/perl/script`" and even include
"|/path/to/my/perl/script"
but none work. The error that I get is that maildrop cannot open the
included file. Any suggestions?
include will only include a set of statements in the format, include
"/path/to/my/stuff" but I am not sure if you can include something that
is created on the fly. You could try something like:
'/path/to/my/perl/script > /path/to/my/mailfilter/perltemp'
include "/path/to/my/mailfilter/perltemp"
But I have a nasty feeling that this would send the message to the
script and exit.
Sean
iD8DBQE9XI9bHMnSWn2nApQRAoO7AJ4qBkDkHSW2pxz0xQGtsWRegcgcRwCfZw+s
qPuDfhHHqhaabFM1VRG+pp0=
=yBar
-----END PGP SIGNATURE-----