[Dovecot] lstats on all files in Maildir when opening an e-mail.

Tan Shao Yi tansy at pacific.net.sg
Fri Feb 2 10:35:40 UTC 2007


Hi,

I'm running RC19 on a Solaris 10 SPARC box.

It seems that whenever I open an e-mail in any folder via IMAP, dovecot 
appears to scan every other folder in the Maildir.

A truss reveals that it is lstat-ing every e-mail in every directory.

I'm sorry I am sending only a fragment of the truss, it's really too 
long... but is this behaviour expected?

Cheers,
Tan Shao Yi

lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/new/1170337156.M209211P18431V025055F0I0000DAF0_0.recess1,S=2596", 
0xFFBFF040) = 0
lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/new/1170337594.M159985P18549V025055F0I0001891B_0.recess1,S=4111", 
0xFFBFF040) = 0
lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/new/1170338379.M564254P18933V025055F0I000196A3_0.recess1,S=3630", 
0xFFBFF040) = 0
lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/new/1170344035.M859029P24106V025055F0I000198E4_0.recess1,S=4254", 
0xFFBFF040) = 0
lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/new/1170344816.M69242P24829V025055F0I000199CB_0.recess1,S=3810", 
0xFFBFF040) = 0
lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/new/1170347789.M408186P27905V025055F0I00019A8F_0.recess1,S=3922", 
0xFFBFF040) = 0
lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/new/1170378895.M589722P25748V025055F0I00019279_0.recess1,S=2782", 
0xFFBFF040) = 0
lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/new/1170380726.M524353P29456V025055F0I0001AEE1_0.recess1,S=3619", 
0xFFBFF040) = 0
lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/new/1170381420.M702545P517V025055F0I0001B208_0.recess1,S=3028", 
0xFFBFF040) = 0
getdents64(8, 0xFEE72000, 8192)                 = 0
close(8)                                        = 0
lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/maildirfolder", 
0xFFBFF148) = 0
lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/cur", 
0xFFBFF148) = 0
openat(-3041965, 
"/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/cur", 
O_RDONLY|O_NDELAY|O_LARGEFILE) = 8
fcntl(8, F_SETFD, 0x00000001)                   = 0
fstat64(8, 0xFFBFEEE8)                          = 0
getdents64(8, 0xFEE72000, 8192)                 = 1088
lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/cur/1169092926.M656431P6118V04010002I000023E9_0.recess1,S=4701:2,S", 
0xFFBFF040) = 0
lstat64("/var/qmail/maildirs/AA/AA/test at pacific.net.sg/Maildir/.qmail/cur/1168983168.M76366P8906V04010002I000027AB_0.recess1,S=2345:2,S", 
0xFFBFF040) = 0



More information about the dovecot mailing list