[prev in list] [next in list] [prev in thread] [next in thread] 

List:       exim-users
Subject:    Re: [Exim] appendfile file naming / pmail and exim
From:       Philip Hazel <ph10 () cus ! cam ! ac ! uk>
Date:       2001-10-31 14:28:23
[Download RAW message or body]

On Wed, 31 Oct 2001, Tamas TEVESZ wrote:

> i've learnt that using appendfile with "directory" specified but no
> "maildir_format" specified, it will deliver messages as i need it, one
> file per message. but, the fundamental question is: how do i tell
> appendfile to use a naming convention that suits my needs ?

> with names as "^[0-9]{8}\.cnm$"

There isn't a way to do that, but it should not be difficult to add, as
long you can find an easy way of generating the digits. In Exim 4 there
is $tod_epoch. I guess you could take the least 8 digits of that and
just try again if there was a clash. I am shortly about to do some
"final tidies" to the Exim 4 code. I'll see if this really is easy to
add.

> if there's
> a way, i suspect appendfile itself is protected against races

... by the operating system, which won't create a new file with the same
name as an old one.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@cus.cam.ac.uk      Cambridge, England. Phone: +44 1223 334714.


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at \
http://www.exim.org/ ##


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic