Next | qmail | 12 |
Here's how qmail-queue puts a new message into the queue
It creates a new file in queue/pid with a unique name
(The name contains qmail-queue's pid, the time, and a sequence number)
This new file has some i-number, say 123456
The new file is moved to mess/123456
qmail-queue writes the message contents to mess/123456
it writes the envelope information to intd/123456
it links intd/123456 to todo/123456
The message is now queued
qmail-queue pulls a trigger to wake up qmail-send
Exercise: what if qmail-queue is killed partway through?
Next | Copyright © 2004 M. J. Dominus |