"Jason R. Mastaler" <[EMAIL PROTECTED]> writes:

> As far as the option C, this has been discussed in the past in the
> context of a sender based pending queue, where messages are stored
> according to sender.  This way, all matching sender messages are
> released upon confirmation as well as by tmda-pending/cgi release.
> This has been requested enough that I think it's worth implementing.

I've been wondering if the best implementation for option C might be
in the UI programs.  That was without considering the sender queue
possibility.  Does the sender queue buy us anything besides easy
multi-message release?  If not, it's really not too difficult to
provide a function to release all messages from a particular sender.
It would require the UIs to request this when desired (as opposed to
requesting the release of a single message), but that's not very
difficult.

> My thought was to design a queue abstraction where we support a few
> different types of pending queues (current simple format, a sender
> based, and a Maildir++ compatible) but where sites with special
> pending queue needs can drop in their own module.  When I will get the
> time to do this I'm not sure, but it's something I definitely want to
> do in TMDA 1.1.x.  Any design thoughts anyone has on the matter are
> welcome.

Huh.  I've started working on a rewrite of Pending.py with exactly the
same thoughts in mind.  I have a basic AbstractQueue class and a
DirQueue class (implementing the current model).  I have not written,
but am constantly keeping in mind while I work on this, a DBQueue,
where pending messages are stored in a database.  Whether or not we
ever implement that, it does force me to think about queue operations
in a very abstract way, since any database implementation will be very
different than a disk-based implementation.

I'd be glad to post a working module (not all features required by
tmda-cgi and tmda-ofmipd yet) once I've got the basic idea down and,
well, working. :)  This isn't to say you shouldn't work through some
ideas of how to do this.  The combination of different perspectives
will probably ensure that we've covered the bases effectively.


Tim

_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to