Hi,

I am writting a custom script which takes the incoming mail address (this
script is going to be called from inside a .qmail file) and puts it into a
Maildir.  I can't use the current qmail controls to put mail into the
maildir, as I need to query a database to find the correct mail box and do
some other things.  I have searched around for programs which does what I
need, and none really do everything I need (we have a lot of custom stuff
which needs doing) - so a custom script is the only real way.

I am writting the script in Perl.  I read the maildir man page, and just
need to confirm a few things with the experts :-)

This is how I am doing to store a message in a maildir -

- Change dir to the maildir area
- Create tmp/time.pid.hostname file, this contains the incoming email

Now am not sure if I should rename tmp/time.pid.hostname to
new/time.pid.hostname -OR- move tmp/time.pid.hostname to
new/time.pid.hostname.  This is where I need a little point in the right
direction.

Is that everything to store the message?  Or do I need to carry any more
steps to make sure the message is stored correctly and safely.

Thanks so much,

Jon

Reply via email to