From: Amos Gouaux (+)
Date: Wed Nov 07 2001 - 16:27:42 EST
>>>>> On Wed, 7 Nov 2001 21:12:48 -0000,
>>>>> Ian Castle <> (ic) writes:
ic> Oh dear. I can see a whole new imap function coming on - ". SIEVE folder
ic> script"...
Actually, in one of my more perverse moments I actually wondered
about storing the sieve scripts in the same directory as the
intended IMAP folder. It's got to stat that directory anyway....
ic> Given that sievesystemscripts == /var/lib/sieve/system
ic> So.. call sieve_find_script( anyone, "some.interesting.folder" )
ic> if the directory /var/lib/sieve/some exists then look for the directory
ic> /var/lib/sieve/some/interesting, if that exists look for the directory
ic> /var/lib/some/interesting/folder.
ic> so it would try /var/lib/sieve/some/interesting/folder/default, then
ic> /var/lib/sieve/some/interesting/default, then /var/lib/sieve/some/default
ic> and finally
ic> /var/lib/sieve/default.
ic> A handy side effect of simply checking the directory, rather than for the
ic> presence of the file "default" would be that if default did not exist then
ic> no script would be run... so you could have a script applying only to some
ic> folders in the middle of the hierarchy... not above, and not below.
Interesting....
ic> I'll code that up if you like an you can try it ;-).
That's why we've got a prototype box. ;-)
Though, it is running a CVS pull (2.1pre).
-- Amos
|
|
|