Re: [Exim] appendfile file naming / pmail and exim

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Tamas TEVESZ
CC: exim-users
Assumpte: Re: [Exim] appendfile file naming / pmail and exim
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@???      Cambridge, England. Phone: +44 1223 334714.