Re: [Exim] (quite ot) pop3 client for virtual users

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jeremy C. Reed
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] (quite ot) pop3 client for virtual users
On Fri, 28 Sep 2001, Matthew Byng-Maddick wrote:

> What locking mechanism does vm-pop3d use? Have you made sure it is compatible
> with exim's delivery locking?


Exim says:

2001-09-28 10:22:10 15n1HU-0002zF-00 == test@???
T=virtual_localdelivery defer (-9): failed to lock mailbox
/var/spool/virtual/foo.bar/test (lock file)

vm-pop3d (which is based on gnu-pop3d code) makes a username.lock file and
does:
fl.l_type = F_RDLCK;
fl.l_whence = SEEK_CUR;
fl.l_start = 0;
fl.l_len = 0;
fcntl(fileno(mbox), F_SETLK, &fl)

Jeremy C. Reed

p.s. I've been told that when delivering mail with procmail, gnu-pop3d may
cause lost messages, because it opens (using fopen() and freopen()) the
mailbox multiple times with two different modes ("r" and "r+").