"Chris" == Chris Johnson <[EMAIL PROTECTED]> writes:
Chris> On Mon, Feb 15, 1999 at 11:55:57AM -0500, Paul Farber wrote:
>> Hello all,
>>
>> What is the meaning of the Maildir/cur directory? I have a user
>> with 300 messages and they are not in the Maildir/new, they are in
>> Maildir/cur.
>>
>> What puts them into that dir? He checks his mail with Netscape
>> Communicator 4.x and and say's he download then every time he
>> checks the mail.
Chris> From man maildir:
Files in cur are just like files in new. The big differ-
ence is that files in cur are no longer new mail: they
have been seen by the user's mail-reading program.
Actually, I believe that qmail-pop3d moves whatever messages are in
new when at the time qmail-pop3d is started to cur once qmail-pop3d
receives a quit command from the client, regardless of whether or not
the client has downloaded the messages:
On mail server:
root@mail:/var/MailDirs/testuser/ # find
.
./tmp
./new
./new/919101259.11212.mail.cimedia.com
./new/919101260.11231.mail.cimedia.com
./new/919101260.11240.mail.cimedia.com
./new/919101261.11262.mail.cimedia.com
./new/919101261.11270.mail.cimedia.com
./new/919101262.11278.mail.cimedia.com
./cur
>From a client:
redshift:~> telnet mail 110
Trying 172.16.0.2...
Connected to mail.cimedia.com.
Escape character is '^]'.
+OK <[EMAIL PROTECTED]>
user testuser
+OK
pass testuser
+OK
quit
+OK
Connection closed by foreign host.
redshift:~>
Even though the client didn't actually see the messages, back on mail server:
root@mail:/var/MailDirs/testuser/ # find
.
./tmp
./new
./cur
./cur/919101259.11212.mail.cimedia.com:2,
./cur/919101260.11231.mail.cimedia.com:2,
./cur/919101260.11240.mail.cimedia.com:2,
./cur/919101261.11262.mail.cimedia.com:2,
./cur/919101261.11270.mail.cimedia.com:2,
./cur/919101262.11278.mail.cimedia.com:2,
I'm not sure I like this behavior. I'm thinking about patching
qmail-pop3d so that it only moves messages that the user has
RETR'ieved. Either that or at least add a flag to the Info field of
the filename. We'd like to delete messages on the mailserver that are
older than X that we know the client has retrieved and we don't really
know for sure which those message are. Yes, we could make assumptions
about the behavior of pop cients, but I'd rather not do that.
j.
--
Jay Soffian <[EMAIL PROTECTED]> UNIX Systems Administrator
404.572.1941 Cox Interactive Media