Gre7g Luterman <[EMAIL PROTECTED]> writes:

> def GetPendingList():
>   "Return a list of all pending message filenames."
>   
>   # Locate messages in pending dir
>   os.chdir(os.path.join(Defaults.DATADIR, 'pending'))
>   Msgs = glob.glob('*.*.msg')

[...]

This should be done using a Pending module method. Then if the format
of the pending queue changes (as it probably will soon), you won't
have to make any changes here.

Pending currently has a listIds() method which returns a list of all
files in the queue, but that also includes confirmed/released
messages.

I think you're interested in only getting back a list of messages
which haven't been delivered, correct?

I just added 4 additional methods to list pending messages by their
delivery status. So, to get a list of "still pending" messages (i.e,
not yet confirmed or released), you'd use listPendingIds().
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to