> > Are any of you aware of qmail internal data structure/logic
> > documentation for the qmail programs?
>
> There's INTERNALS, and "The big qmail picture" somewhere at
> www.nrg4u.com (link is on www.qmail.org).
Hm, I'll be sure to read those.
> > Instead of going straight from reciept to the delivery
> > queue, it would go into a processing queue, and hopefully
> > in a manner similar to qmail-remote/qmail-local rules, a
> > qmail-process queue would then kick off various processing
> > filters based on a number of rules. The messages may or
> > may not be returned to qmail for delivery after processing.
> >
> > Do you think its possible to insert such logic without
> > changing the whole flow of qmail?
>
> Just replace qmail-local with your program? What's wrong with .qmail,
> perhaps?
Well, There are two stages of queuing in my modification proposal - the
processing I do, and the delivery. In existing qmail there is only one
stage - if it makes it to the queue, it gets delivered according to
configuration.
Hence, if ALL messages get sent to qmail-local, well, ALL messages get sent
to qmail-local. If qmail-local finishes with them and they are to be
delivered to the SAME RECIPIENT as they came in with, thus reintroducing the
envelope for delivery into the queue, it would then be processed as any new
message - and with ALL messages, get sent to qmail-local again. This means
I will have to have some logic to separate messages that are processed from
messages that are for delivery. Two queues makes sense to me...
I hope to make it an insertion into the current processing of mail that
could be used by anybody for just about anything to run rules/processing on
all mail regardless of recipient.
Am I wrong?
David