diff options
| author | bwarsaw | 2000-12-20 21:20:20 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-12-20 21:20:20 +0000 |
| commit | 02c62280359458b86c2680231774fa00c76072fc (patch) | |
| tree | 2576a67b216376d577d67359bff856476276d42d /Mailman/pythonlib/StringIO.py | |
| parent | 05ffa847a4acccc86e237aada66bf859d4b5017e (diff) | |
| download | mailman-02c62280359458b86c2680231774fa00c76072fc.tar.gz mailman-02c62280359458b86c2680231774fa00c76072fc.tar.zst mailman-02c62280359458b86c2680231774fa00c76072fc.zip | |
Enqueue(): Allow for queuing to alternative queue directories. If
newdata or kws has an item called "_whichq", this specifies the
directory to queue to, defaulting to INQUEUE_DIR.
The metadata "filebase" is always set to __filebase, not just when the
metadata is created for the first time.
When writing the .db file (i.e. containing the metadata), always write
it after the .msg text file, and always write it to a temporary file,
with an os.rename() shuffle. This should avoid race conditions when
queuing a message to another queue because the queue runners only key
off of files ending in ".db".
Requeue(): New method which calls Enqueue() after zapping
self.__filebase so it'll be recalculated.
Diffstat (limited to 'Mailman/pythonlib/StringIO.py')
0 files changed, 0 insertions, 0 deletions
