6 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] question about virtua...
FromSent OnAttachments
Joseph W, BreuAug 15, 2002 2:48 pm 
Sean RimaAug 15, 2002 10:36 pm 
Joseph W, BreuAug 22, 2002 6:26 am 
Sean RimaAug 25, 2002 4:02 am 
Joseph W, BreuAug 25, 2002 11:48 am 
Sean RimaAug 25, 2002 1:49 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] question about virtual accounts and mail filtering...Actions...
From:Sean Rima (se@tcob1.net)
Date:Aug 15, 2002 10:36:42 pm
List:net.sourceforge.lists.courier-maildrop

-----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-----