[Dovecot] Not getting new mail notification

Timo Sirainen tss at iki.fi
Fri Sep 22 18:13:04 EEST 2006


On Fri, 2006-09-22 at 08:43 -0600, Robert Creager wrote:
> Timo Sirainen wrote:
> > 
> > The problem is that hardlinking a file to another directory didn't
> > update the directory's mtime. You most likely don't have that bug fixed
> > in your kernel.
> 
> Interesting.  Where are the files hard linked from?  They show up in the 
> new directory, but where else are they?

The way maildir delivery works is:

create the file in tmp/
hardlink it to new/
unlink from tmp/

The last two steps could be done with a rename() which would fix the JFS
problem, but since there's a tiny (practically non-existent with
Dovecot) possibility of that overwriting a mail file in new/ dir,
link()+unlink() is done.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20060922/6bfe3c27/attachment.pgp 


More information about the dovecot mailing list