From 35b8e64fc3a79968fb5557f130dc1578af439a32 Mon Sep 17 00:00:00 2001 From: Sandesh Kumar Agrawal Date: Fri, 11 Jan 2013 05:54:40 +0530 Subject: Fixed formation of /var/queue/* for non-queue runners --- src/mailman/core/switchboard.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/mailman/core/switchboard.py b/src/mailman/core/switchboard.py index 4670d601e..e2df550ca 100644 --- a/src/mailman/core/switchboard.py +++ b/src/mailman/core/switchboard.py @@ -150,13 +150,12 @@ class Switchboard: # object or not. data['_parsemsg'] = (protocol == 0) # Write to the pickle file the message object and metadata. - if self.name not in self.non_queue_runner: - with open(tmpfile, 'w') as fp: - fp.write(msgsave) - cPickle.dump(data, fp, protocol) - fp.flush() - os.fsync(fp.fileno()) - os.rename(tmpfile, filename) + with open(tmpfile, 'w') as fp: + fp.write(msgsave) + cPickle.dump(data, fp, protocol) + fp.flush() + os.fsync(fp.fileno()) + os.rename(tmpfile, filename) return filebase def dequeue(self, filebase): -- cgit v1.2.3-70-g09d2