At 12:48 PM 12/27/98 +0800, wrote:
>Mark Delany ([EMAIL PROTECTED]) wrote:
>: 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.
>
>: In your specific case, it might be something like:
>
>: *db_lookup some_cdb_file "$EXT2"
>
>: Where db_lookup writes "./Maildir-whatever/." to stdout.
>
>You can get it this way too:
>|c="Maildir-`date +%Y%m`"; [ -d $c ] && exit 0; maildirmake $c; rm current; ln -s $c
>current
>../current/
Minor timing window with multiple deliveries, but I guess you could use a
lock to serialize them which might be a problem if it's
~alias/.qmail-default, but I'm sure a finer grained lock would be possible.
Oh, rm -f of course, in case it doesn't exist, but yes, that'll do the trick.
Regards.