At 04:58 PM 12/26/98 -0800, [EMAIL PROTECTED] wrote:
>Is it possible to use a cdb in place of a large number of .qmail-*
>files?
>
>In general, it looks like any qmail-command style delivery is
>re-injecting a message into the queue for delivery.
>
>It seems that building a database who's purpose was looking up
>delivery instructions based upon EXT2 would require the ability
>to deliver to the returned maildir would require the ability
>to deliver to maildir without re-injecting the message. Otherwise,
>the functionality of replacing .dot-qmail files would be lost. :)
If you're saying, is it possible to have qmail-local directly deliver into a
derived Maildir (or mailbox) path, then the current answer is no. Or put
another way, you can only deliver into a hard-coded Maildir path if you go
to a third party program like maildrop (or whatever it's called).
Many moons ago, and no doubt in the archives, I proposed the idea of a
recursive .qmail command to achieve this end. I cannot recall much followup
discussion. Something like this in your .qmail file:
./Maildir/
*echo ./Maildir-`date +%Y%m`/
Where the '*' signifies that qmail-local should run the command as a shell
and re-interpret the output. In this case, the output is ./Maildir-199812/
which gives me an automatic mail archive by date.
In your specific case, it might be something like:
*db_lookup some_cdb_file "$EXT2"
Where db_lookup writes "./Maildir-whatever/." to stdout.
Regards.